Claude Sonnet 4.6

40% OFFNEW

Model ID

Put this value in the request body's `model` field — not the display name above.

Text generationReasoningImage understandingToolsJSON1MClosed source

by Anthropic · Anthropic Sonnet 4.6. 1M context, the best value, balanced between reasoning and coding. Cached input costs 1/10 of the input price. Supports all three protocols.

Try it now

Quick start

EndpointPOST /v1/chat/completions
AuthenticationAuthorization: Bearer sk-gpushare-…Get API key
Call styleSynchronous: one request returns the result
Base URLhttps://qd.zsopc.com/v1
cURL
curl https://qd.zsopc.com/v1/chat/completions \
  -H "Authorization: Bearer sk-gpushare-xxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-sonnet-4-6",
    "messages": [
      {"role": "user", "content": "你可以帮我做什么"}
    ]
  }'

Pricing

Billed per token: input and output are priced separately and settled on the upstream's reported usage.

Rates
Input 0.7279Credits/K·Output 3.6396Credits/K
  • Input tokens that hit the prompt cache are billed at 72.79 Credits / 1M — cheaper than full-price input.
  • Tokens written into the prompt cache for the first time are billed at 909.9 Credits / 1M — above full-price input. The cache lives about 5 minutes, so it only pays off if you call again within that window.
  • Failed requests (upstream 4xx / 5xx) are not billed.
  • All your API keys share one balance; when it runs out the API returns HTTP 402 `quota_exceeded`.

Sign in and any personal discount on your account will show up here. Sign in

Capabilities & specs

Category
Text generation
Context window
1M tokens
Default max output
64k tokens
Endpoint family
Chat Completions
Protocols
OpenAI Chat · Anthropic Messages · OpenAI Responses
License
Closed source

Try it

Pick a key under "API access" and fire one real request to see the response — the estimated cost is shown before you send.

Common errors

404 model_not_found

You passed the display name instead of the model ID.✗ Claude Sonnet 4.6→✓ claude-sonnet-4-6

→ Copy the Model ID at the top of this page

402 quota_exceeded

Insufficient account balance. All your API keys share one balance.

→ Add funds in your account

401 / 403

The API key is invalid, or it has a model allowlist that doesn't include this ID.

→ Check the key's status and allowed models

400 invalid_request

A request body field is invalid, or this model doesn't support the protocol endpoint you called.

→ Check your request body against the sample code above

Try it

Claude Sonnet 4.6 FAQ

How do I call Claude Sonnet 4.6?
Set the model field of the request body to claude-sonnet-4-6, send it to https://qd.zsopc.com/v1/chat/completions, and put your key (it starts with sk-gpushare-) in the Authorization: Bearer header. The official OpenAI, Anthropic and Google Gemini SDKs all work directly; just point base_url at this gateway.
How much does the Claude Sonnet 4.6 API cost?
  • 40% OFF right now; the prices charged are below
  • Input: 727.92 credits (≈ ¥12.13 / ≈ $1.8) per 1M tokens
  • Output: 3,640 credits (≈ ¥60.66 / ≈ $9) per 1M tokens
  • Cached input: 72.79 credits (≈ ¥1.21 / ≈ $0.18) per 1M tokens
  • Cache write: 909.9 credits (≈ ¥15.17 / ≈ $2.25) per 1M tokens
  • List price (applies again when the offer ends): Input: 1,213 credits (≈ ¥20.22 / ≈ $3) per 1M tokens; Output: 6,066 credits (≈ ¥101.1 / ≈ $15) per 1M tokens; Cached input: 121.32 credits (≈ ¥2.02 / ≈ $0.3) per 1M tokens; Cache write: 1,517 credits (≈ ¥25.28 / ≈ $3.75) per 1M tokens
  • Prices are in credits: 60 credits = ¥1. Each call first holds the most it could cost, then settles on actual usage and refunds the difference.
How large is Claude Sonnet 4.6's context window?
1,000,000 tokens, with a default output limit of 64,000 tokens per request.
What can Claude Sonnet 4.6 do?
Image input, Tool calling, Thinking mode, Web search, JSON mode. Compatible protocols: OpenAI Chat Completions, Anthropic Messages, OpenAI Responses.

Prices and details updated 2026-11-17. Input price is about $1.8 per 1M tokens. Markdown version of this page: /en/models/claude-sonnet-4-6.md

Related