Claude Sonnet 5.5 API

Anthropic Claude Sonnet 5.5: fast, capable everyday model for coding, writing and agents. 1M context.

Anthropic·ChatAvailable

from$0.72/ 1M input tokens$0.810% off

Model IDclaude-sonnet-5.5

reasoningtoolscoding1m-context

Input

Text

Output

Chat

Provider

6 providers

Last 7 days · not enough recent requests for stats yet.

Claude Sonnet 5.5 pricing

Prices are per unit; requests without a provider are routed to the cheapest provider that supports your parameters.

OptionPrice (USD)
All options
$0.72 / 1M input tokens
72 Credits$0.810% off

Try Claude Sonnet 5.5 before you integrate

Test output quality, compare provider prices and estimate cost before writing any code.

Provider
Chat

Settings

PriceKIE AI
1M input tokens$0.72
1M output tokens$3.6

Credits for max_tokens are held first, then settled to the actual usage.

Claude Sonnet 5.5Auto (cheapest)
Claude Sonnet 5.5

Start a conversation. Replies stream in and are billed by actual token usage.

Enter to send · Shift + Enter for a new line

Claude Sonnet 5.5 prompt examples

Ready-to-use prompts. Load one into the playground and tweak it.

Source
Scene

4 prompts

This test started failing after the last merge. Find the cause, fix it, and explain the change in two sentences. <paste test and code here>

Turn this CSV of weekly sales into a short executive report: headline numbers, best and worst regions, and two recommended actions. <paste CSV here>

Write a Google Sheets formula that returns the latest non-empty value in column C for each customer ID in column A.

Claude Sonnet 5.5 API reference

Endpoints, request fields and runnable examples for this model.

Base URL

https://01router.com/api/v1
llms.txt

Quick start

Set API_KEY to your project key, then run a sample from your server. Replace example media URLs with your own public URLs.

Auto-routing chooses a provider that supports the request. Select a provider to see its input constraints and pinned request examples.

curl https://01router.com/api/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-sonnet-5.5",
    "messages": [{ "role": "user", "content": "Hello!" }],
    "stream": false
  }'

Endpoints

Only endpoints relevant to this model are listed. Paths below include /api/v1. Click an endpoint to read its usage.

Authentication

Send your API key as a Bearer token. Requests are billed to the key owner's credits.

Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
Get an API key

Input

Send messages directly in the request body. Chat requests do not use an input wrapper.

Request body

NameTypeRequiredDescription
modelstringYes"claude-sonnet-5.5"
providerstringNoPin a provider; omit to auto-route to the cheapest. One of: wavespeed | kie | apimart | evolink | vercel | openrouter
messagesobject[]YesOpenAI-format messages, each with role and content.
streambooleanNotrue returns an SSE stream.
max_tokensintegerNoOutput token cap; credits are pre-held for it (default 4096).

Output

This example uses stream: false. Read the reply from choices[0].message.content. With stream: true, read SSE chunks from choices[].delta until [DONE].

Task completed

{
  "id": "chatcmpl-example",
  "object": "chat.completion",
  "model": "claude-sonnet-5.5",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Hello! How can I help?"
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 9,
    "completion_tokens": 8,
    "total_tokens": 17
  }
}

Response fields

NameTypeRequiredDescription
idstringYesChat completion ID
objectstringYeschat.completion
modelstringYesclaude-sonnet-5.5
choicesobject[]YesReply choices; message.content contains the non-streaming response.
usageobjectNoToken usage: prompt_tokens, completion_tokens and total_tokens. Availability depends on the provider.

Model schema

This public endpoint returns the model parameters and each provider’s supported constraints and prices.

curl "https://01router.com/api/v1/models/claude-sonnet-5.5"

Errors

Check the HTTP status and error.message. Fix the request before retrying validation or authentication errors. A failed generation is reported in status and error on the task itself.

{
  "error": {
    "message": "Invalid or missing API key",
    "code": "unauthorized"
  }
}

400Invalid body or parameter value

401Missing or invalid API key

402Not enough credits

404Unknown model or generation

429Too many requests — retry after the given seconds

502Every provider rejected the task (credits refunded)

Auth, routing, billing and error codes are covered in →

Use with AI

Give your coding assistant this model reference: endpoints, input constraints, output fields and request examples in plain text.

Open llms.txt

How does Claude Sonnet 5.5 compare?

Specs and starting prices side by side. Test with the same prompt before you choose.

Claude Sonnet 5.5Claude Opus 5.5GPT-6 AstraGPT-6 Sol
VendorAnthropicAnthropicOpenAIOpenAI
Starting price$0.72 / 1M input tokens$1.44 / 1M input tokens$2.52 / 1M input tokens$0.54 / 1M input tokens
InputTextTextTextText
Provider6 providers7 providers7 providers7 providers

Claude Sonnet 5.5 API FAQ

Should I choose Sonnet 5.5 or Opus 5.5?

Sonnet 5.5 is for well-scoped everyday work at volume: features, bug fixes, documents, spreadsheets and tool-using agents. Choose Opus 5.5 for open-ended, long-running tasks that need sustained judgment.

What are the limits?

Up to 1M tokens of context and up to 128K output tokens, with text and image input, tool use and structured output.

Which effort level should I use?

Adaptive thinking is on by default. Medium works well for coding and low for chat; raise it only for hard problems, since thinking is billed as output.

Can I call it with the OpenAI SDK?

Yes. Our /chat/completions endpoint is OpenAI-compatible; change the base URL and set the model to claude-sonnet-5.5.

How is it billed on 01router?

Per 1M input and output tokens from actual usage. See the pricing table for current rates.

Related models

Other models you can call with the same API key.