# Anthropic Claude Sonnet 5 API

> Claude Sonnet 5 is a Sonnet-class model for high-quality coding, agentic workflows, reasoning, vision, structured outputs, and tool use.

Source: https://www.sandbase.ai/models/anthropic/claude-sonnet-5
API reference: https://www.sandbase.ai/models/anthropic/claude-sonnet-5/docs

## Facts

- Provider: Anthropic
- Type: Language model
- Model ID: `anthropic/claude-sonnet-5`
- Price: $1.70 per 1M input tokens, $8.50 per 1M output tokens (15% off list price)
- Context window: 1M tokens, up to 128K output tokens
- Capabilities: chat, vision, reasoning, structured output, function calling
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

- Chat Completions API: `POST https://api.sandbase.ai/v1/chat/completions`
- Messages API: `POST https://api.sandbase.ai/v1/messages`

```bash
curl -X POST https://api.sandbase.ai/v1/chat/completions \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "anthropic/claude-sonnet-5",
  "messages": [
    {
      "role": "user",
      "content": "Hello"
    }
  ],
  "max_tokens": 2048
}'
```

## FAQ

### How do I call Anthropic Claude Sonnet 5 through SandBase?

Create a SandBase API key, then send requests with the model ID "anthropic/claude-sonnet-5" to Chat Completions API (/v1/chat/completions) or Messages API (/v1/messages) at https://api.sandbase.ai. The request examples on this page show the exact payload.

### How much does Anthropic Claude Sonnet 5 cost?

$1.70 per 1M input tokens and $8.50 per 1M output tokens with the current 15% discount (list price $2 / $10), billed per request from your SandBase balance.

### What is the context window of Anthropic Claude Sonnet 5?

1M tokens of context, with up to 128K output tokens per response.

### How does Anthropic Claude Sonnet 5 score on benchmarks?

Anthropic Claude Sonnet 5 scores 38.2 on the Artificial Analysis Intelligence Index (v4.3), ranking #27 of 83 models on SandBase; Coding Index 71.5, Agentic Index 43.6. Source: Artificial Analysis, measured as Claude Sonnet 5 (Max).

### Which features does Anthropic Claude Sonnet 5 support?

Anthropic Claude Sonnet 5 supports vision (image input), reasoning, function calling, structured output. See Specifications above for the full list.

### Do I need a separate Anthropic account?

No. One SandBase API key and balance gives you access to Anthropic Claude Sonnet 5 and the other models in the catalog; you do not need to sign up with Anthropic separately.
