Claude Fable 5 API
anthropic/claude-fable-5Claude Fable 5 Text Generation turns long text and multimodal context into code, research synthesis, and thorough technical answers. Through the Claude Fable 5 API, a 1M-token context window keeps files and reasoning aligned over Claude Messages or Chat Completions.
Claude Fable 5
Anthropic · chat-completions
Quick start
Send a POST request to /v1/messages with anthropic/claude-fable-5. Choose JSON or SSE with stream, and receive generated content and usage.
- Endpoint
- POST /v1/messages
- Model ID
- anthropic/claude-fable-5
- Protocol
- Claude Messages
Request fields
| Field | Requirement | Description |
|---|---|---|
| model | Required | anthropic/claude-fable-5 |
| messages | Required | A non-empty ordered conversation array; each message has role and content. |
| max_tokens | Required | A positive integer setting the maximum output tokens for this response. |
| system | Optional | System instructions as a string or text blocks. |
| temperature | Optional | Sampling temperature; the playground allows 0–2. |
| top_p | Optional | Nucleus sampling probability; the playground allows 0–1 and defaults to 1. |
| cache_control | Optional | Places a prompt-cache marker on cacheable content. |
| stream | Optional | Returns an SSE event stream when true. |
Response and usage
Successful responses include generated content and usage. Billing settles from actual input, output, and cache tokens.
Streaming
Set stream: true to read SSE. Finalize usage accounting from the terminal usage event.
curl --request POST \
--url "https://api.vidgo.ai/v1/messages" \
--header "x-api-key: $VIDGO_API_KEY" \
--header 'anthropic-version: 2023-06-01' \
--header 'Content-Type: application/json' \
--data '{
"model": "anthropic/claude-fable-5",
"messages": [
{
"role": "user",
"content": "Explain why deterministic retries matter in distributed systems."
}
],
"max_tokens": 1024,
"temperature": 1,
"top_p": 1,
"stream": false
}'Keep API keys on the server. Never expose them in browser code or public repositories.
Continue with
Related Models
Claude Fable 5 API FAQ
What is the Claude Fable 5 API?
Claude Fable 5 Text Generation is an Anthropic language model built for deep reasoning, extended research, and complex software engineering. The Claude Fable 5 API turns long-context prompts into structured code, analyses, and technical writing via /v1/messages or /v1/chat/completions. Its 1M-token context window keeps evidence and constraints consistent across multi-step workflows. You can call it programmatically or try it from the playground above.
Which protocols does the Claude Fable 5 API support?
Both Anthropic Claude Messages (/v1/messages) and OpenAI-compatible Chat Completions (/v1/chat/completions) using anthropic/claude-fable-5.
How much does the Claude Fable 5 API cost per million tokens?
Input is 2,142.8 credits ($10.714) per 1M tokens and output is 10,714 credits ($53.57) per 1M tokens.
What is the context window of the Claude Fable 5 API?
Claude Fable 5 supports a 1,000,000-token context window and up to 128,000 output tokens.
Does Claude Fable 5 support SSE streaming?
Yes. Set stream: true on either /v1/messages or /v1/chat/completions to stream tokens incrementally.
How does Claude Fable 5 compare with Claude Fable 5.2?
Claude Fable 5.2 lowers base rates to 1280/6400 credits per 1M tokens and adds explicit prompt-cache read and 5m/1h cache-write billing tiers.
Can I use existing Anthropic SDKs with Claude Fable 5?
Yes. Configure your Anthropic SDK base URL to the Vidgo API endpoint shown in the API tab, pass your Vidgo API key, and set model to anthropic/claude-fable-5.





































