Providers / Anthropic (Claude)
Anthropic (Claude)
Anthropic is a US AI lab that builds the Claude family of language models. Claude comes in four tiers, from largest to smallest: Fable, Opus, Sonnet and Haiku. Claude models read text and images and write text. Fable 5.1 and Opus 5.5 also list files as input. Anthropic sells access through its own API and through cloud platforms.
Models
USD per 1M tokens · prices as of 2026-11-21
| Model | Best for | Input | Output | Context |
|---|---|---|---|---|
| Claude Fable 5 | $13.2864 | $66.4318 | 195K | |
| Claude Fable 5.1 | The hardest problems, cost second | $13.2864 | $66.4318 | 195K |
| Claude Opus 4.6 | $6.2003 | $31.0015 | 195K | |
| Claude Opus 4.7 | $6.2003 | $31.0015 | 195K | |
| Claude Opus 4.8 | $6.2003 | $31.0015 | 195K | |
| Claude Opus 5 | Reasoning you can turn off | $6.2003 | $31.0015 | 195K |
| Claude Opus 5.5 | Coding agent, hard refactors · Long context (whole repo, long documents) | $4.9602 | $24.8012 | 195K |
| Claude Sonnet 4.6 | $3.7202 | $18.6009 | 195K | |
| Claude Sonnet 5 | Coding agent, everyday work · Long context (whole repo, long documents) · Reasoning you can turn off | $2.4801 | $12.4006 | 195K |
| Claude Haiku 4.5 | Quick edits, small questions · Cheap bulk work (tagging, extraction) | Price coming soon | 200K | |
| Claude Opus 4.5 | Price coming soon | 200K | ||
| Claude Sonnet 4.5 | Price coming soon | 200K | ||
Which model for which job
Claude models are built for long, multi-step work: reading a large codebase, planning a change, calling tools and checking the result. Anthropic lists a 1M-token context window and up to 128K tokens of output for most models here. Haiku 4.5, Sonnet 4.5 and Opus 4.5 list 200K and 64K. So the choice between models is mostly about cost and how hard the task is.
| Job | Use | Input / output per 1M | Why |
|---|---|---|---|
| Coding agent, hard refactors | Claude Opus 5.5 | $4.9602 / $24.8012 | Always-on reasoning at a lower price than Fable 5.1 |
| Coding agent, everyday work | Claude Sonnet 5 | $2.4801 / $12.4006 | Anthropic says it performs close to Opus 4.8 at a lower price |
| Quick edits, small questions | Claude Haiku 4.5 | Price coming soon | Small, fast model; Anthropic lists 200K context and 64K output |
| Long context (whole repo, long documents) | Claude Opus 5.5Claude Sonnet 5 | $4.9602 / $24.8012$2.4801 / $12.4006 | 1M context on both |
| Cheap bulk work (tagging, extraction) | Claude Haiku 4.5with the Batch API | Price coming soon | Small model, runs off-peak |
| The hardest problems, cost second | Claude Fable 5.1 | $13.2864 / $66.4318 | Anthropic’s top tier |
| Reasoning you can turn off | Claude Opus 5Claude Sonnet 5 | $6.2003 / $31.0015$2.4801 / $12.4006 | Anthropic lists thinking as optional on both |
Data handling
What Yunshu does
Prompts aren’t stored by default. Batches are the one exception: batch inputs and results are kept for 7 days after the batch finishes, then deleted. An organisation can turn on zero retention, which refuses batches as well.
Pricing notes
- Yunshu’s own cache. Exact repeats of a request are answered from our cache and not charged.
Use it in your coding tool
Paste these settings to use Claude Fable 5. Swap in any Anthropic model ID from the table above.
export ANTHROPIC_BASE_URL=https://api.yunshurouter.com
export ANTHROPIC_AUTH_TOKEN=YOUR_YUNSHU_KEY
export ANTHROPIC_MODEL=claude-fable-5OpenAI API Key: YOUR_YUNSHU_KEY
Override OpenAI Base URL: https://api.yunshurouter.com/v1
Add model: claude-fable-5 (then Verify)model = "claude-fable-5"
model_provider = "yunshu"
model_context_window = 199680
[model_providers.yunshu]
name = "Yunshu Router"
base_url = "https://api.yunshurouter.com/v1"
env_key = "YUNSHU_API_KEY"
wire_api = "responses"Base URL: https://api.yunshurouter.com/v1
API Key: YOUR_YUNSHU_KEY
Model ID: claude-fable-5Run these in your shell before starting Claude Code, or put them in ~/.claude/settings.json (see the guide). No /v1 in the address: Claude Code adds it. Full guide →
In Cursor Settings → Models: paste the key under OpenAI, turn on the base URL override and keep the /v1. Then pick the model in the chat panel. Full guide →
Add this to ~/.codex/config.toml and set YUNSHU_API_KEY to your key. Codex sends the whole conversation each turn; we don't store responses. Full guide →
Set API Provider to OpenAI Compatible. Then set the context window and prices from the model page, so Cline's cost estimate matches your bill. Full guide →
Questions
Is there a Claude API without an Anthropic account?
Yes. With a Yunshu Router key you call Claude models through the Anthropic Messages API or the OpenAI Chat Completions API. You pay from a prepaid balance in USD, CNY or SGD, topped up by card.
How much does Claude Sonnet 5 cost per token?
GET /v1/generation?id=<id> returns the
exact cost of any single request.
Does Claude Code work with Yunshu?
Claude Code uses the Anthropic Messages API, the same API Yunshu serves for Claude.
Which Claude model should I use for coding?
Start with Sonnet 5 for everyday agent work. Move to Opus 5.5 for hard, multi-file changes, and use Haiku 4.5 for quick edits and bulk jobs.
What is the context window of Claude models?
Anthropic lists 1M tokens of context and up to 128K tokens of output for Fable 5.1, Opus 5.5, Sonnet 5 and most other models here. It lists 200K and 64K for Haiku 4.5, Sonnet 4.5 and Opus 4.5.