Skip to content
NEWZhipu flagship GLM-5.4 is live: 1M context, native vision & all 3 protocolsView pricing
HopBase
← Back to blog

Claude Fable 5.2 API Pricing & Guide ($8/$40, Adaptive Thinking, vs Fable 5.1 & Opus 5.5) | HopBase

Claude Fable 5.2 API Pricing & Guide ($8/$40, Adaptive Thinking, vs Fable 5.1 & Opus 5.5) | HopBase

The short answer: Claude Fable 5.2 (model ID claude-fable-5-2) is live on HopBase at Anthropic's official list price of $8.00 input, $0.20 cached input, $10.00 five-minute cache write, $16.00 one-hour cache write, and $40.00 output per million tokens—a flat 20% price reduction across every billing tier compared with Claude Fable 5.1 ($10.00 / $0.25 / $50.00). Built as Anthropic's flagship model for long-running agents, multi-step research, and repository-scale software engineering, claude-fable-5-2 pairs a 1,000,000-token context window and 128,000-token maximum output with a 97.5% prompt-cache read savings ($0.20 versus $8.00 uncached input, breaking even after a single cache hit) and always-on Claude 5 adaptive thinking (thinking.type: "adaptive" paired with output_config.effort). Call it natively through POST https://api.hop-base.com/v1/messages, run it in Claude Code CLI via ANTHROPIC_BASE_URL=https://api.hop-base.com, or connect OpenAI-compatible SDKs over POST https://api.hop-base.com/v1/chat/completions. Confirm your API key includes claude-fable-5-2 via GET /v1/models first.

Official List Pricing: Claude Fable 5.2 vs Fable 5.1, Opus 5.5, and Sonnet 5.5

Released by Anthropic in November 2026, claude-fable-5-2 lowers standard input, cache read, cache write, and output list prices by 20% relative to claude-fable-5-1 while adding support for Anthropic's official Fast mode. The table below compares official list prices per 1M tokens across the active Claude 5 lineup on HopBase:

Model (ID) Context / Max Output Input Cache Read (Hit) Cache Write (5m / 1h) Output (incl. thinking) Fast Mode
Claude Fable 5.2
claude-fable-5-2
1,000,000 / 128,000 $8.00 $0.20 (0.025×) $10.00 / $16.00 $40.00 Supported (2×: $16 / $80)
Claude Fable 5.1
claude-fable-5-1
1,000,000 / 128,000 $10.00 $0.25 (0.025×) $12.50 / $20.00 $50.00 Not supported
Claude Opus 5.5
claude-opus-5-5
1,000,000 / 128,000 $4.00 $0.20 (0.05×) $5.00 / $8.00 $20.00 Supported (2×: $8 / $40)
Claude Sonnet 5.5
claude-sonnet-5-5
1,000,000 / 128,000 $2.00 $0.10 (0.05×) $2.50 / $4.00 $10.00 Not supported

Billing notes: all rates above are Anthropic's published official list prices (mirrored on the HopBase pricing page). When a request explicitly enables official Fast mode and the response confirms usage.speed == "fast", all five token rates bill at 2× the standard list price; otherwise standard list rates apply. For tailored enterprise volume pricing, contact our sales team via the pricing page.

Cost & Prompt-Cache Breakeven Math: Why $0.20 Cache Reads Change Agent Economics

For autonomous coding loops, deep research pipelines, and long multi-turn sessions, two numbers define claude-fable-5-2's unit economics: the 20% across-the-board list-price cut and the 0.025× ($0.20 / 1M) cache-read multiplier.

  • Instant 20% savings over Fable 5.1: Changing the model string from claude-fable-5-1 to claude-fable-5-2 cuts uncached input ($10.00 → $8.00), 5-minute cache writes ($12.50 → $10.00), 1-hour cache writes ($20.00 → $16.00), cache reads ($0.25 → $0.20), and output ($50.00 → $40.00) by exactly 20% with zero prompt changes.
  • Cache-read price parity with Opus 5.5 ($0.20 / 1M): Standard Claude models price cache hits at 0.10× input, while Opus 5.5 and Sonnet 5.5 use 0.05×. claude-fable-5-2 prices cache hits at 0.025× input—a 97.5% savings versus $8.00 fresh input. Once your repository context or document corpus is cached, re-reading 1M cached tokens on claude-fable-5-2 costs $0.20—the exact same cache-read rate as claude-opus-5-5. You only pay the flagship premium on newly appended input and generated output.
  • Exact cache-write breakeven thresholds: A 5-minute TTL cache write costs $10.00 / 1M tokens ($2.00 above uncached input), while every hit saves $7.80 / 1M ($8.00 minus $0.20). You break even on the very first cache hit: 1 write + 1 hit costs $10.20 versus $16.00 for two uncached calls (saving $5.80, or 36.25%, by turn 2). A 1-hour TTL write costs $16.00 / 1M ($8.00 write premium): 1 hit is virtually neutral ($16.20 versus $16.00), and 2 cache hits already save 31.7% ($16.40 versus $24.00 across three uncached calls).
  • Worked 20-turn coding agent benchmark: Suppose an agent keeps 100K tokens of system instructions and codebase context cached, sends 5K new user/tool tokens per turn, and generates 2K output tokens (thinking + answer) per turn across 20 turns. Uncached Fable 5.1 costs $23.00; uncached Fable 5.2 costs $18.40. With 5-minute prompt caching on claude-fable-5-2, you pay $1.00 (turn-1 write of 100K) + $0.38 (19 hits × 100K at $0.20/M) + $0.80 (100K total fresh input at $8.00/M) + $1.60 (40K total output at $40.00/M) = $3.78 total—79.5% below uncached Fable 5.2 and 83.6% below uncached Fable 5.1.

Model routing rule of thumb: route multi-hop research, cross-repository refactors, and high-stakes verification to claude-fable-5-2; use claude-opus-5-5 ($4 / $20) for everyday deep software engineering at half the fresh token rate; and pair claude-sonnet-5-5 ($2 / $10) for high-concurrency sub-agents and routine code edits.

Claude 5 Adaptive Thinking & HTTP 400 Migration Pitfalls

When migrating from Claude 4.x to claude-fable-5-2, Anthropic enforces stricter parameter validation on reasoning and tool selection:

  • Use thinking.type: "adaptive" with output_config.effort: Thinking is always active on claude-fable-5-2. Configure reasoning depth by sending "thinking": {"type": "adaptive"} alongside "output_config": {"effort": "high"} (accepted levels: low, medium, high, xhigh, and max).
  • Remove legacy thinking.budget_tokens (returns HTTP 400): Sending the Claude 4 payload "thinking": {"type": "enabled", "budget_tokens": 16000} returns 400 invalid_request_error (Extra inputs are not permitted, field: 'thinking.budget_tokens'). Strip budget_tokens and control token spend with output_config.effort.
  • Do not disable thinking or force tool_choice: Passing "thinking": {"type": "disabled"} returns HTTP 400 because reasoning cannot be turned off on claude-fable-5-2. Likewise, forced tool selection (tool_choice set to any or tool) is unsupported—keep {"type": "auto"} (default) or {"type": "none"}.
  • Set max_tokens explicitly and stream long responses: Reasoning tokens bill at the output rate and count toward max_tokens. If you omit max_tokens on /v1/messages, HopBase fills in 4096, which will truncate deep reasoning runs early with stop_reason: "max_tokens". Non-streaming HTTP requests have a 300-second ceiling (504 on timeout), so set max_tokens explicitly (up to 128000) and pass "stream": true in production.

Three-Minute Quickstart: Native Messages, Chat Completions, and Claude Code CLI

First, create a key attached to a Claude group in the HopBase console and confirm that claude-fable-5-2 appears in your key's model list:

curl https://api.hop-base.com/v1/models \
  -H "Authorization: Bearer $HOPBASE_CLAUDE_API_KEY"

1. Native Anthropic Messages API (recommended—preserves thinking blocks across tool turns and full cache_control). When configuring an Anthropic SDK, set the Base URL to https://api.hop-base.com with no trailing /v1:

curl https://api.hop-base.com/v1/messages \
  -H "x-api-key: $HOPBASE_CLAUDE_API_KEY" \
  -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-fable-5-2",
    "max_tokens": 16384,
    "stream": true,
    "thinking": {"type": "adaptive"},
    "output_config": {"effort": "high"},
    "messages": [
      {"role": "user", "content": "Analyze deadlock failure modes in a multi-tenant event-sourced ledger under idempotent retries and propose isolation levels plus index layout."}
    ]
  }'

2. OpenAI Chat Completions Compatibility (for existing OpenAI SDK codebases). Include /v1 in the Base URL (https://api.hop-base.com/v1); HopBase maps reasoning_effort directly to output_config.effort and bills identically to the native endpoint (note: POST /v1/responses does not support Claude models and returns 404):

curl https://api.hop-base.com/v1/chat/completions \
  -H "Authorization: Bearer $HOPBASE_CLAUDE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-fable-5-2",
    "max_completion_tokens": 16384,
    "reasoning_effort": "high",
    "stream": true,
    "messages": [
      {"role": "user", "content": "Compare optimistic versus pessimistic locking throughput degradation on hot ledger rows in PostgreSQL."}
    ]
  }'

3. Claude Code CLI Setup. Export the Anthropic Base URL and token, then launch Claude Code directly on claude-fable-5-2 or switch mid-session with /model (use a general group such as Claude Max Enterprise for SDKs + CLI; the ccmax group accepts Claude Code CLI traffic only):

export ANTHROPIC_BASE_URL=https://api.hop-base.com
export ANTHROPIC_AUTH_TOKEN=$HOPBASE_CLAUDE_API_KEY

claude --model claude-fable-5-2
# Or switch inside an active session: /model claude-fable-5-2

For complete parameter references and SDK snippets, see the Claude Fable 5.2 model docs, Anthropic SDK guide, OpenAI SDK compatibility guide, Claude Code setup guide, and the HopBase model catalog.

FAQ

Why does claude-fable-5-2 return HTTP 400 when I send budget_tokens or thinking.type: "disabled"?

claude-fable-5-2 uses Claude 5 always-on adaptive thinking. Anthropic rejects legacy thinking.budget_tokens payloads and "thinking": {"type": "disabled"} with 400 invalid_request_error. Send "thinking": {"type": "adaptive"} and tune reasoning depth via "output_config": {"effort": "low" | "medium" | "high" | "xhigh" | "max"}; when calling tools, keep tool_choice on auto or none rather than forced any or tool.

When should I pick claude-fable-5-2 ($8/$40) over claude-opus-5-5 ($4/$20) or claude-fable-5-1 ($10/$50)?

If you currently run claude-fable-5-1 ($10 / $50), switching to claude-fable-5-2 ($8 / $40, $0.20 cache read) is a strict upgrade that saves 20% across every token bucket. Compared with claude-opus-5-5 ($4 / $20), both models charge the exact same $0.20 / 1M rate on cached context reads—so use claude-fable-5-2 for your hardest multi-step research and architectural planning over cached repositories, and claude-opus-5-5 for everyday coding where fresh input and output dominate.

Can I call claude-fable-5-2 through OpenAI Chat Completions, and how does it differ from /v1/messages?

Yes. Any Claude-group API key (except CLI-only ccmax keys) can call POST https://api.hop-base.com/v1/chat/completions with model: "claude-fable-5-2", streaming, tool calling, json_schema structured output, and reasoning_effort, billed at the same official list rates. Prefer native POST https://api.hop-base.com/v1/messages whenever your agent runs multi-turn tool loops or fine-grained prompt caching, because native Messages preserves interleaved thinking blocks across tool turns and exposes explicit cache_control breakpoints.