APIMart
Back to all models

Claude Opus 4.5 API

AnthropicModel ID claude-opus-4-5Text modelReleased November 24, 2025

Use Claude Opus 4.5 to refactor an old feature that touches several modules, run deep research that gathers sources before concluding, or build a spreadsheet with formulas and a slide outline.

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

Claude Opus 4.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 4.5.

Try Claude Opus 4.5 with your own material

Refactor features that touch many modules

Give Claude Opus 4.5 the related modules, their call graph and the existing tests, ask for a step-by-step plan first, then the changes one step at a time. Run the tests after each step and continue only when behavior is unchanged.

Example: How should we break up this payment module?

Material

Current state
PaymentService is 1,800 lines and handles charging, refunds, invoices and reconciliation; all four share a single status field.
Constraints
No downtime; existing API inputs and responses stay the same.

PromptGive a step-by-step refactoring plan: what each step changes and how to verify behavior is unchanged. Do the lowest-risk steps first.

Sample answer · written by hand to show the reasoning

Step 1: add API-level tests for charging, refunds, invoices and reconciliation as the baseline for every later step. Step 2: split status into paymentStatus and invoiceStatus, and keep returning the old field computed from the new ones so the API doesn’t change. Step 3: move invoices and reconciliation, the read-heavy parts, into their own services first. Step 4: split charging and refunds last. After each release, compare a week of reconciliation results and move on only when they match.

About the Claude Opus 4.5 API

  • Coding, agents and computer use at launch

    Anthropic released Claude Opus 4.5 on November 24, 2025 as the best model in the world for coding, agents and computer use, and meaningfully better at deep research, slides and spreadsheets.

  • Trade effort for fewer tokens

    At medium effort, Opus 4.5 matched Sonnet 4.5’s best SWE-bench Verified score with 76% fewer output tokens. Lower effort for simple tasks, raise it for hard ones.

  • 200K context, 64K output

    A 200K-token context window, up to 64K output tokens, text and image input and extended thinking. For a 1M-token context, switch to Claude Opus 5.5.

  • Claude Opus 4.5 API key and access

    You don’t need a separate Claude Opus 4.5 API key: one APIMart key works for every model. Claude Opus 4.5 API pricing is in the table on this page, and access goes through an OpenAI Chat Completions-compatible endpoint with the model ID claude-opus-4-5.

How to call the Claude Opus 4.5 API

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

Claude Opus 4.5 access details

Model IDclaude-opus-4-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 4.5 API request parameters

Claude Opus 4.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-4-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 4.5 API pricing

The Claude Opus 4.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 4.5 API through APIMart

  • 20% below official pricing

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

Differences between Anthropic models
ComparisonClaude Opus 4.5 CurrentClaude Sonnet 4.5Claude Haiku 4.5Claude Opus 4.6Claude 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 agents, Adjustable effort, 200K contextCoding and agents, Computer use, 200K contextSmall model, Sub-agents and bulk tasks, 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 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 input200,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 tokens1,000,000 tokens
Max output64,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 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.5 FAQ

Claude Opus 4.5 or Claude Opus 5.5?

Start new projects on Claude Opus 5.5: it is Anthropic’s current Opus, with a 1M-token context window and up to 128K output tokens. Opus 4.7 and later use a new tokenizer that counts somewhat more tokens for the same text, so compare real costs with your own prompts. Workloads already validated on Opus 4.5 can stay; on APIMart you switch by changing the model parameter.

What does the Claude Opus 4.5 effort parameter do?

Effort controls how many tokens the model spends thinking and answering. In Anthropic’s launch data, at medium effort Opus 4.5 matched Sonnet 4.5’s best SWE-bench Verified score with 76% fewer output tokens; at the highest effort it beat Sonnet 4.5 by 4.3 percentage points while still using 48% fewer tokens. Lower effort on simple tasks saves real money.

How much stronger is Claude Opus 4.5 than Sonnet 4.5?

Anthropic reported a 10.6% jump over Sonnet 4.5 on Aider Polyglot, 29% more earnings on the long-horizon Vending-Bench, and a lead in 7 of 8 programming languages on SWE-bench Multilingual. Pick Opus for deeper reasoning and long tasks, and Sonnet for high-volume, cost-sensitive work.

What is the Claude Opus 4.5 knowledge cutoff?

Anthropic lists a reliable knowledge cutoff of May 2025 and a training data cutoff of August 2025 for Claude Opus 4.5. For newer information, include the material in the request or pair it with a web search tool.

How can I try this model online?

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

Which model ID does the Claude Opus 4.5 API use?

Set model to claude-opus-4-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 4.5?

On APIMart, Claude Opus 4.5 accepts up to 200,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.5 can output up to 64,000 tokens in a single reply. Use the max_tokens parameter to set a lower limit.

How much does the Claude Opus 4.5 API cost?

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