anthropic/claude-sonnet-4.6
Generate and analyse text with Anthropic: Claude Sonnet 4.6 from Vertex AI through one Spiral API key. It runs in the background and returns text and structured JSON. Pay as you go, with no subscription.
Pricing
Up to $0.080145 per run at the default inputs. $3.90 per 1M input tokens, $0.39 per 1M cached input tokens, $4.875 per 1M cache write tokens, $7.80 per 1M 1-hour cache write tokens, $19.50 per 1M output tokens; for a prompt above 200,000 tokens, $7.80 per 1M input tokens, $0.78 per 1M cached input tokens, $9.75 per 1M cache write tokens, $15.60 per 1M 1-hour cache write tokens, $29.25 per 1M output tokens.
Limits
- Runs
- In the background
- Returns
- text, json
- Longest queue wait
- 1 hour
- Run deadline
- 30 minutes
- Longest run, end to end
- 225 minutes
- Largest inline input
- 1 MB
- Largest input file
- 500 MB
- Largest output
- 5 GB
- Outputs per run
- 16
Input
| Field | Kind | Default | Description |
|---|---|---|---|
messages required | JSON | — | The conversation so far, oldest first. |
stop | JSON | — | |
tools | JSON | — | |
top_p | number 0 to 1 | — | Taken only at reasoning effort "none", this model's default. |
reasoning | JSON | — | Reasoning effort; reasoning tokens count toward max_tokens. |
max_tokens | number (whole) 1 to 128000 | — | The most output tokens to generate. |
temperature | number 0 to 1 | — | Taken only at reasoning effort "none", this model's default. |
tool_choice | JSON | — | |
response_format | JSON | — | |
reasoning_effort | one of none, minimal, low, medium, high, max | none | How much the model reasons. |
parallel_tool_calls | true or false | — |
Same request in code
curl https://api.spiral.ai/v1/runs \
-H "Authorization: Bearer $SPIRAL_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"provider": "vertex",
"model": "anthropic/claude-sonnet-4.6",
"input": {
"messages": {}
}
}'Frequently asked questions
How much does Anthropic: Claude Sonnet 4.6 cost?
Up to $0.080145 per run at the default inputs. $3.90 per 1M input tokens, $0.39 per 1M cached input tokens, $4.875 per 1M cache write tokens, $7.80 per 1M 1-hour cache write tokens, $19.50 per 1M output tokens; for a prompt above 200,000 tokens, $7.80 per 1M input tokens, $0.78 per 1M cached input tokens, $9.75 per 1M cache write tokens, $15.60 per 1M 1-hour cache write tokens, $29.25 per 1M output tokens. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.
How do I use Anthropic: Claude Sonnet 4.6 through an API?
Send `POST /v1/runs` with `"provider": "vertex"`, `"model": "anthropic/claude-sonnet-4.6"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.
Do I need an account with Vertex AI to use Anthropic: Claude Sonnet 4.6?
No. Spiral runs it on its own Vertex AI account and charges your Spiral balance.
Can my AI agent use Anthropic: Claude Sonnet 4.6?
Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.