Claude Opus 5.5 vs Fable 5.2:API 價格與何時該用哪個

Claude Opus 5.5 是 Anthropic 建議大多數編碼與知識工作先使用的模型。Claude Fable 5.2 用於更高強度、長周期的推理。本頁同時回答「Opus 5.5 vs Fable 5.2」與「Fable 5.2 vs Opus 5.5」。在 Code By AI,兩個模型使用同一把預付費金鑰、同一套公開價格結構:Opus 5.5(`claude-opus-5-5`)按已公布的 Anthropic 標價 1/4 計費(每 100 萬 token 輸入 $1.00 / 輸出 $5.00);Fable 5.2(`claude-fable-5-2`)按已公布的 1/4 計費($2.00 / $10.00)。沒有月費訂閱。

簡短結論

依 Anthropic 建議,大多數編碼與知識工作先用 Claude Opus 5.5,要求更高的長周期工作再考慮 Fable 5.2;目前 Code By AI 目錄價為每 100 萬輸入/輸出 token:Claude Opus 5.5 $1.00 / $5.00、Claude Fable 5.2 $2.00 / $10.00,單位為美元。

Token 與月度金額都是依目前目錄計算的算術結果,不是預測,也不是實測基準。月度示例不包含快取寫入、工具與實際用量差異。

同一口徑的 token 價格

所有數值皆為每 100 萬 token 的美元價。Code By AI 價格已包含公布的倍率。官方標價僅在核實後顯示。5 分鐘與 1 小時快取寫入僅適用於 Claude,按各平台的輸入單價計算。

模型項目Code By AI官方標價OpenRouter
Claude Opus 5.5claude-opus-5-5輸入$1.00$4.00$4.00
快取讀取$0.05$0.20$0.20
快取寫入(5 分鐘)$1.25$5.00$5.00
快取寫入(1 小時)$2.00$8.00$8.00
輸出$5.00$20.00$20.00
Claude Fable 5.2claude-fable-5-2輸入$2.00$8.00未核實
快取讀取$0.05$0.20未核實
快取寫入(5 分鐘)$2.50$10.00未核實
快取寫入(1 小時)$4.00$16.00未核實
輸出$10.00$40.00未核實

OpenRouter 標準端點(已核實): anthropic/claude-opus-5.5 · anthropic · anthropic/claude-opus-5.5-20260921 ·

只有在已針對同一目錄列核實 OpenRouter 的確切供應商模型 ID 與費率口徑時,OpenRouter 欄才會顯示數字;標示「未核實」的儲存格沒有這類證據。充值手續費與其他 OpenRouter 方案另計,絕不加進此處的 token 單價。 OpenRouter 價格與常見問題 · FAQ

未核實的費率不以目錄數值推算。 /pricing

我應該先用哪個模型?

大多數編碼與知識工作先從 Claude Opus 5.5 開始;當任務是長周期,或官方說明在提高 effort 後 Opus 仍不夠時,再改用 Claude Fable 5.2。

這項建議來自 Anthropic,不是 Code By AI 的評測。本頁不刊登第三方跑分,也不寫任何自行測得的速度或品質數字。在 Code By AI 切換模型不必換金鑰:沿用同一把預付費金鑰與同一個 base URL,只改模型 ID。

Anthropic 模型總覽原文:

If you're unsure which model to use, start with Claude Opus 5.5 for most workloads. Use Claude Fable 5.2 for demanding reasoning and long-horizon agentic work, or when your evals on Claude Opus 5.5 at higher effort still fall short.

Anthropic 模型總覽

Claude Fable 5.2 公告原文補充:

Fable and Mythos are best for the most ambitious, open-ended technical work. For most coding and knowledge tasks, we recommend that users start with Claude Opus 5.5, our strongest daily driver, and then switch to a different model as required, depending on the scope and complexity of their work—upward to Fable or Mythos, or downward to Claude Sonnet 5.5 or Claude Haiku 5.5. Fable 5.2 can also play the role of Advisor (where Haiku, Sonnet, or Opus models consult it to help solve harder problems) or Orchestrator (where it delegates simpler tasks to smaller models).

Claude Fable 5.2 與 Mythos 5.2 公告

各模型在 Code By AI 的詳情頁:

官方能力有何不同?

Anthropic 把 Claude Opus 5.5 定位為長周期 agentic 編碼與知識工作,把 Claude Fable 5.2 定位為高強度推理與長周期 agentic 工作。下列差異均摘自 Anthropic 官方說明,不是 Code By AI 的實測。

Claude Opus 5.5 is built for long-running agentic coding and knowledge work. Typical uses include multihour autonomous coding agents, large-scale refactoring, complex systems engineering, vision-heavy workflows, and computer use.

Claude Opus 5.5 總覽

Claude Fable 5.2 is built for demanding reasoning and long-horizon agentic work. Typical uses include agent sessions that run for hours, multistep deep research, and analysis carried through to a finished document, spreadsheet, or deck.

Claude Fable 5.2 總覽

Claude API 的預設 effort

在 Anthropic 的 Claude API 上,Claude Opus 5.5 的預設 effort 參數是 medium,Claude Fable 5.2 是 high。這是官方 API 的預設值;若要使用其他等級,需明確設定 effort。

Claude Opus 5.5Claude Fable 5.2
mediumhigh

依 Anthropic 各模型總覽,兩個模型都是 1M 上下文、128K 最大同步輸出、知識截止為 2026 年 6 月、Adaptive thinking 始終開啟,Comparative latency 均為 Moderate(官方陣容中的相對檔位,不是實測速度)。

Anthropic 官方 API 的規定(不是 Code By AI 的產品說明)

On the Message Batches API, Claude Opus 5.5 supports up to 300k output tokens with the output-300k-2026-03-24 beta header. Anthropic 模型總覽把這項 Message Batches 300k 輸出 beta 列在 Claude Opus 5.5,並未列出 Claude Fable 5.2。這是 Anthropic 官方 API 的規定。本頁並不主張 Code By AI 提供 Message Batches API,也不主張本站已提供該 300k 輸出 beta。 Anthropic 模型總覽 · Claude Opus 5.5 總覽

Claude Fable 5.2 requires 30-day data retention and isn't available under zero data retention unless expressly authorized by Anthropic. 這是 Anthropic 官方 API 的要求,不是 Code By AI 的資料保留政策說明。 Claude Fable 5.2 總覽 · Anthropic API 資料保留

什麼任務該選哪個?

下表只重述官方典型用途與官方選型建議,不是 Code By AI 的跑分或品質排名。

工作類型官方起點來源
大多數編碼與知識工作Claude Opus 5.5模型總覽與 Fable 5.2 公告
數小時級自主編碼代理、大規模重構、複雜系統工程、重度視覺流程,以及 computer useClaude Opus 5.5Opus 5.5 總覽(典型用途)
高強度推理與長周期 agentic 工作,或在提高 effort 後對 Opus 5.5 的評測仍不夠時Claude Fable 5.2模型總覽
持續數小時的代理工作階段、多步驟深度研究,以及做到完成一份文件、試算表或簡報的分析Claude Fable 5.2Fable 5.2 總覽(典型用途)
最有挑戰性、開放式的技術工作,或把 Fable 當作 Advisor、Orchestrator,與其他 Claude 模型搭配Claude Fable 5.2Fable 5.2 公告

官方來源

在 Code By AI 上各要多少錢?

在 Code By AI,兩個模型共用同一把預付費金鑰。表格顯示最終的美元 token 單價,不需額外換算。各模型價格依官方標價與下方顯示的平台比例計算。

Opus 5.5 · Anthropic 標價Opus 5.5 · Code By AIFable 5.2 · Anthropic 標價Fable 5.2 · Code By AI
輸入$4.00$1.00$8.00$2.00
快取讀取$0.20$0.05$0.20$0.05
快取寫入(5 分鐘)$5.00$1.25$10.00$2.50
快取寫入(1 小時)$8.00$2.00$16.00$4.00
輸出$20.00$5.00$40.00$10.00

單位為每 100 萬 token 的美元價。Code By AI 價格已包含已公布的倍率與 ÷6 係數,請不要再除一次。

錢包與已公布的模型價格使用同一套美元單位。在折扣與手續費之前,儲值 $10 會增加 $10 餘額。

Anthropic 官方 Fast mode 標價為:Opus 5.5 每 100 萬 token 輸入 $8.00 / 輸出 $40.00,Fable 5.2 為 $16.00 / $80.00。本頁不陳述 Code By AI 對這兩個模型的 Fast mode 價格。 Anthropic API 定價

相同目錄價與用量示例,見各模型詳情頁與模型價格說明。

在 Code By AI 要怎麼呼叫這兩個模型?

在同一個終端機中,先將 sk-proj-xxxx 換成你的 API 金鑰並執行下方設定,再執行任一 Messages 請求。Claude Code 與兩個 curl 範例共用 ANTHROPIC_AUTH_TOKEN。

Code By AI 的預設 Claude Code 模型是 claude-sonnet-5,不是這兩個。省略模型 ID 時會使用該預設模型;要呼叫 Opus 5.5 或 Fable 5.2,必須明確傳入 ID。

Claude Code 與 curl 共用設定

export ANTHROPIC_BASE_URL="https://www.codebyai.net/api/agent"
export ANTHROPIC_AUTH_TOKEN="sk-proj-xxxx"

以 claude-opus-5-5 發出的最小 Messages 請求

curl --fail-with-body --max-time 120 https://www.codebyai.net/api/agent/v1/messages \
  -H "x-api-key: ${ANTHROPIC_AUTH_TOKEN:?Set ANTHROPIC_AUTH_TOKEN}" \
  -H "anthropic-version: 2023-06-01" \
  -H "content-type: application/json" \
  -d '{"model":"claude-opus-5-5","max_tokens":256,"messages":[{"role":"user","content":"Hello"}]}'

以 claude-fable-5-2 發出的最小 Messages 請求

curl --fail-with-body --max-time 120 https://www.codebyai.net/api/agent/v1/messages \
  -H "x-api-key: ${ANTHROPIC_AUTH_TOKEN:?Set ANTHROPIC_AUTH_TOKEN}" \
  -H "anthropic-version: 2023-06-01" \
  -H "content-type: application/json" \
  -d '{"model":"claude-fable-5-2","max_tokens":256,"messages":[{"role":"user","content":"Hello"}]}'
Claude Code 設定指南

常見問題

Opus 5.5 和 Fable 5.2 該選哪個?

大多數編碼與知識工作先從 Claude Opus 5.5 開始;需要更重的長周期模型時,再依 Anthropic 的建議改用 Claude Fable 5.2。

本頁是否也涵蓋「Fable 5.2 vs Opus 5.5」?

是。這一個網址同時回答「Opus 5.5 vs Fable 5.2」與「Fable 5.2 vs Opus 5.5」。

在 Code By AI 的模型 ID 是什麼?

模型 ID 分別是 `claude-opus-5-5` 與 `claude-fable-5-2`,與站內模型詳情頁一致。

在 Code By AI 要多少錢?

Opus 5.5 按已公布的官方標價 1/4 計費(每 100 萬 token 輸入 $1.00 / 快取讀取 $0.05 / 輸出 $5.00)。Fable 5.2 按已公布的 1/4 計費($2.00 / $0.05 / $10.00)。這些已公布價格已包含模型倍率與文件中的 ÷6 係數。

在 Code By AI 兩個模型用同一把金鑰嗎?

是。兩個模型使用同一把預付費金鑰、同一個 base URL,以及同一套公開價格結構。只需改模型 ID。

切換模型需要新的金鑰嗎?

不需要。在同一把預付費金鑰上改模型 ID 即可。預設的 Claude Code 模型不是這兩個,因此必須明確指定 ID。

儲值怎麼算?

沒有訂閱。在折扣與手續費之前,儲值 $10 會增加 $10 餘額;用量依本頁與 Model Plaza 已公布的 token 價格扣款。

上下文長度不一樣嗎?

不是。依 Anthropic 模型總覽,兩個模型都是 1M 上下文、128K 最大同步輸出。

Code By AI 有提供 Mythos 嗎?

沒有。Code By AI 不提供 Mythos。

在 Claude Code 裡怎麼用?

依 Claude Code 設定指南,將 ANTHROPIC_BASE_URL 設為 https://www.codebyai.net/api/agent,將 ANTHROPIC_AUTH_TOKEN 設為你的金鑰,再傳入模型 ID。

Code By AI 的價格相當於官方標價的多少?

Code By AI 的 claude-opus-5-5 價格為官方標價的 1/4,claude-fable-5-2 為 1/4。實際每 token 金額也取決於各模型的官方單價。上方表格已顯示最終美元價格,不需額外換算。

Code By AI 有提供 Anthropic 的 Message Batches 300K 輸出 beta,或 Fable 的 30 天資料保留規定嗎?

沒有。300K Message Batches 輸出 beta 與 30 天資料保留要求,都是上文引用的 Anthropic 官方 API 規定。本頁並不主張 Code By AI 提供 Message Batches API,也不陳述 Code By AI 的資料保留政策。

可以用其他語言的文件來設定嗎?

可以。本對照頁已提供英文、繁體中文、韓文、法文、日文、俄文、西班牙文、越南文、印尼文與葡萄牙文版;請用語言切換器選擇,其他文件頁的翻譯範圍依各頁而異。

下一步

註冊 Code By AI 帳號、為預付費錢包儲值,並建立一把 API 金鑰。然後用上面的示例呼叫 Opus 5.5 或 Fable 5.2,或依 Claude Code 設定指南操作。

Code By AI 是第三方預付費 API 閘道,不是 Anthropic 的官方產品。