# Claude Sonnet Latest

Generate and analyse text with Claude Sonnet Latest from Anthropic through one Spiral API key. This model always redirects to the latest model in the Claude Sonnet family. It runs in the background and returns text and structured JSON. Pay as you go, with no subscription.

- Provider: Anthropic
- Category: LLM
- Runs: In the background
- Returns: text, json
- Tool id: `anthropic` / `~anthropic/claude-sonnet-latest`
- Page: https://spiral.ai/tools/anthropic/~anthropic/claude-sonnet-latest

## Pricing

Up to $0.05343 per run at the default inputs. $2.60 per 1M input tokens, $0.13 per 1M cached input tokens, $3.25 per 1M cache write tokens, $5.20 per 1M 1-hour cache write tokens, $13.00 per 1M output tokens; for a prompt above 200,000 tokens, $5.20 per 1M input tokens, $0.26 per 1M cached input tokens, $6.50 per 1M cache write tokens, $10.40 per 1M 1-hour cache write tokens, $19.50 per 1M output tokens.

## Limits

- Longest queue wait: 1 hour
- Run deadline: 30 minutes
- Longest run, end to end: 225 minutes
- Largest inline input: 1 MB
- Largest input file: 2 GB
- Largest output: 5 GB

## Input

| Field | Kind | Allowed | Default | Description |
| --- | --- | --- | --- | --- |
| `messages` (required) | JSON |  | — | The conversation so far, oldest first. |
| `stop` | JSON |  | — |  |
| `tools` | JSON |  | — |  |
| `reasoning` | JSON |  | — | Reasoning effort; reasoning tokens count toward max_tokens. |
| `max_tokens` | number (whole) | 1 to 128000 | — | The most output tokens to generate. On a reasoning model the reasoning tokens count toward it: a cap too low for the effort can end with no answer (finish_reason length). |
| `tool_choice` | JSON |  | — |  |
| `response_format` | JSON |  | — |  |
| `reasoning_effort` | one of | low, medium, high, xhigh, max | high | How much the model reasons. |
| `parallel_tool_calls` | true or false |  | — |  |

## Example

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "anthropic",
    "model": "~anthropic/claude-sonnet-latest",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=anthropic&model=%7Eanthropic%2Fclaude-sonnet-latest

## Common questions

### Claude Sonnet Latest

**How much does Claude Sonnet Latest cost?**

Up to $0.05343 per run at the default inputs. $2.60 per 1M input tokens, $0.13 per 1M cached input tokens, $3.25 per 1M cache write tokens, $5.20 per 1M 1-hour cache write tokens, $13.00 per 1M output tokens; for a prompt above 200,000 tokens, $5.20 per 1M input tokens, $0.26 per 1M cached input tokens, $6.50 per 1M cache write tokens, $10.40 per 1M 1-hour cache write tokens, $19.50 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 Claude Sonnet Latest through an API?**

Send `POST /v1/runs` with `"provider": "anthropic"`, `"model": "~anthropic/claude-sonnet-latest"` 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 Anthropic to use Claude Sonnet Latest?**

No. Spiral runs it on its own Anthropic account and charges your Spiral balance.

**Can my AI agent use Claude Sonnet Latest?**

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.

