APIMart
Back to all models

Claude Sonnet 5.5 API

AnthropicModel ID claude-sonnet-5-5Text modelReleased September 28, 2026

Use Sonnet 5.5 to track down the root cause of an error, turn scattered meeting notes into a table, or connect a support agent to an order lookup tool.

Max input
1,000,000 tokens
Max output
128,000 tokens
Input → output
Text, Image → Text
Knowledge cutoff
June 2026
  • Image input
  • Streaming
  • Cached input pricing
  • OpenAI SDK compatible

Claude Sonnet 5.5 API use cases

Each use case comes with an illustrative example: source material, a prompt and a hand-written sample answer, not actual model output. Copy the prompt, swap in your own material and try it on Claude Sonnet 5.5.

Try Claude Sonnet 5.5 with your own material

Find and fix errors

Send the error message with the related function, and have Claude Sonnet 5.5 explain which line it comes from and why, then give the smallest fix and a test that reproduces the problem.

Example: What’s causing this error?

Material

Error
TypeError: Cannot read properties of undefined (reading 'price')
cart.ts
const total = items.reduce((sum, id) => sum + catalog[id].price, 0);
What we see
One item in the cart has been discontinued.

PromptFrom the error and the function, explain the direct cause, give the smallest fix, and write a test that reproduces the problem.

Sample answer · written by hand to show the reasoning

The discontinued item isn’t in catalog, so catalog[id] is undefined and reading price throws. Fix: filter out ids that aren’t in catalog, or price them at 0 and tell the user. Test: pass an id that doesn’t exist and assert the total is computed without that item and without an error.

About the Claude Sonnet 5.5 API

  • Over 30% faster output than Sonnet 5

    Anthropic calls Claude Sonnet 5.5 its fastest Sonnet yet, generating more than 30% faster than Sonnet 5. It usually needs fewer tokens for the same work, cutting cost by up to 30% on most tasks.

  • Best at well-scoped everyday work

    Anthropic says it excels at clearly bounded daily work: fixing bugs, writing code, and producing well-formatted documents, slides and spreadsheets. For open-ended tasks that need long independent judgment, Claude Opus 5.5 is stronger.

  • Adjustable thinking effort

    Claude Sonnet 5.5 uses adaptive thinking, so the model decides how long to think; the default effort in the Anthropic API is high. For latency-sensitive requests, lower the effort so it only thinks between tool calls.

  • Claude Sonnet 5.5 API key and access

    You don’t need a separate Claude Sonnet 5.5 API key: one APIMart key works for every model. Requests go through an OpenAI Chat Completions-compatible endpoint with the model ID claude-sonnet-5-5.

Claude Sonnet 5.5 official benchmark results

Selected results Anthropic published at launch.

  • Terminal-Bench 4.0

    70.6%

    Agentic coding tasks in a terminal. Sonnet 5 scores 10.3% and Claude Opus 5.5 66.4% (Xhigh).

  • CursorBench 4.0

    55.5%

    Real development tasks in the Cursor editor. 21.4 points above Sonnet 5 (34.1%); Opus 5.5 scores 57.8%.

  • GDPval-AA v2.1

    1,844 Elo

    Knowledge work from real jobs. Just 2 points behind Claude Opus 5.5 (1,846); Sonnet 5 scores 1,449. Elo is a relative rating from head-to-head comparisons; higher is better.

  • OSWorld 2.1 (partial)

    80.1%

    Completing tasks by operating a computer. Sonnet 5 scores 57.0% and Opus 5.5 81.8%.

  • Humanity's Last Exam (with tools)

    64.5%

    Hard questions across many disciplines. Sonnet 5 scores 54.9% and Opus 5.5 67.7%.

  • Chartography (no tools)

    61.6%

    Reading and understanding charts. Sonnet 5 scores just 15.6%; Opus 5.5 scores 64.4%.

How to call the Claude Sonnet 5.5 API

To call Claude Sonnet 5.5, you only need an APIMart API key and your existing OpenAI SDK, or send plain HTTP requests.

POST /v1/chat/completions
curl https://api.apimart.ai/v1/chat/completions \
  -H "Authorization: Bearer $APIMART_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "claude-sonnet-5-5",
  "messages": [
    {
      "role": "user",
      "content": "Describe how to design a clear API in three sentences."
    }
  ],
  "stream": false
}'

Claude Sonnet 5.5 access details

Model IDclaude-sonnet-5-5
Base URLhttps://api.apimart.ai/v1
Endpoint/chat/completions

Common parameters

model
Required
messages
Required
stream
Optional
max_tokens
Optional
temperature
Optional
All request parameters, response fields and error codes

Claude Sonnet 5.5 API request parameters

Claude Sonnet 5.5 uses the general chat endpoint, POST /v1/chat/completions, with a JSON body. model and messages are required; every other parameter is optional.

ParameterTypeRequiredDescription
modelstringYesModel ID. Use claude-sonnet-5-5 for this model.
messagesarrayYesConversation messages. Each message has a role (system, user, or assistant) and content. Include earlier messages for multi-turn conversations.
streambooleanNoWhether to stream the output. true returns chunks over SSE, false returns the full response at once. Default: true.
temperaturenumberNoOutput randomness, 0–2. Default: 1.0. Lower values give more deterministic output.
top_pnumberNoNucleus sampling, 0–1. Default: 1.0. Adjust this or temperature, not both.
max_tokensintegerNoMaximum number of tokens to generate for the reply.
frequency_penaltynumberNoFrequency penalty, -2.0 to 2.0. Default: 0. Positive values reduce repeated wording.
presence_penaltynumberNoPresence penalty, -2.0 to 2.0. Default: 0. Positive values encourage new topics.
stopstring | arrayNoUp to 4 stop sequences. Generation stops when any of them appears.
nintegerNoNumber of replies to generate. Default: 1.

Response fields

The response contains the fields below. Token usage is returned in usage, which you can use to check costs.

FieldTypeDescription
idstringUnique identifier for the request.
modelstringThe model that handled the request.
choicesarrayList of replies. Each item contains message (role and content) and finish_reason.
usageobjectToken usage: prompt_tokens, completion_tokens, and total_tokens.

Error codes

Failed requests return an error object with code, message, and type.

StatusTypeMeaning
400invalid_request_errorInvalid request parameters.
401authentication_errorThe API key is invalid or missing.
402payment_requiredInsufficient account balance.
403permission_errorNo permission to access this resource.
429rate_limit_errorToo many requests. Retry later.
500server_errorInternal server error.
502bad_gatewayGateway error. The service is temporarily unavailable.

Claude Sonnet 5.5 API pricing

The Claude Sonnet 5.5 API is billed by token usage, and prices depend on your membership tier. Prices below are per million tokens; 1 US dollar = 10 credits.

ItemGoldCurrent pricePlatinumDiamondOfficial priceYou save
Input16Credits~$1.615.2Credits~$1.5214.4Credits~$1.4420Credits~$220%
Cached input0.8Credits~$0.080.76Credits~$0.0760.72Credits~$0.0721Credits~$0.120%
Output80Credits~$876Credits~$7.672Credits~$7.2100Credits~$1020%

Prices are for reference only. View full pricing

Why call Claude Sonnet 5.5 API through APIMart

  • 20% below official pricing

    Claude Sonnet 5.5 API pricing is billed by token usage. Gold to Diamond member prices are 20%–28% below Anthropic's official prices, and cached input costs just $0.08 per 1M tokens.

    See membership prices
  • One API key for 500+ models

    Claude Sonnet 5.5, the rest of its family and 500+ models from GPT, Claude, Gemini and more share one API key and one account balance. Switching models is just a change to the model parameter.

  • Change two lines of existing code

    If you already use the OpenAI SDK, point base_url at https://api.apimart.ai/v1 and swap in your APIMart API key. Requests and responses keep the same format.

  • Try it online before you code

    Try Claude Sonnet 5.5 with your own material in the Playground, no code or setup needed, and integrate once you like the results.

    Open Playground

Which Anthropic model should you choose?

Base prices per 1M tokens (USD). Your Claude Sonnet 5.5 API key works for every model in the table; just change the model parameter.

Differences between Anthropic models
ComparisonClaude Sonnet 5.5 CurrentClaude Sonnet 4.5Claude Haiku 4.5Claude Opus 4.5Claude Opus 4.6Claude Sonnet 4.6Claude Opus 4.7Claude Opus 4.8Claude Fable 5Claude Sonnet 5Claude Opus 5Claude Haiku 5.5Claude Opus 5.5Claude Fable 5.1Claude Fable 5.2
Best forEveryday coding, Agentic tasks, Data analysisCoding and agents, Computer use, 200K contextSmall model, Sub-agents and bulk tasks, 200K contextCoding and agents, Adjustable effort, 200K contextCoding and code review, Knowledge work, 1M contextCoding, Computer use, 1M contextHard coding tasks, High-resolution images, Long agentic runsLarge code migrations, Legal and knowledge work, Computer useLong-running agents, Software engineering, Knowledge work and scienceCoding, Research agents, Computer useCoding, Agents, Knowledge workClassification & routing, Data extraction, Sub-agent tasksAgentic coding, Large-scale refactoring, Knowledge workCode review, Long-running coding, Documents and spreadsheetsHard coding problems, Scientific research, Financial modeling
Max input1,000,000 tokens200,000 tokens200,000 tokens200,000 tokens1,000,000 tokens1,000,000 tokens1,000,000 tokens1,000,000 tokens1,000,000 tokens1,000,000 tokens1,000,000 tokens1,000,000 tokens1,000,000 tokens1,000,000 tokens1,000,000 tokens
Max output128,000 tokens64,000 tokens64,000 tokens64,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens128,000 tokens
Knowledge cutoffJune 2026January 2025February 2025May 2025May 2025August 2025January 2026January 2026January 2026January 2026May 2026June 2026June 2026June 2026June 2026
Input price$1.6$2.4$0.8$4$4$2.4$4$4$8$1.6$4$0.08$3.2$8$6.4
Output price$8$12$4$20$20$12$20$20$40$8$20$0.4$16$40$32

Claude Sonnet 5.5 FAQ

Should I use Claude Sonnet 5.5 or Claude Opus 5.5?

Both belong to Anthropic’s Claude 5.5 family and have the same context window and max output. Sonnet 5.5 is faster and costs half as much as Opus 5.5 at official prices, which suits everyday coding, agents, and enterprise applications; Opus 5.5 targets long-running agentic coding and knowledge work. Start with Sonnet 5.5 and move the tasks it does not handle well to Opus 5.5. On APIMart both share one endpoint and API key, so you only change the model parameter.

How is Claude Sonnet 5.5 different from Sonnet 5?

Claude Sonnet 5.5 is the next generation after Sonnet 5. According to Anthropic, Claude Sonnet 5.5 pricing matches Sonnet 5 on input and output, the context window and max output are the same, while Sonnet 5.5 lowers the cache read price from 10% to 5% of the input price. To switch from Sonnet 5, set model to claude-sonnet-5-5 and rerun your own prompts to check the output.

When was Claude Sonnet 5.5 released?

Anthropic released Claude Sonnet 5.5 on September 28, 2026, with a reliable knowledge cutoff of June 2026. It is available on APIMart under the model ID claude-sonnet-5-5.

How can I try this model online?

Click Start chatting or Open Playground to visit the existing APIMart Playground. Select Claude Sonnet 5.5 in the text category to start exploring.

Which model ID does the Claude Sonnet 5.5 API use?

Set model to claude-sonnet-5-5. Copy the exact ID from the page heading or the integration details panel.

Is it compatible with the OpenAI SDK?

You can keep the OpenAI SDK. Set base_url to https://api.apimart.ai/v1, provide your APIMart API key, and use the model ID on this page.

What is the context window of Claude Sonnet 5.5?

On APIMart, Claude Sonnet 5.5 accepts up to 1,000,000 input tokens per request. Your prompt, earlier messages, and file content all count toward it.

How many tokens can it output at once?

Claude Sonnet 5.5 can output up to 128,000 tokens in a single reply. Use the max_tokens parameter to set a lower limit.

How much does the Claude Sonnet 5.5 API cost?

The Claude Sonnet 5.5 API on APIMart is billed by token, and prices depend on your membership tier. Gold: $1.6 per million input tokens and $8 per million output tokens. Diamond: $1.44 per million input tokens and $7.2 per million output tokens. Prices may change; the pricing page has the current rates.

Does it support streaming?

Yes. The general chat endpoint streams over SSE by default. Set stream to false to receive the complete response at once.

How do I get an API key?

Sign in to APIMart and create a key on the API Keys page, then send it in the Authorization: Bearer header. The same key also works for other models on the platform.