> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ninjachat.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Claude Fable 5

> Anthropic's Fable 5 for long-running agents, deep research, and complex multimodal work with a 1M-token context.

<div className="ndoc-model-summary">
  <div className="ndoc-model-identity"><span className="ndoc-brand-mark">  <img src="https://cdn.photogenius.ai/new-ai-images/site/v1/landing/marks/marks/4be04284/claude.svg" alt="" width="32" height="32" /></span><div><strong>Anthropic</strong><code>claude-fable-5</code></div></div>
  <div className="ndoc-model-stat"><span>Context window</span><strong>1,000,000 tokens</strong></div>
</div>

<div className="ndoc-capabilities" aria-label="Model capabilities">
  <span>Streaming</span>
  <span>JSON mode</span>
  <span>Tool calling</span>
  <span>Vision</span>
  <span>Reasoning</span>
  <span>Long context</span>
  <span>Multilingual</span>
</div>

Maximum output: **128,000 tokens**.

## Pricing

| Input          | Output         | Cached input  | Cache write    |
| :------------- | :------------- | :------------ | :------------- |
| \$10.00 / MTok | \$50.00 / MTok | \$1.00 / MTok | \$12.50 / MTok |

Typical request (5K input / 1K output tokens): \~\$0.10. [Live pricing](https://www.ninjachat.ai/api/v1/models/claude-fable-5).

## Use this model

[Set up your SDK client](/sdks#create-a-client), then run:

<CodeGroup>
  ```typescript TypeScript SDK theme={null}
  const completion = await client.chat.completions.create({
    model: "claude-fable-5",
    messages: [{ role: "user", content: "Explain edge caching in one paragraph." }],
  });

  console.log(completion.choices[0].message.content);
  ```

  ```python Python SDK theme={null}
  completion = client.chat.completions.create(
      model="claude-fable-5",
      messages=[{"role": "user", "content": "Explain edge caching in one paragraph."}],
  )

  print(completion["choices"][0]["message"]["content"])
  ```

  ```bash cURL theme={null}
  curl https://www.ninjachat.ai/api/v1/chat/completions \
    -H "Authorization: Bearer $NINJACHAT_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{"model":"claude-fable-5","messages":[{"role":"user","content":"Explain edge caching in one paragraph."}]}'
  ```
</CodeGroup>

## Supported parameters

<div className="ndoc-parameters"><code>messages</code><code>temperature</code><code>max\_completion\_tokens</code><code>top\_p</code><code>stop</code><code>frequency\_penalty</code><code>presence\_penalty</code><code>seed</code><code>stream</code><code>user</code><code>routing</code><code>tools</code><code>tool\_choice</code><code>response\_format</code><code>image\_url content parts</code><code>reasoning</code><code>reasoning\_effort</code></div>

Send only parameters from this list. `routing.require_parameters` (default `true`) skips any provider rail that cannot honor every requested parameter, so requests keep the behavior you asked for.

## Routing & fallbacks

Pin `claude-fable-5` with `model` when you want this model's behavior, or list it in an ordered `models` array. With `ninja/auto` first, the router's top pick runs first and `claude-fable-5` is the explicit fallback; `ninja/auto` acts as the router only when it is the first entry.

```json theme={null}
{
  "models": [
    "ninja/auto",
    "claude-fable-5"
  ],
  "messages": [
    {
      "role": "user",
      "content": "Explain edge caching in one paragraph."
    }
  ],
  "routing": {
    "allow_fallbacks": true
  }
}
```

You are billed at the resolved model's token rates, and only for the successful execution.

<Accordion title="Check current availability and limits">
  ```typescript TypeScript SDK theme={null}
  const model = await client.models.retrieve("claude-fable-5");

  if (!model.servable) throw new Error("claude-fable-5 is temporarily unavailable");

  console.log({
    contextWindow: model.contextWindow,
    maxOutputTokens: model.maxOutputTokens,
    capabilities: model.capabilities,
    supportedParameters: model.supportedParameters,
    pricing: model.pricing,
    providers: model.providers,
  });
  ```
</Accordion>

**Guides:** [Text generation](/chat) · [Fallbacks](/fallback-chains) · [Smart routing](/smart-routing) · [Pricing](/pricing) · [All models](/models-overview)
