# Claude API

> Use Anthropic Claude through SandBase: Opus for the hardest reasoning, Sonnet for everyday coding and agents, Haiku for speed, and Fable for autonomous technical work.

Source: https://www.sandbase.ai/models/claude

## Models

- [Anthropic Claude Haiku 5.5](https://www.sandbase.ai/models/anthropic/claude-haiku-5.5.md): `anthropic/claude-haiku-5.5`; $0.09 per 1M input tokens, $0.42 per 1M output tokens (15% off list price); Claude Haiku 5.5 is Anthropic's small, fast model for high-volume, cost-sensitive work such as summarization, classification, compaction, subagents, and browser use. It succeeds Claude Haiku 4.5 with ...
- [Anthropic Claude Sonnet 5.5](https://www.sandbase.ai/models/anthropic/claude-sonnet-5.5.md): `anthropic/claude-sonnet-5.5`; $1.70 per 1M input tokens, $8.50 per 1M output tokens (15% off list price); Claude Sonnet 5.5 is Anthropic's Sonnet-class model for well-scoped everyday work, succeeding Claude Sonnet 5 as a direct upgrade. It is especially strong at building features and fixing bugs, with a ...
- [Anthropic Claude Opus 5.5](https://www.sandbase.ai/models/anthropic/claude-opus-5.5.md): `anthropic/claude-opus-5.5`; $3.40 per 1M input tokens, $17 per 1M output tokens (15% off list price); Claude Opus 5.5 is the most powerful model in the Claude 5 family from Anthropic. It excels at complex reasoning, analysis, and creative tasks with superior accuracy and nuance. It supports text, imag...
- [Anthropic Claude Fable 5.1](https://www.sandbase.ai/models/anthropic/claude-fable-5.1.md): `anthropic/claude-fable-5.1`; $8.50 per 1M input tokens, $42.50 per 1M output tokens (15% off list price); Claude Fable 5.1 improves on Claude Fable 5 across the board, with the biggest gains in agentic coding, long-running agentic workflows, and knowledge work: long code refactors, front-end and visual...
- [Anthropic Claude Opus 5](https://www.sandbase.ai/models/anthropic/claude-opus-5.md): `anthropic/claude-opus-5`; $4.25 per 1M input tokens, $21.25 per 1M output tokens (15% off list price); Claude Opus 5 is the most powerful model in the Claude 5 family from Anthropic. It excels at complex reasoning, analysis, and creative tasks with superior accuracy and nuance. It supports text, image,...
- [Anthropic Claude Sonnet 5](https://www.sandbase.ai/models/anthropic/claude-sonnet-5.md): `anthropic/claude-sonnet-5`; $1.70 per 1M input tokens, $8.50 per 1M output tokens (15% off list price); Claude Sonnet 5 is a Sonnet-class model for high-quality coding, agentic workflows, reasoning, vision, structured outputs, and tool use.
- [Anthropic Claude Fable 5](https://www.sandbase.ai/models/anthropic/claude-fable-5.md): `anthropic/claude-fable-5`; $8.50 per 1M input tokens, $42.50 per 1M output tokens (15% off list price); Claude Fable 5 is a Mythos-class model from Anthropic, built for autonomous knowledge work and coding. It supports text, image, and file inputs with text output, with reasoning support and a 1M-token ...
- [Anthropic Claude Opus 4.8](https://www.sandbase.ai/models/anthropic/claude-opus-4.8.md): `anthropic/claude-opus-4.8`; $4.25 per 1M input tokens, $21.25 per 1M output tokens (15% off list price); Claude Opus 4.8 is Anthropic's most capable generally available model in the Opus family. It supports text, image, and file inputs with text output, with reasoning support and a 1M-token context windo...
- [Anthropic Claude Sonnet 4.6](https://www.sandbase.ai/models/anthropic/claude-sonnet-4.6.md): `anthropic/claude-sonnet-4.6`; $2.55 per 1M input tokens, $12.75 per 1M output tokens (15% off list price); Sonnet 4.6 is Anthropic's most capable Sonnet-class model yet, with frontier performance across coding, agents, and professional work. It excels at iterative development, complex codebase navigation, ...
- [Anthropic Claude Haiku 4.5](https://www.sandbase.ai/models/anthropic/claude-haiku-4.5.md): `anthropic/claude-haiku-4.5`; $0.85 per 1M input tokens, $4.25 per 1M output tokens (15% off list price); Claude Haiku 4.5 is Anthropic’s fastest and most efficient model, delivering near-frontier intelligence at a fraction of the cost and latency of larger Claude models. Matching Claude Sonnet 4’s perfor...
- [Anthropic Claude Fable 5.2](https://www.sandbase.ai/models/anthropic/claude-fable-5.2.md): `anthropic/claude-fable-5.2`; $6.80 per 1M input tokens, $34 per 1M output tokens (15% off list price); Claude Fable 5.2 is Anthropic's most capable model for the most demanding technical work, with gains over Fable 5.1 in coding, reasoning, and vision. In prerelease testing it completed otherwise-infea...

## Model lineup

Context window and positioning from each provider.

| Model | Context | Positioning |
| --- | --- | --- |
| Claude Opus 4.8 | 1000K | Claude Opus 4.8 is Anthropic's most capable generally available model in the Opus family |
| Claude Sonnet 4.6 | 1000K | Sonnet 4.6 is Anthropic's most capable Sonnet-class model yet, with frontier performance across coding, agents, and professional work |
| Claude Opus 5 | 1000K | Claude Opus 5 is the most powerful model in the Claude 5 family from Anthropic |
| Claude Fable 5 | 1000K | Claude Fable 5 is a Mythos-class model from Anthropic, built for autonomous knowledge work and coding |
| Claude Haiku 4.5 | 200K | Claude Haiku 4.5 is Anthropic’s fastest and most efficient model, delivering near-frontier intelligence at a fraction of the cost and latency of… |
| Claude Sonnet 5 | 1000K | Claude Sonnet 5 is a Sonnet-class model for high-quality coding, agentic workflows, reasoning, vision, structured outputs, and tool use |
| Claude Opus 5.5 | 1000K | Claude Opus 5.5 is the most powerful model in the Claude 5 family from Anthropic |
| Claude Fable 5.1 | 1000K | Claude Fable 5.1 improves on Claude Fable 5 across the board, with the biggest gains in agentic coding, long-running agentic workflows, and… |
| Claude Sonnet 5.5 | 1000K | Claude Sonnet 5.5 is Anthropic's Sonnet-class model for well-scoped everyday work, succeeding Claude Sonnet 5 as a direct upgrade |
| Claude Haiku 5.5 | 1000K | Claude Haiku 5.5 is Anthropic's small, fast model for high-volume, cost-sensitive work such as summarization, classification, compaction, subagents,… |
| Claude Fable 5.2 | 1000K | Claude Fable 5.2 is Anthropic's most capable model for the most demanding technical work, with gains over Fable 5.1 in coding, reasoning, and vision |

## Overview

### Every current Claude model, one key

SandBase serves Anthropic's Claude models on both the native Messages API (`POST /v1/messages`) and the OpenAI-compatible `POST /v1/chat/completions`. Existing Anthropic SDK code works by changing the base URL and key.

#### The lineup

- **Opus** (5.5, 5, 4.8): the most capable Claude models for complex reasoning, analysis and long agentic work.
- **Sonnet** (5.5, 5, 4.6): strong at coding, agents, tool use and structured output, at a lower price than Opus.
- **Haiku** (5.5, 4.5): small and fast for summarisation, classification, sub-agents and high volume.
- **Fable** (5.2, 5.1, 5): Anthropic's Mythos-class line for autonomous knowledge work and demanding technical tasks.

Most current Claude models have a 1M-token context window. Older versions are on the [Anthropic](https://www.sandbase.ai/models/anthropic) vendor page. Compare Claude with other providers on [Best LLMs for Coding](https://www.sandbase.ai/models/coding-llms).

## Start using Claude API on SandBase

Switch models by changing one field.

1. **Create an API key** Sign in to the SandBase Console and create a key on the API Keys page. Keep it in an environment variable and never commit it to source control.

```
export SANDBASE_API_KEY="YOUR_SANDBASE_API_KEY"
```

2. **Send a chat request** Call the OpenAI-compatible Chat Completions API with model anthropic/claude-sonnet-5.5. Any OpenAI SDK works with base URL https://api.sandbase.ai/v1.

```
curl https://api.sandbase.ai/v1/chat/completions \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "anthropic/claude-sonnet-5.5", "messages": [{"role": "user", "content": "Explain vector databases in two sentences."}]}'
```

3. **Or use the Messages API** Claude models are also served on the native Anthropic Messages API.

```
curl https://api.sandbase.ai/v1/messages \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "anthropic/claude-sonnet-5.5", "max_tokens": 1024, "messages": [{"role": "user", "content": "Explain vector databases in two sentences."}]}'
```

4. **Connect your AI tools** Use the same key in Claude Code, Codex, Cursor and other clients. See Use in AI tools for setup.

## FAQ

### Can I use the Anthropic SDK with SandBase?

Yes. Point the SDK base URL at https://api.sandbase.ai and use your SandBase key. Both Bearer and x-api-key headers are accepted, and anthropic-version is set by default.

### Which Claude model should I use?

Sonnet for most coding and agent work, Opus for the hardest reasoning, Haiku for speed and cost, and Fable for long autonomous technical tasks.

### What is the context window?

1M tokens on current Opus, Sonnet, Haiku 5.5 and Fable models; 200K on Haiku 4.5.

### Does prompt caching work?

Yes. Cache reads and writes are billed at Anthropic’s cache multipliers; see each model page for prices.

### Can I use Claude in Claude Code or other tools?

Yes. See [Use in AI tools](/solutions/use-in-ai-tools) for setup with Claude Code, Codex, Cursor and other clients.

## Use it through SandBase

- Base URL: `https://api.sandbase.ai/v1`, with `Authorization: Bearer $SANDBASE_API_KEY`.
- Language models use the OpenAI-compatible `POST /v1/chat/completions`; media models use `POST /v1/run`; data APIs use `POST /v1/api/{vendor}/{endpoint}`.
- AI agents can connect through the SandBase MCP server or CLI: https://www.sandbase.ai/skill.md
- Every model and API page has a Markdown twin at the same URL plus `.md`. Full index: https://www.sandbase.ai/llms.txt
