APIMart
Back to all models

Claude Opus 5 API

AnthropicModel ID claude-opus-5Text modelReleased July 24, 2026

Use Claude Opus 5 to find why two requests can book the same seat, work out which region explains a revenue drop, or flag what a customer contract means for a deal.

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

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

Try Claude Opus 5 with your own material

Concurrency bugs in code

Send the code path and describe the wrong result, and have Claude Opus 5 explain how two requests can interleave and give a fix that holds under load. Confirm it with a test that fires the requests at the same time.

Example: Why can two people book the same seat?

Material

book.ts
const seat = await db.getSeat(id); if (!seat.taken) await db.markTaken(id);
Incident
Two customers received confirmations for seat 14C on the same flight, 40 ms apart.

PromptUsing the code and the incident, explain how two bookings for one seat can succeed, and give a fix that stays correct when requests arrive at the same moment.

Sample answer · written by hand to show the reasoning

The code reads the seat, then writes it in a separate step. Both requests read seat 14C as free before either one marked it, so both succeeded. Make the check and the write one statement, such as UPDATE seats SET taken = true WHERE id = $1 AND taken = false, and treat zero updated rows as already booked. Test it by sending two requests for the same seat at once.

About the Claude Opus 5 API

  • Near-Fable intelligence at half the price

    Anthropic released Claude Opus 5 on July 24, 2026 as an Opus model designed for everyday use, saying it comes close to Claude Fable 5 at half the price and improves greatly on Opus 4.8 at the same price.

  • Opus 5.5 costs 20% less

    Anthropic released Claude Opus 5.5 on September 22, 2026 and now lists Opus 5 as legacy. Start new projects on Opus 5.5; workloads validated on Opus 5 can stay, with retirement not before July 24, 2027.

  • Adaptive thinking you can turn off

    Thinking is on by default with high effort. In Anthropic’s official API, Claude Opus 5 can disable thinking at high effort or lower, an option Opus 5.5 no longer offers.

  • Claude Opus 5 API key and access

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

Claude Opus 5 official benchmark results

Selected results Anthropic published at launch.

  • Frontier-Bench v0.1

    2× and up

    Software engineering tasks run with the mini-SWE-agent harness, averaged over five attempts per task. More than doubles Opus 4.8’s score.

  • CursorBench 3.2 (max)

    Within 0.5%

    Coding tasks in the Cursor editor. Within 0.5% of Claude Fable 5’s peak score, at half the cost per task.

  • ARC-AGI 3

    3×

    Abstract reasoning. Three times the score of the next-best model at launch.

  • Zapier AutomationBench

    About 1.5×

    Business workflows across apps. A pass rate around 1.5 times the next-best model’s at the same cost per task.

  • OSWorld 2.0

    About ⅓ the cost

    Completing tasks by operating a computer. Beats Claude Fable 5’s best result at just over a third of the cost.

  • Life-sciences tasks (Anthropic internal)

    +10.2 pts

    Organic chemistry tasks, 10.2 percentage points above Opus 4.8; protein-related tasks improve by 7.7 points.

How to call the Claude Opus 5 API

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

Claude Opus 5 access details

Model IDclaude-opus-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 Opus 5 API request parameters

Claude Opus 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-opus-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 Opus 5 API pricing

The Claude Opus 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
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 5 API through APIMart

  • 20% below official pricing

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

    See membership prices
  • One API key for 500+ models

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

Differences between Anthropic models
ComparisonClaude Opus 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 Haiku 5.5Claude Sonnet 5.5Claude Opus 5.5Claude Fable 5.1Claude Fable 5.2
Best forCoding, Agents, Knowledge workCoding 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 useClassification & 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 2026January 2025February 2025May 2025May 2025August 2025January 2026January 2026January 2026January 2026June 2026June 2026June 2026June 2026June 2026
Input price$4$2.4$0.8$4$4$2.4$4$4$8$1.6$0.08$1.6$3.2$8$6.4
Output price$20$12$4$20$20$12$20$20$40$8$0.4$8$16$40$32

Claude Opus 5 FAQ

Should I use Claude Opus 5 or Claude Opus 5.5?

Start new projects on Claude Opus 5.5. Anthropic released it on September 22, 2026 at official prices 20% lower than Opus 5, and says it costs about 40% less to run and generates output more than 30% faster. Anthropic now lists Opus 5 as a legacy model and suggests migrating. Workloads already tuned and validated on Opus 5 can stay on it. On APIMart both share one endpoint and API key, so you only change the model parameter.

How is Claude Opus 5 different from Opus 4.8?

Anthropic says Claude Opus 5 greatly improves on Opus 4.8 at the same official price. In its launch results, Opus 5 more than doubles Opus 4.8’s score on Frontier-Bench v0.1, and on internal life-sciences tasks it gains 10.2 points in organic chemistry. To switch from Opus 4.8, set model to claude-opus-5 and rerun your own prompts.

Can I turn off thinking on Claude Opus 5?

Yes, unlike Opus 5.5. According to Anthropic’s docs, Claude Opus 5 uses adaptive thinking that is on by default, and in Anthropic’s official API thinking can be disabled when effort is high or lower; high is the default effort. Opus 5.5 removes that option, so code that turns thinking off needs changing before you move up.

Does input over 200K tokens cost more?

No. According to Anthropic’s pricing docs, Claude Opus 5 includes its full 1M-token context window at standard prices, with no long-context surcharge. The pricing table on this page applies to the whole window.

Is Claude Opus 5 being retired?

Not yet. Anthropic’s deprecations page lists claude-opus-5 as active, with retirement not sooner than July 24, 2027. It is a legacy model, which 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 5 in the text category to start exploring.

Which model ID does the Claude Opus 5 API use?

Set model to claude-opus-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 Opus 5?

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

The Claude Opus 5 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.