Claude Fable 5.2

claude-fable-5-2
TextAnthropicClaude Fable 5.2claude-fable-5-2

Claude Fable 5.2 (claude-fable-5-2) is built for the hardest reasoning and long-horizon agentic work, from multi-repository problems to engineering tasks that run for days. Text, image and PDF input, 1M-token context, 128K output; thinking cannot be turned off. Served via an Anthropic-compatible messages API.

Authentication

Base URL
https://api.dreamto.ai
Authorization
Authorization: Bearer YOUR_API_KEY
Content-Type
application/json
Model name (model)
claude-fable-5-2

Integration protocol

Why choose this protocol

Best for users migrating existing Claude SDK or Anthropic Messages API code.

Endpoint URL
POST/v1/messages
Authorization: Bearer YOUR_API_KEYContent-Type: application/jsonanthropic-version: 2023-06-01

Request / response JSON

Request
{
  "model": "claude-fable-5-2",
  "tools": [],
  "stream": false,
  "system": "Please answer concisely in English.",
  "messages": [
    {
      "role": "user",
      "content": [
        {
          "text": "Hello, world",
          "type": "text"
        }
      ]
    }
  ],
  "thinking": {
    "type": "enabled",
    "budget_tokens": 1024
  },
  "max_tokens": 4096
}
Response
{
  "id": "msg_example",
  "role": "assistant",
  "type": "message",
  "model": "claude-fable-5-2",
  "usage": {
    "input_tokens": 8,
    "output_tokens": 16
  },
  "content": [
    {
      "text": "Hello from Mix API",
      "type": "text"
    }
  ],
  "stop_reason": "end_turn"
}

Request / response fields

Request fields
FieldField typeRequiredDefaultOptions / rangeDescriptionExample
messagesarrayY--Anthropic/OpenAI-compatible message array.[{"role":"user","content":"Hello, world"}]
system_instructionstringN--Claude system prompt.Please answer concisely in English.
max_tokensintegerN4096-Maximum output length, required by Claude or recommended to set explicitly.4096
temperaturenumberN--Controls output randomness. No default is set, so nothing is forwarded upstream when the user omits it.0.7
top_pnumberN--Nucleus sampling probability threshold.0.95
top_kintegerN--Limits the number of candidate tokens.40
thinkingobjectN--Claude extended thinking configuration.{"type":"enabled","budget_tokens":1024}
toolsarrayN--Claude tools definitions.[]
tool_choicestringN--auto, any, or a specific tool.auto
streambooleanNfalse-Whether to use a streaming response.false
Response fields
FieldField typeRequiredDefaultOptions / rangeDescriptionExample
idstringN---msg_example
typestringN---message
rolestringN---assistant
modelstringN---claude-fable-5-2
contentarrayN---[{"text":"Hello from Mix API","type":"text"}]
content[]objectN---{"text":"Hello from Mix API","type":"text"}
content[].typestringN---text
content[].textstringN---Hello from Mix API
stop_reasonstringN---end_turn
usageobjectN---{"input_tokens":8,"output_tokens":16}
usage.input_tokensintegerN---8
usage.output_tokensintegerN---16

Code examples

cURLrequest.sh
curl -X POST "https://api.dreamto.ai/v1/messages" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -H "anthropic-version: 2023-06-01" \
  -d '{
  "model": "claude-fable-5-2",
  "max_tokens": 4096,
  "messages": [
    {
      "role": "user",
      "content": [
        {
          "type": "text",
          "text": "Hello, world"
        }
      ]
    }
  ],
  "system": "Please answer concisely in English.",
  "stream": false,
  "thinking": {
    "budget_tokens": 1024,
    "type": "enabled"
  },
  "tools": []
}'