APIMart
Back to all models

Claude Opus 4.6 API

AnthropicModel ID claude-opus-4-6Text modelReleased February 5, 2026

Use Claude Opus 4.6 to review a pull request against your team’s rules, check a financial summary against the source table, or plan a refactor across a large codebase.

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

Claude Opus 4.6 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 Opus 4.6.

Try Claude Opus 4.6 with your own material

Code review against team rules

Give Claude Opus 4.6 the diff and your team’s review checklist, and have it list each change that breaks a rule, with the line. A reviewer still approves the merge.

Example: Does this diff follow our review rules?

Material

Review checklist
1) No secrets in code. 2) Every new endpoint needs an auth check. 3) Database queries use parameters, never string concatenation.
Diff
+ app.get('/export', async (req, res) => { const rows = await db.query(`SELECT * FROM orders WHERE region = '${req.query.region}'`); res.json(rows); });

PromptCheck the diff against the checklist and list each rule it breaks, quoting the line.

Sample answer · written by hand to show the reasoning

Two rules are broken. Rule 2: the new /export endpoint has no auth check before it returns orders. Rule 3: the query builds SQL by inserting req.query.region into the string; pass the region as a parameter instead. No secrets appear in the diff.

About the Claude Opus 4.6 API

  • Built for coding and knowledge work

    Anthropic released Claude Opus 4.6 on February 5, 2026 with better planning, longer agentic tasks and code review, plus gains in financial analysis, research and documents.

  • The first Opus with 1M context

    Opus 4.6 was the first Opus model with a 1M-token context window, now billed at standard prices across the whole window, with up to 128K output tokens.

  • Opus 5.5 costs 20% less

    Anthropic now lists Opus 4.6 as legacy and recommends Claude Opus 5.5. Workloads validated on Opus 4.6 can stay, with retirement not before February 5, 2027.

  • Claude Opus 4.6 API key and access

    You don’t need a separate Claude Opus 4.6 API key: one APIMart key works for every model. Check the Claude Opus 4.6 pricing table on this page, then call an OpenAI Chat Completions-compatible endpoint with the model ID claude-opus-4-6.

Claude Opus 4.6 official benchmark results

Selected results Anthropic published at launch.

  • Terminal-Bench 2.0

    65.4%

    Agentic coding tasks in a terminal. Up from 59.8% for Opus 4.5 and ahead of GPT-5.2 (64.7%) and Gemini 3 Pro (56.2%).

  • OSWorld-Verified

    72.7%

    Completing tasks by operating a computer. Up from 66.3% for Opus 4.5 and 61.4% for Sonnet 4.5.

  • ARC-AGI-2

    68.8%

    Novel visual reasoning puzzles. Up from 37.6% for Opus 4.5 and ahead of GPT-5.2 (54.2%) and Gemini 3 Pro Deep Thinking (45.1%).

  • τ²-bench (Retail)

    91.9%

    Customer service tasks with tools and policies. Ahead of Opus 4.5 (88.9%), Gemini 3 Pro (85.3%) and GPT-5.2 (82.0%).

  • SWE-bench Verified

    80.8%

    Real GitHub issues. On par with Opus 4.5 (80.9%) and GPT-5.2 (80.0%), ahead of Gemini 3 Pro (76.2%).

  • GPQA Diamond

    91.3%

    Graduate-level science questions. Up from 87.0% for Opus 4.5; GPT-5.2 scores 93.2% and Gemini 3 Pro 91.9%.

How to call the Claude Opus 4.6 API

To call Claude Opus 4.6, 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-opus-4-6",
  "messages": [
    {
      "role": "user",
      "content": "Describe how to design a clear API in three sentences."
    }
  ],
  "stream": false
}'

Claude Opus 4.6 access details

Model IDclaude-opus-4-6
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 Opus 4.6 API request parameters

Claude Opus 4.6 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-opus-4-6 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 Opus 4.6 API pricing

The Claude Opus 4.6 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
Input40Credits~$438Credits~$3.836Credits~$3.650Credits~$520%
Cached input4Credits~$0.43.8Credits~$0.383.6Credits~$0.365Credits~$0.520%
Output200Credits~$20190Credits~$19180Credits~$18250Credits~$2520%

Prices are for reference only. View full pricing

Why call Claude Opus 4.6 API through APIMart

  • 20% below official pricing

    Claude Opus 4.6 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.4 per 1M tokens.

    See membership prices
  • One API key for 500+ models

    Claude Opus 4.6, 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 Opus 4.6 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 Opus 4.6 API key works for every model in the table; just change the model parameter.

Differences between Anthropic models
ComparisonClaude Opus 4.6 CurrentClaude Sonnet 4.5Claude Haiku 4.5Claude Opus 4.5Claude Sonnet 4.6Claude Opus 4.7Claude Opus 4.8Claude Fable 5Claude Sonnet 5Claude Opus 5Claude Haiku 5.5Claude Sonnet 5.5Claude Opus 5.5Claude Fable 5.1Claude Fable 5.2
Best forCoding and code review, Knowledge work, 1M contextCoding and agents, Computer use, 200K contextSmall model, Sub-agents and bulk tasks, 200K contextCoding and agents, Adjustable effort, 200K 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 tasksEveryday coding, Agentic tasks, Data analysisAgentic 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 cutoffMay 2025January 2025February 2025May 2025August 2025January 2026January 2026January 2026January 2026May 2026June 2026June 2026June 2026June 2026June 2026
Input price$4$2.4$0.8$4$2.4$4$4$8$1.6$4$0.08$1.6$3.2$8$6.4
Output price$20$12$4$20$12$20$20$40$8$20$0.4$8$16$40$32

Claude Opus 4.6 FAQ

Should I use Claude Opus 4.6 or a newer Opus model?

Start new projects on Claude Opus 5.5: Anthropic now recommends it to Opus 4.6 users, and its official prices are 20% lower. Opus 4.7 and Opus 4.8 cost the same as Opus 4.6 and score higher on Anthropic’s coding benchmarks. Workloads already tuned and validated on Opus 4.6 can stay on it. On APIMart all of them share one endpoint and API key, so switching means changing the model parameter and re-testing your prompts.

Does input over 200K tokens cost more?

No. Anthropic’s current pricing docs say Claude 4.6 and later models include the full 1M-token context window at standard prices. When Opus 4.6 launched, the 1M window was in beta and prompts over 200K tokens cost more; that surcharge no longer applies. The pricing table on this page covers the whole window.

How do I turn on thinking for Claude Opus 4.6?

According to Anthropic’s docs, Opus 4.6 recommends adaptive thinking, where the model decides how much to think, and leaves the older budget_tokens mode deprecated. Without a thinking setting it answers without extended thinking. Effort can be low, medium, high or max, with high as the default; the xhigh level arrived with Opus 4.7.

What is the knowledge cutoff of Claude Opus 4.6?

Anthropic lists a reliable knowledge cutoff of May 2025 for Claude Opus 4.6, with training data through August 2025. For events after that, pass the relevant documents in the request or use a tool that searches the web.

Is Claude Opus 4.6 being retired?

Not yet. Anthropic lists claude-opus-4-6 as an active legacy model, with retirement not sooner than February 5, 2027. Legacy means it no longer receives updates and may be deprecated later; this page will show a notice and a replacement link if that happens.

How can I try this model online?

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

Which model ID does the Claude Opus 4.6 API use?

Set model to claude-opus-4-6. 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 Opus 4.6?

On APIMart, Claude Opus 4.6 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 Opus 4.6 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 Opus 4.6 API cost?

The Claude Opus 4.6 API on APIMart is billed by token, and prices depend on your membership tier. Gold: $4 per million input tokens and $20 per million output tokens. Diamond: $3.6 per million input tokens and $18 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.