# Claude Fable 5.2 API

[HTML canonical](https://bettertoken.ai/en/claude-fable-5-2-api/)

Live · 2026-11-09

For complex coding, deep research and agents tackling long, multi-step tasks.

[Get API key](https://bettertoken.ai/register) [Docs](https://docs.bettertoken.ai/en/model-updates/claude-fable-5-2)

Pay as you go · No Anthropic account needed · Works in Claude Code

[Get $5 credit. Pay $3. Save $2 on your first top-up](https://bettertoken.ai/en/claude-fable-5-2-api/#topup)

USDT (TRC-20)

Fable 5.2 −32% vs official price

per million tokens

Anthropic BetterToken

Input ~~$8~~ $5.44

Output ~~$40~~ $27.20

[As low as $4.90/M input with a top-up tier →](https://bettertoken.ai/en/claude-fable-5-2-api/#tier-500)

## Built for the whole task

### 1M context

The standard rate applies across the full context window.

### Up to 128K output tokens

Carry a long analysis through to a complete deliverable.

### Text + image input

Work with code, documents, screenshots and diagrams.

### Adaptive thinking

Use effort to choose how deeply the model reasons.

## Work out your API cost

### Monthly cost calculator

Estimated monthly cost Fable 5.2

Anthropic $85.90

BetterToken $58.41

You save $27.49 per month

[Get API key](https://bettertoken.ai/register)

[Prices per 1M tokens. Input includes cache hits; cache writes excluded. Sources: BetterToken snapshot and Anthropic pricing, 10 Nov 2026.](https://platform.claude.com/docs/en/about-claude/pricing)

### Top up once. Get more from every token.

Choose how much to add to your balance. The discount reduces what you pay.

| Added to your balance | You pay | You save | Fable 5.2 input / output |  |
| --- | --- | --- | --- | --- |
| $5 First top-up You pay: $3 · You save: $2 | $3 | −$2 | $3.26 / $16.32 | [Top up](https://bettertoken.ai/register) |
| $50 You pay: $48 · You save: $2 | $48 | −$2 | $5.22 / $26.11 | [Top up](https://bettertoken.ai/register) |
| $100 You pay: $95 · You save: $5 | $95 | −$5 | $5.17 / $25.84 | [Top up](https://bettertoken.ai/register) |
| $200 You pay: $185 · You save: $15 | $185 | −$15 | $5.03 / $25.16 | [Top up](https://bettertoken.ai/register) |
| $500 Lowest tier rate You pay: $450 · You save: $50 | $450 | −$50 | $4.90 / $24.48 | [Top up](https://bettertoken.ai/register) |

## More Claude models. The same API key.

The same balance also works with GPT, Gemini, DeepSeek and more.

| Claude model | Official input / output | Our input / output | Savings |
| --- | --- | --- | --- |
| Fable 5.2 | ~~$8 / $40~~ | $5.44 / $27.20 | −32% |
| Fable 5.1 | ~~$10 / $50~~ | $6.80 / $34 | −32% |
| Fable 5 | ~~$10 / $50~~ | $6.80 / $34 | −32% |
| Opus 5.5 | ~~$4 / $20~~ | $2.72 / $13.60 | −32% |
| Opus 5 | ~~$5 / $25~~ | $3.40 / $17 | −32% |
| Opus 4.8 | ~~$5 / $25~~ | $3.40 / $17 | −32% |
| Opus 4.6 | ~~$5 / $25~~ | $3.40 / $17 | −32% |
| Sonnet 5.5 | ~~$2 / $10~~ | $1.36 / $6.80 | −32% |
| Sonnet 5 | ~~$2 / $10~~ | $1.36 / $6.80 | −32% |
| Haiku 5.5 | ~~from $0.10 / $0.50~~ | from $0.07 / $0.34 | −32% |
| ≤100K prompt: $0.07 / $0.34. >100K: $0.34 / $1.70. Input / output per 1M tokens. |  |  |  |
| Haiku 4.5 | ~~$1 / $5~~ | $0.68 / $3.40 | −32% |

[Explore Claude API →](https://bettertoken.ai/en/claude-api/) [Use Claude Code →](https://bettertoken.ai/en/claude-code-api/)

## Put Fable 5.2 to work

One base URL and one key for your tools and code.

### 1. Anthropic Messages

```sh
curl https://bettertoken.ai/v1/messages \
  -H "x-api-key: $BETTERTOKEN_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "content-type: application/json" \
  -d '{
    "model": "claude-fable-5-2",
    "max_tokens": 4096,
    "messages": [{"role": "user", "content": "Hi."}]
  }'
```

### 2. Claude Code

Set the endpoint, your BetterToken key and the model, then launch Claude Code.

```sh
export ANTHROPIC_BASE_URL="https://bettertoken.ai"
export ANTHROPIC_AUTH_TOKEN="YOUR_BETTERTOKEN_API_KEY"
export ANTHROPIC_MODEL="claude-fable-5-2"
claude
```

### 3. OpenAI format

Python

```python
from openai import OpenAI
import os

client = OpenAI(
    api_key=os.environ["BETTERTOKEN_API_KEY"],
    base_url="https://bettertoken.ai/v1",
)
response = client.chat.completions.create(
    model="claude-fable-5-2",
    max_tokens=4096,
    messages=[{"role": "user", "content": "Review this system design."}],
)
print(response.choices[0].message.content)
```

## A few things you might want to know

### How does Claude Fable 5.2 API pricing work?

BetterToken charges $5.44 for input, $27.20 for output and $0.14 for cache reads per million tokens. Anthropic’s standard input / output rates are $8 / $40. Cache writes are billed separately.

### How do I get a Fable 5.2 API key?

Create a BetterToken account or sign in, open Workspace and create an API key. Top up your balance, then use claude-fable-5-2 with the examples above.

### Fable 5.2 vs Fable 5.1: is the upgrade worth it?

Official input / output prices fall from $10 / $50 to $8 / $40 per million tokens, a 20% reduction. On BetterToken they fall from $6.80 / $34 to $5.44 / $27.20. Fable 5.2 is built for demanding reasoning and long-running agent work.

### Fable 5.2 or Opus 5.5: which should I use?

Choose Fable 5.2 for demanding reasoning and long-horizon agent work; choose Opus 5.5 for long-running agentic coding and knowledge work. On BetterToken, Opus 5.5 input / output costs $2.72 / $13.60 per million tokens, versus $5.44 / $27.20 for Fable 5.2. Test with your own workload.

### What changes when I migrate from Fable 5.1?

Change the model to claude-fable-5-2. Omit temperature, top_p and top_k. Forced tool_choice values any and tool return 400. Adaptive thinking is always on; use effort to control depth. Anthropic requires 30-day data retention for this model.

### What if I run out of Claude Code subscription usage?

You can configure Claude Code with your BetterToken API key and pay for API tokens from your balance. API usage is billed separately from a Claude subscription and remains subject to model and account limits.

### Which API formats and SDKs can I use?

The public model catalog lists Anthropic Messages and OpenAI formats. Configure the base URL in the Anthropic Python or Node SDK, or use the curl examples above.

### How can I pay?

Top up in US dollars with Stripe or USDT on TRC-20. Check current payment options in Workspace. The first top-up gives $5 credit for $3; regular tier offers are listed above.

YOUR NEXT PROJECT STARTS HERE

## Give your next big task to Fable 5.2.

Your first $5 of API credit costs $3.

[Get API key](https://bettertoken.ai/register) [See top-up tiers](https://bettertoken.ai/en/claude-fable-5-2-api/#topup)
