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-01Request / 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
| Field | Field type | Required | Default | Options / range | Description | Example |
|---|---|---|---|---|---|---|
| messages | array | Y | - | - | Anthropic/OpenAI-compatible message array. | [{"role":"user","content":"Hello, world"}] |
| system_instruction | string | N | - | - | Claude system prompt. | Please answer concisely in English. |
| max_tokens | integer | N | 4096 | - | Maximum output length, required by Claude or recommended to set explicitly. | 4096 |
| temperature | number | N | - | - | Controls output randomness. No default is set, so nothing is forwarded upstream when the user omits it. | 0.7 |
| top_p | number | N | - | - | Nucleus sampling probability threshold. | 0.95 |
| top_k | integer | N | - | - | Limits the number of candidate tokens. | 40 |
| thinking | object | N | - | - | Claude extended thinking configuration. | {"type":"enabled","budget_tokens":1024} |
| tools | array | N | - | - | Claude tools definitions. | [] |
| tool_choice | string | N | - | - | auto, any, or a specific tool. | auto |
| stream | boolean | N | false | - | Whether to use a streaming response. | false |
Response fields
| Field | Field type | Required | Default | Options / range | Description | Example |
|---|---|---|---|---|---|---|
| id | string | N | - | - | - | msg_example |
| type | string | N | - | - | - | message |
| role | string | N | - | - | - | assistant |
| model | string | N | - | - | - | claude-fable-5-2 |
| content | array | N | - | - | - | [{"text":"Hello from Mix API","type":"text"}] |
| content[] | object | N | - | - | - | {"text":"Hello from Mix API","type":"text"} |
| content[].type | string | N | - | - | - | text |
| content[].text | string | N | - | - | - | Hello from Mix API |
| stop_reason | string | N | - | - | - | end_turn |
| usage | object | N | - | - | - | {"input_tokens":8,"output_tokens":16} |
| usage.input_tokens | integer | N | - | - | - | 8 |
| usage.output_tokens | integer | N | - | - | - | 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": []
}'