跳到主要内容

Text model

Claude Sonnet 4

anthropic/claude-sonnet-4

anthropic/claude-sonnet-4 is a language model from Anthropic you can call on the OceanToken API at $3.00 per 1M input tokens and $15.00 per 1M output tokens, with a 200K-token context window and up to 64K output tokens; it supports reasoning, tool calling, image input.

At a glance

Model IDanthropic/claude-sonnet-4
TypeText
PublisherAnthropic
Context window200,000 tokens
Max output64,000 tokens
Input price$3.00 per 1M tokens
Output price$15.00 per 1M tokens
Cached input price$0.30 per 1M tokens
Cache write price$3.75 per 1M tokens (1-hour cache: $6.00)
Capabilitiesreasoning, tool calling, image input
Endpoint/v1/chat/completions, /v1/responses
API shapeOpenAI-compatible, or Anthropic Messages (/v1/messages)
In the catalog since2025-05-22

Call it

Base URL https://api.oceantoken.ai/v1, your OceanToken key as the bearer token, and the model ID above as model. The OpenAI SDKs work unchanged; see your first request.

curl https://api.oceantoken.ai/v1/chat/completions \
-H "Authorization: Bearer $OCEANTOKEN_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "anthropic/claude-sonnet-4", "messages": [{"role": "user", "content": "Hello"}]}'

Compared with similar models

Text models on OceanToken closest to anthropic/claude-sonnet-4 in price. Every price is what you pay, in US dollars, with no platform fee on top.

ModelPublisherContextPrice (per 1M tokens)
Claude Sonnet 4Anthropic200,000$3.00 / $15.00
Kimi K3
moonshotai/kimi-k3
Moonshot AI1.05M$3.00 / $15.00
GPT-4o 2024.05 13
openai/gpt-4o-2024-05-13
OpenAI128K$5.00 / $15.00
GPT-5.4
openai/gpt-5.4
OpenAI1.05M$2.50 / $15.00

More from Anthropic

All Anthropic models on OceanToken

Use it

Create an account All models and prices

Prices and capabilities on this page were read from the live OceanToken catalog on 2026-10-18 (UTC), when the documentation was built. If a price has changed since, the console's Models page shows the current one.