studioglobal
熱門發現
答案已發布7 來源

Codex vs Claude Code:2026 年 API 價錢同訂閱月費邊個更抵?

API 計價方面,官方數字顯示 gpt 5.1 codex mini 最平:1 百萬輸入 token 加 1 百萬輸出 token、無 cache 情況下約 US$2.25;Claude Opus 4.7/4.6/4.5 則約 US$30.00。 gpt 5.3 codex 比 Codex mini 貴好多,同一個無 cache 例子約 US$15.75;但仍低過 Claude Opus 4.7/4.6/4.5。

18K0
Ilustrasi perbandingan biaya Codex dan Claude Code untuk developer yang memakai AI coding
Codex vs Claude Code: Perbandingan Harga API dan Langganan 2026Perbandingan biaya Codex vs Claude Code bergantung pada dua hal berbeda: tarif token API dan batas paket langganan.
AI 提示

Create a landscape editorial hero image for this Studio Global article: Codex vs Claude Code: Perbandingan Harga API dan Langganan 2026. Article summary: Untuk biaya API, Codex mini adalah pemenang jelas dalam angka resmi: gpt 5.1 codex mini $0.25 input, $0.025 cached input, dan $2.00 output per 1 juta token, sedangkan Claude Opus 4.7/4.6/4.5 $5 input dan $25 output.. Topic tags: ai, openai, anthropic, codex, claude code. Reference image context from search candidates: Reference image 1: visual subject "# Codex vs Claude Code: The Complete 2026 Comparison for Developers. Codex and Claude Code are the two dominant agentic coding tools in 2026. Both can take a task description in na" source context "Codex vs Claude Code: 2026 Comparison for Developers - Leanware" Reference image 2: visual subject "Verbatim context compaction for long-running agents. Connect Claude, Cursor, and VS Code to M

openai.com

如果你係用 API 叫模型幫手寫 code、改 code、讀 repo,最直接嘅答案係:按每 100 萬 token 計,OpenAI gpt-5.1-codex-mini 比 Claude Opus 便宜得多。OpenAI 列出 gpt-5.1-codex-mini 價格為輸入 US$0.25、輸出 US$2.00;Anthropic Claude API 文件列出 Claude Opus 4.7/4.6/4.5 為輸入 US$5、輸出 US$25。 [24][13]

但如果你講緊月費訂閱,例如用 Codex CLI、Codex Web 或 Claude Code 做日常 coding agent,就唔可以只用「每月幾多美元」去判斷。Codex 有每 5 小時用量窗;而 Ars Technica 報道 Anthropic 曾對少部分新 prosumer 註冊用戶測試 Claude Code 不支援 Pro plan。 [1][14]

先講結論

  • API 最平: gpt-5.1-codex-mini,以 OpenAI 官方每 100 萬 token 價格計,係今次比較入面最低。 [24]
  • Codex 非 mini 版貴好多: gpt-5.3-codex 標準 API pricing 為輸入 US$1.75、cached input US$0.175、輸出 US$14.00。 [25]
  • 簡單 token 例子: 1 百萬輸入 token + 1 百萬輸出 token、完全唔用 cache,Claude Opus 4.7/4.6/4.5 係 US$30.00;gpt-5.1-codex-mini 係 US$2.25;gpt-5.3-codex 係 US$15.75。 [13][24][25]
  • 月費唔係一定平過 API: Codex 要睇每 5 小時限額;Claude Code 則要確認 Pro/Max plan 當下是否包含你要用嘅功能。 [1][14]

API 價格:每 100 萬 token 點計?

以下全部係美元,單位係每 100 萬 token。要留意,「cache」喺兩邊寫法唔完全一樣:OpenAI 寫 cached input;Anthropic 就分開 cache writes、cache hits and refreshes。 [24][25][13]

API/模型輸入Cache輸出備註
OpenAI gpt-5.1-codex-miniUS$0.25US$0.025 cached inputUS$2.00OpenAI 模型文件列出嘅文字 token 價格。 [24]
OpenAI gpt-5.3-codexUS$1.75US$0.175 cached inputUS$14.00OpenAI API 標準 pricing 頁面列出嘅 Codex 價格。 [25]
Claude Opus 4.7/4.6/4.5US$5.00US$0.50 cache hits and refreshes;cache writes:5 分鐘 US$6.25、1 小時 US$10US$25.00Claude API pricing 文件列出嘅 Opus 價格。 [13]

用一個最簡單、方便對數嘅情境:1 百萬輸入 token + 1 百萬輸出 token,完全唔用 cache,成本會係:

  • gpt-5.1-codex-miniUS$2.25[24]
  • gpt-5.3-codexUS$15.75[25]
  • Claude Opus 4.7/4.6/4.5:US$30.00[13]

呢個唔係每月賬單預測,只係純 token 單價比較。實際用幾多錢,會受輸入/輸出比例、cache 命中率、context 長度、agent 讀幾多檔案、改幾多輪影響。不過如果只睇官方列出嘅 token 價,Codex mini 係呢張表入面最慳嘅選擇。 [24][13]

月費訂閱:US$20 唔代表一定同級

Codex 方面,OpenAI 官方 Codex pricing 頁面用 tier 顯示 local messages、cloud tasks、code reviews 嘅每 5 小時限額。該頁亦列明 local messages 同 cloud tasks 共用同一個 5 小時用量窗,可能另有每週限額;Pro US$200 方案嘅用量 boost 會去到 2026 年 5 月 31 日;Enterprise/Edu 用戶就冇固定 rate limit,而係按 credits 擴展。 [1]

至於 ChatGPT/Codex 月費,有第三方整理指 ChatGPT Plus US$20/月包含 Codex Web 同 Codex CLI,ChatGPT Pro US$200/月則有更高用量。不過呢個唔係 OpenAI 官方 pricing 頁,所以只適合作為初步參考;買之前最好直接喺自己帳戶或官方頁面核實。 [10]

Claude Code 方面,第三方指南整理指 Claude Code 可經 Pro US$20/月、Max US$100 或 US$200/月,或者用 Anthropic API 按 token 付費。 [7] 但 Ars Technica 報道,Anthropic 曾經將 Claude pricing 頁面對部分新 Pro 註冊用戶顯示為不支援 Claude Code;Claude Code 當時仍然可用於 US$100/月或以上嘅 Max plan。Anthropic 方面稱呢個係針對約 2% 新 prosumer 註冊用戶嘅小型測試。 [14]

所以,如果你買 Claude Pro 主要目的係用 Claude Code,唔好假設 US$20 plan 一定有。落單前要即場確認 Anthropic 最新 pricing、自己帳戶內顯示嘅功能,以及你需要嘅 Claude Code 入口是否開通。 [14]

唔同用法,邊個更抵?

1. API 輕量 coding:Codex mini 最著數

如果你最在意係 token 成本,而任務係較輕量嘅 code generation、簡單修改、script 協助,gpt-5.1-codex-mini 係今次比較中最平。佢嘅價格係每 100 萬 token 輸入 US$0.25、輸出 US$2.00;Claude Opus 4.7/4.6/4.5 則係輸入 US$5、輸出 US$25。 [24][13]

2. 用 Codex 非 mini 模型:平過 Claude Opus,但差距收窄

gpt-5.3-codex 同 Codex mini 唔係同一個價位。OpenAI 標準 pricing 列出 gpt-5.3-codex 每 100 萬 token 輸入 US$1.75、cached input US$0.175、輸出 US$14.00。 [25] 用同樣 1 百萬輸入 + 1 百萬輸出、無 cache 例子,總數係 US$15.75;比 Codex mini 貴,但仍然低過 Claude Opus 4.7/4.6/4.5 嘅 US$30.00。 [25][13]

3. 月費 coding agent:要睇 quota,而唔係只睇月費

如果你打算長開 agent 幫你讀 repo、寫 diff、跑多輪修正,問題就變成:每個 5 小時窗口你實際可以做幾多次?Codex 官方頁列出每 5 小時用量限制,亦提到可能有額外每週限額。 [1] Claude Code 方面,第三方整理講到 Pro US$20、Max US$100/US$200,但 Ars Technica 嘅報道顯示 Pro access 曾經對少部分新用戶出現變動測試。 [7][14]

如果你預算大約係每月 US$20,買之前至少確認兩件事:第一,coding agent 功能是否真係包含喺該 plan;第二,限額是否配合你每日實際工作節奏。 [1][14]

4. 重度使用或團隊:限額模式比標價更重要

重度使用者唔應該只比較「US$20 定 US$200」。Codex 官方頁面列出 local messages、cloud tasks、code reviews 每 5 小時窗口嘅用量,並註明可能有額外每週限制。 [1] 對 Enterprise/Edu,OpenAI 則表示冇固定 rate limits,使用量會按 credits 擴展。 [1]

Claude Code 方面,第三方整理將 Max 寫成 US$100/US$200 月費選項;而 Ars Technica 報道指,在 Pro 測試期間,Claude Code 仍然保留喺 US$100/月或以上 Max plan。 [7][14]

自己估成本,可以咁計

  1. 分開輸入同輸出。 今次比較嘅模型都係輸入、輸出分開收費,而且輸出 token 明顯貴過輸入 token。 [24][25][13]
  2. Cache 要另外計。 OpenAI 寫 cached input;Anthropic 就分 cache writes 同 cache hits/refreshes。兩者唔可以直接當成同一樣嘢。 [24][25][13]
  3. 用自己真實工作流估算。 如果 agent 成日讀好多檔案、產生長 diff、反覆測試修正,token 比例可以同簡單 prompt 差好遠。
  4. 平月費唔等於無限用。 Codex 有每 5 小時用量窗同可能嘅每週限制;Claude Code Pro 亦曾經對少部分新註冊用戶測試過可用狀態變動。 [1][14]

最後點揀?

如果問題係 API 邊個最平,答案幾清楚:gpt-5.1-codex-mini 係今次官方數字比較入面最慳,每 100 萬 token 輸入 US$0.25、輸出 US$2.00。 [24]

如果問題係 月費訂閱邊個抵,就冇一個放諸四海皆準嘅答案。Codex 要睇每 5 小時 quota、可能嘅每週限制,以及你會唔會用到 cloud tasks 或 code reviews;Claude Code 就要睇 Pro/Max 最新 access 狀態。 [1][14]

實用建議係:如果你係以 API 成本最低為首要目標,先試 Codex mini;如果你想買月費做長時間 coding agent,先比較實際 quota,同時確認你需要嘅功能喺購買一刻確實可用。 [24][1][14]

Studio Global AI

Search, cite, and publish your own answer

Use this topic as a starting point for a fresh source-backed answer, then compare citations before you share it.

使用 Studio Global AI 搜尋並查核事實

重點

  • API 計價方面,官方數字顯示 gpt 5.1 codex mini 最平:1 百萬輸入 token 加 1 百萬輸出 token、無 cache 情況下約 US$2.25;Claude Opus 4.7/4.6/4.5 則約 US$30.00。
  • gpt 5.3 codex 比 Codex mini 貴好多,同一個無 cache 例子約 US$15.75;但仍低過 Claude Opus 4.7/4.6/4.5。
  • 買月費前唔好只睇 US$20 或 US$200:要確認 coding agent 功能是否包含、每 5 小時 quota 是否夠用,以及 Claude Code Pro 最新可用狀態。

人們還問

「Codex vs Claude Code:2026 年 API 價錢同訂閱月費邊個更抵?」的簡短答案是什麼?

API 計價方面,官方數字顯示 gpt 5.1 codex mini 最平:1 百萬輸入 token 加 1 百萬輸出 token、無 cache 情況下約 US$2.25;Claude Opus 4.7/4.6/4.5 則約 US$30.00。

首先要驗證的關鍵點是什麼?

API 計價方面,官方數字顯示 gpt 5.1 codex mini 最平:1 百萬輸入 token 加 1 百萬輸出 token、無 cache 情況下約 US$2.25;Claude Opus 4.7/4.6/4.5 則約 US$30.00。 gpt 5.3 codex 比 Codex mini 貴好多,同一個無 cache 例子約 US$15.75;但仍低過 Claude Opus 4.7/4.6/4.5。

接下來在實務上我該做什麼?

買月費前唔好只睇 US$20 或 US$200:要確認 coding agent 功能是否包含、每 5 小時 quota 是否夠用,以及 Claude Code Pro 最新可用狀態。

接下來我應該探索哪個相關主題?

繼續“Claude Security 公測版:Anthropic 點樣用 AI 幫企業掃 code 漏洞”以獲得另一個角度和額外的引用。

開啟相關頁面

我應該將其與什麼進行比較?

對照「xAI Grok 4.3 API 解讀:1M context、低 token 價與語音平台野心」交叉檢查此答案。

開啟相關頁面

繼續你的研究

研究對話

研究問題

Bandingkan harga Codex dengan Claude Code.

Studio Global AI35 來源

引用的答案

Secara harga langganan, Codex dan Claude Code sama-sama mulai di sekitar $20/bulan, tetapi Claude Code untuk pemakaian berat biasanya naik ke Max $100–$200/bulan, sedangkan Codex punya paket ChatGPT/Codex dan opsi API yang bisa lebih murah untuk model mini atau lebih mahal untuk model utama tergantung token. Data Claude Code Pro saat ini agak tidak stabil karena ada laporan Anthropic sempat menguji penghapusan akses Claude Code dari paket Pro $20 untuk pengguna baru. [7]

  • Codex langganan

    • Codex pricing resmi OpenAI menunjukkan batas penggunaan per 5 jam berdasarkan tier seperti Pro 20x, dengan kuota local messages, cloud tasks, dan code reviews tergantung model. [3]
    • Untuk API, gpt-5.1-codex-mini dihargai $0.25 per 1 juta token input, $0.025 cached input, dan $2.00 output. [1]
    • gpt-5.3-codex di halaman pricing API OpenAI tercantum $1.75 input, $0.175 cached input, dan $14.00 output per 1 juta token. [2]
  • Claude Code langganan

    • Sumber pihak ketiga yang merangkum Claude Code menyebut paket Pro sekitar $20/bulan dan Max sekitar $100–$200/bulan, tetapi ini bukan halaman resmi Anthropic. [15]
    • Ars Technica melaporkan Anthropic sempat menampilkan Claude Code tidak didukung di paket Pro dan tetap tersedia di paket Max $100+/bulan, jadi status paket $20 perlu dicek langsung sebelum beli. [7]
  • Claude API

    • Pricing API resmi Anthropic menunjukkan Claude Opus 4.7/4.6/4.5 di $5 per 1 juta token input, $0.50 cache hit/refresh, dan $25 output. [5]
    • Untuk coding via API, biaya Claude bisa lebih mahal daripada Codex mini, terutama pada output token, tetapi perbandingan tepat tergantung model Claude yang dipakai. [1][5]
  • Ringkasnya

    • Termurah untuk coding ringan: Codex API mini tampak paling murah dari angka resmi yang ditemukan. [1]
    • Langganan murah: Codex/ChatGPT dan Claude Pro sama-sama sekitar kelas $20, tetapi akses Claude Code di Pro sedang/sempat tidak pasti untuk pengguna baru. [7]
    • Pemakaian berat: Claude Code Max $100–$200/bulan bisa menarik jika Anda sering menjalankan agent coding, tetapi Codex Pro/API bisa lebih fleksibel jika ingin bayar sesuai token. [2][7][15]

來源

  • [1] Codex Pricingdevelopers.openai.com

    Pro 20x Local Messages / 5h Cloud Tasks / 5h Code Reviews / 5h --- --- GPT-5.5 300-1600 Not available Not available GPT-5.4 400-2000 Not available Not available GPT-5.4-mini 1200-7000 Not available Not available GPT-5.3-Codex 600-3000 200-1200 400-1000 The...

  • [7] Claude Code Pricing in 2026: Every Plan Explained (Pro, Max, API ...ssdnodes.com

    Note: Before diving into pricing, one of the most effective ways to reduce Claude Code costs is running it on a Linux VPS. If you haven't set that up yet, here's how to install Claude Code on Ubuntu Linux. Claude Code Pricing: Quick Summary Claude Code cost...

  • [10] OpenAI Codex Pricing in 2026: What I Found After Ditching Claude ...userjot.com

    Current pricing: ChatGPT Plus: $20/mo (includes Codex Web + Codex CLI) ChatGPT Pro: $200/mo (same features, 10x the usage) Business: $25 to 30/user/mo (team features) Enterprise: Custom pricing That’s it. No separate Codex subscription. No standalone pricin...

  • [13] Pricing - Claude API Docsplatform.claude.com

    Model Base Input Tokens 5m Cache Writes 1h Cache Writes Cache Hits & Refreshes Output Tokens --- --- --- Claude Opus 4.7 $5 / MTok $6.25 / MTok $10 / MTok $0.50 / MTok $25 / MTok Claude Opus 4.6 $5 / MTok $6.25 / MTok $10 / MTok $0.50 / MTok $25 / MTok Clau...

  • [14] Anthropic tested removing Claude Code from the Pro plan - Ars Technicaarstechnica.com

    Users took to Reddit and X to point out that Anthropic’s pricing page for Claude explicitly showed Claude Code as not supported in the Pro plan. (It remained in the $100/month+ Max plan.) New users signing up for Pro subscriptions were unable to access Clau...

  • [24] GPT-5.1 Codex mini Model | OpenAI APIdevelopers.openai.com

    Text tokens Per 1M tokens Input $0.25 Cached input $0.025 Output $2.00 Quick comparison Input Cached input Output GPT-5-Codex $1.25 GPT-5.1 Codex mini $0.25 GPT-5.1 Codex mini $0.25 Modalities Text Input and output Image Input only Audio Not supported Video...

  • [25] Pricing | OpenAI APIdevelopers.openai.com

    Specialized models Prices per 1M tokens. Standard Batch Priority Standard Category Model Input Cached input Output --- --- ChatGPT gpt-5.3-chat-latest $1.75 $0.175 $14.00 Codex gpt-5.3-codex $1.75 $0.175 $14.00 All models Batch Category Model Input Cached i...