Claude Fable 5

    anthropic/claude-fable-5
    试验场

    Claude Fable 5 is Anthropic’s advanced long-horizon reasoning model, supporting text, image, and file inputs with text output. It features reasoning capabilities and a 1M-token context window, making it suitable for autonomous knowledge work, software development, and complex multi-step tasks.

    编程推理VisionFrontier
    模态
    输入 / 输出价格
    $10 / $50M tokens
    上下文
    1M
    发布时间
    2026-06-09

    价格

    规格价格
    输入$10/ M tokens
    输出$50/ M tokens
    缓存读$1/ M tokens
    缓存写$12.5/ M tokens
    缓存写 1h$20/ M tokens

    快速开始

    可直接粘贴运行下方示例代码。Gate.AI API 与 OpenAI 兼容,多数 SDK 只需替换 base URL;切换模型时,只需修改模型 ID。

    1

    Get your API key

    Sign in to the Gate.AI console and create a new key under "API Keys". Keep it safe and send it via the Authorization header on every request.

    前往控制台创建密钥
    2

    Make a request

    Send a POST request to the Chat Completions endpoint with a model ID and an array of messages to get a reply.

    POSThttps://api.gate.ai/anthropic/v1/messages
    curl --location "https://api.gate.ai/anthropic/v1/messages" \
      --header "x-api-key: {API_KEY}" \
      --header "anthropic-version: 2023-06-01" \
      --header "Content-Type: application/json" \
      --data '{
      "model": "claude-fable-5",
      "max_tokens": 256,
      "messages": [
        {"role": "user", "content": "Hello"}
      ]
    }'
    3

    Handle the response \\& streaming

    By default a full JSON response is returned. Add "stream": true to the request body to receive incremental chunks over SSE.

    POSThttps://api.gate.ai/anthropic/v1/messages
    curl --no-buffer --location "https://api.gate.ai/anthropic/v1/messages" \
      --header "x-api-key: {API_KEY}" \
      --header "anthropic-version: 2023-06-01" \
      --header "Content-Type: application/json" \
      --data '{
      "model": "claude-fable-5",
      "max_tokens": 256,
      "messages": [
        {"role": "user", "content": "Hello"}
      ],
      "stream": true
    }'

    端点

    以 Anthropic Messages API 格式建立讯息,支持文字、图片、工具与延伸思考。

    POSThttps://api.gate.ai/anthropic/v1/messages
    字段
    值
    x-api-key
    Gate.AI API key header with the value {API_KEY}
    anthropic-version
    Anthropic protocol version; for example 2023-06-01
    Content-Type
    请求内容类型,固定为 application/json
    model
    Model ID; the current model is claude-fable-5
    max_tokens
    Maximum number of tokens the model may generate
    messages
    Ordered array of Anthropic messages
    stream
    Whether to return the result as an SSE stream

    基础 URL、请求方法和必需请求头均按当前模型的协议模板渲染。

    POSThttps://api.gate.ai/openai/v1/chat/completions
    字段
    值
    Authorization
    认证请求头,使用 Bearer {API_KEY} 格式传递 API Key
    Content-Type
    请求内容类型,固定为 application/json
    model
    Model ID; the current model is claude-fable-5
    messages
    Ordered array of conversation messages
    stream
    Whether to return the result as an SSE stream

    相关模型

    Claude Haiku 5.5

    Small, fast model for high-volume, latency-sensitive summarization, subagents, and browser use, with stronger coding and computer use than the prior generation.

    Claude Sonnet 5.5

    Sonnet-class model for well-scoped everyday work, with stronger feature building, bug fixing, and office deliverables than the prior generation, suited to responsive agentic loops.

    Claude Opus 5.5

    Successor to Opus 5 for demanding reasoning, coding, and long-horizon agent work; excels at multi-step changes across large codebases and sustained knowledge tasks.

    Claude Opus 5

    Flagship model for demanding reasoning, coding, and long-horizon agentic work, spanning end-to-end software, code review, parallel subagent coordination, visual analysis of charts and documents, and complex office deliverables.

    Claude Sonnet 5

    Coding and agent quality approach the frontier, with native reasoning built in, well-suited for complex planning and long-horizon professional tasks that require cross-step consistency.

    Claude Opus 4.8

    Opus family flagship with reasoning. Suited for long-horizon autonomous agents, large-codebase analysis, and multimodal knowledge work.

    Claude Opus 4.8 beta

    Opus family flagship with reasoning. Suited for long-horizon autonomous agents, large-codebase analysis, and multimodal knowledge work.

    Claude Opus 4.7 beta

    Built for long-running async agents, excelling at complex multi-step tasks and end-to-end workflow execution.

    Claude Opus 4.7

    Built for long-running async agents, excelling at complex multi-step tasks and end-to-end workflow execution.

    Claude Sonnet 4.6

    Anthropic 质量与成本的最佳平衡。