Back to Models

Opus 5 APIActive

claude-opus-5

No description available

By:AnthropicInput Type:Output Type:

AI Code With channel availability

The same model is billed by channel discount. Copy a channel code to set your preference.

ChannelCache Hit RateContext
特价渠道81% off
78.0%¥6.84/ M tokens¥34.2/ M tokensRead:¥0.684/ M tokensWrite:¥8.55/ M tokens1M0.0s
企业混合池35% off
78.0%¥23.4/ M tokens¥117/ M tokensRead:¥2.34/ M tokensWrite:¥29.25/ M tokens1M0.0s

Related Models

More models from Anthropic

Compare models from other providers

Opus 5 API: price, model ID, and how to call it

Call Opus 5 through AI Code With. Use model ID claude-opus-5 with 1M context. list price about $5.00 / $25.00 per 1M tokens before channel discounts. About $0.1425 for 100,000 input / 10,000 output tokens at the cheapest live channel.

Model IDclaude-opus-5
ProtocolsOpenAI Chat Completions · Anthropic Messages
Context1M
Max output128K

Next: Get API key · Claude Code setup guide · Compare Claude models · All model prices

Cost calculator

Estimate at the cheapest live channel: $0.9500 / $4.75 per 1M tokens, cache read $0.0950, cache write $1.19. Billed usage follows your prepaid balance.

Estimated cost$0.1425

cURL example

Set model to claude-opus-5. The page slug is only the URL, not the API parameter.

curl https://api.aicodewith.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $AICODEWITH_API_KEY" \
  -d '{
    "model": "claude-opus-5",
    "messages": [
      { "role": "user", "content": "What is the meaning of life?" }
    ]
  }'

FAQ

What is the Opus 5 model ID?

Send model "claude-opus-5" in the API request. The page path /claude-opus-5 is only the URL, not the model parameter.

How do I call the Opus 5 API?

Use one AI Code With API key against https://api.aicodewith.ai/v1/chat/completions(OpenAI Chat Completions)和 https://api.aicodewith.ai/v1/messages(Anthropic Messages,Authorization: Bearer), and set model to claude-opus-5. Supported protocols: OpenAI Chat Completions / Anthropic Messages. See Claude Code setup guide.

How is Opus 5 priced?

Opus 5 is list price about $5.00 / $25.00 per 1M tokens before channel discounts. The public page shows available channel discounts; billed usage follows your prepaid balance and the live channel. About $0.1425 for 100,000 input / 10,000 output tokens at the cheapest live channel.

How long is the Opus 5 context window?

Opus 5 has about 1M input context and up to 128K output tokens. Treat that as capacity, not a reason to fill every request.