studioglobal
ค้นพบเทรนด์
คำตอบเผยแพร่แล้ว7 แหล่งที่มา

Codex vs Claude Code: เทียบราคา API และแพ็กเกจปี 2026

ถ้าวัดเฉพาะ API ต่อโทเคน gpt 5.1 codex mini ถูกสุดในชุดข้อมูลนี้: $2.25 สำหรับ 1 ล้าน input + 1 ล้าน output แบบไม่ใช้แคช เทียบกับ Claude Opus ที่ $30.00 [24][13] gpt 5.3 codex แพงกว่า Codex mini โดยอยู่ที่ $15.75 ในตัวอย่างเดียวกัน แต่ยังต่ำกว่า Claude Opus ในโจทย์คำนวณแบบง่ายนี้ [25][13] แพ็กเกจรายเดือนต้องดูมากกว่...

17K0
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 แล้วจ่ายตามโทเคน ใครถูกกว่า คำตอบค่อนข้างชัด: Codex โดยเฉพาะ gpt-5.1-codex-mini มีราคาต่อ 1 ล้านโทเคนต่ำกว่า Claude Opus ในข้อมูลที่เทียบกันที่นี่ โดย OpenAI ระบุราคา Codex mini ที่ $0.25 สำหรับ input และ $2.00 สำหรับ output ขณะที่ Anthropic ระบุ Claude Opus 4.7/4.6/4.5 ที่ $5 สำหรับ input และ $25 สำหรับ output ต่อ 1 ล้านโทเคน [24][13]

แต่ถ้าคุณกำลังจะซื้อแพ็กเกจรายเดือนเพื่อใช้เอเจนต์เขียนโค้ด คำตอบจะไม่ง่ายเท่าดูป้ายราคา $20 หรือ $200 เพราะ Codex มีโควตาตามหน้าต่างเวลา 5 ชั่วโมง ส่วน Claude Code บนแพ็กเกจ Pro เคยมีรายงานว่า Anthropic ทดสอบไม่เปิดให้ผู้สมัครใหม่บางส่วนใช้งาน [1][14]

สรุปเร็ว

  • ถูกสุดเมื่อคิดแบบ API: gpt-5.1-codex-mini จากราคาทางการของ OpenAI ต่อ 1 ล้านโทเคน [24]
  • Codex รุ่นไม่ใช่ mini แพงขึ้นมาก: gpt-5.3-codex อยู่ที่ $1.75 input, $0.175 cached input และ $14.00 output ต่อ 1 ล้านโทเคนในราคา standard ของ OpenAI [25]
  • Claude Opus แพงกว่าในตัวอย่างโทเคนพื้นฐาน: ถ้าใช้ 1 ล้าน input + 1 ล้าน output โดยไม่ใช้แคช Claude Opus 4.7/4.6/4.5 เท่ากับ $30.00 เทียบกับ $2.25 สำหรับ Codex mini และ $15.75 สำหรับ gpt-5.3-codex [13][24][25]
  • รายเดือนต้องเช็กโควตาและสิทธิ์ใช้งาน: OpenAI แสดงขีดจำกัด Codex ต่อรอบ 5 ชั่วโมง ส่วน Ars Technica รายงานว่า Anthropic เคยทดสอบไม่รองรับ Claude Code ใน Pro สำหรับผู้สมัครใหม่กลุ่มเล็ก [1][14]

เทียบราคา API ต่อ 1 ล้านโทเคน

ตัวเลขทั้งหมดด้านล่างเป็นดอลลาร์สหรัฐต่อ 1 ล้านโทเคน แยก input, output และ cache ออกจากกัน คำว่า cache ของแต่ละค่ายไม่เหมือนกันเสียทีเดียว: OpenAI ใช้คำว่า cached input ส่วน Anthropic แยก cache writes กับ cache hits and refreshes [24][25][13]

API/รุ่นInputCacheOutputหมายเหตุ
OpenAI gpt-5.1-codex-mini$0.25$0.025 cached input$2.00ราคา text tokens ในเอกสารรุ่นของ OpenAI [24]
OpenAI gpt-5.3-codex$1.75$0.175 cached input$14.00ราคา standard ในหน้า OpenAI API pricing [25]
Claude Opus 4.7/4.6/4.5$5.00$0.50 cache hits and refreshes; cache writes $6.25 สำหรับ 5 นาที หรือ $10 สำหรับ 1 ชั่วโมง$25.00ราคาในเอกสาร Claude API pricing [13]

ถ้าคิดแบบง่ายที่สุดคือ 1 ล้านโทเคน input + 1 ล้านโทเคน output โดยไม่ใช้แคช ต้นทุนพื้นฐานจะเป็นดังนี้:

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

ตัวเลขนี้ไม่ใช่ใบเสร็จรายเดือนของทุกคน เพราะงานเขียนโค้ดจริงอาจมีการอ่านไฟล์จำนวนมาก สร้าง diff ยาว ๆ รันหลายรอบ หรือใช้แคชไม่เท่ากัน แต่ถ้าเทียบเฉพาะราคาต่อโทเคนจากข้อมูลทางการที่มี Codex mini เป็นตัวเลือกที่ประหยัดที่สุดในตารางนี้ [24][13]

แพ็กเกจรายเดือน: ราคาเริ่มต้นเท่ากันไม่ได้แปลว่าใช้ได้เท่ากัน

สำหรับ Codex หน้า pricing ของ OpenAI แสดงขีดจำกัดการใช้งานตาม tier สำหรับ local messages, cloud tasks และ code reviews ต่อหน้าต่างเวลา 5 ชั่วโมง โดย local messages กับ cloud tasks ใช้หน้าต่างเวลา 5 ชั่วโมงร่วมกัน และอาจมีขีดจำกัดรายสัปดาห์เพิ่มเติม นอกจากนี้ OpenAI ระบุว่า Pro $200 ได้ boost การใช้งานจนถึงวันที่ 31 พฤษภาคม 2026 และผู้ใช้ Enterprise/Edu ไม่มี fixed rate limits เพราะการใช้งานปรับตาม credits [1]

ในด้านราคาแพ็กเกจ ChatGPT/Codex มีบทสรุปจากเว็บไซต์บุคคลที่สามระบุว่า ChatGPT Plus $20 ต่อเดือนรวม Codex Web และ Codex CLI ส่วน ChatGPT Pro $200 ต่อเดือนให้การใช้งานมากกว่า อย่างไรก็ตาม แหล่งนี้ไม่ใช่หน้า pricing ทางการของ OpenAI จึงควรใช้เป็นบริบทเบื้องต้น และตรวจราคา/โควตาจริงจากบัญชีของคุณก่อนซื้อ [10]

สำหรับ Claude Code มีคู่มือบุคคลที่สามสรุปทางเลือกไว้ว่า Pro อยู่ที่ $20 ต่อเดือน, Max อยู่ที่ $100 หรือ $200 ต่อเดือน หรือจ่ายตามโทเคนผ่าน Anthropic API [7] แต่ Ars Technica รายงานว่า Anthropic เคยแสดง Claude Code ว่าไม่รองรับในแพ็กเกจ Pro สำหรับผู้สมัครใหม่บางส่วน ขณะที่ยังใช้งานได้ใน Max ระดับ $100 ขึ้นไป โดย Anthropic ระบุว่าเป็นการทดสอบขนาดเล็กกับผู้สมัคร prosumer ใหม่ราว 2% [14]

สรุปคือ อย่าซื้อ Claude Pro เพียงเพราะคิดว่า Claude Code ต้องรวมอยู่เสมอ หากเป้าหมายหลักคือใช้ Claude Code ให้ตรวจสถานะแพ็กเกจในหน้า pricing หรือในบัญชีของคุณ ณ เวลาซื้อจริง [14]

เลือกแบบไหนดีตามรูปแบบใช้งาน

1. เขียนโค้ดผ่าน API แบบเบา ๆ

ถ้าโจทย์หลักคือกดต้นทุน API ให้ต่ำที่สุด gpt-5.1-codex-mini เป็นตัวเลือกที่ประหยัดที่สุดในชุดตัวเลขนี้ เพราะราคาอยู่ที่ $0.25 input และ $2.00 output ต่อ 1 ล้านโทเคน ต่ำกว่า Claude Opus 4.7/4.6/4.5 ที่ $5 input และ $25 output อย่างมาก [24][13]

2. ใช้ Codex รุ่นใหญ่ขึ้นผ่าน API

gpt-5.3-codex อยู่คนละระดับราคากับ Codex mini โดย OpenAI ระบุราคา standard ที่ $1.75 input, $0.175 cached input และ $14.00 output ต่อ 1 ล้านโทเคน [25] ในตัวอย่าง 1 ล้าน input + 1 ล้าน output โดยไม่ใช้แคช ค่าใช้จ่ายคือ $15.75 ซึ่งแพงกว่า Codex mini แต่ยังต่ำกว่า Claude Opus 4.7/4.6/4.5 ในตัวอย่างเดียวกัน [25][13]

3. ใช้เอเจนต์เขียนโค้ดผ่านแพ็กเกจรายเดือน

สำหรับแพ็กเกจรายเดือน คำถามสำคัญไม่ใช่แค่จ่ายเดือนละเท่าไร แต่คือคุณรันงานเอเจนต์ได้กี่รอบในจังหวะทำงานจริง Codex มีขีดจำกัดตามหน้าต่างเวลา 5 ชั่วโมงและอาจมีขีดจำกัดรายสัปดาห์เพิ่มเติม [1] ฝั่ง Claude Code มีแหล่งบุคคลที่สามสรุปว่า Pro อยู่ที่ $20 และ Max อยู่ที่ $100/$200 แต่รายงานของ Ars Technica ชี้ว่า Anthropic เคยทดสอบเปลี่ยนสถานะการเข้าถึง Claude Code ใน Pro สำหรับผู้สมัครใหม่บางส่วน [7][14]

ถ้างบประมาณของคุณอยู่ราว $20 ต่อเดือน ให้เช็กสองอย่างก่อนตัดสินใจ: ฟีเจอร์ coding agent ที่ต้องใช้เปิดอยู่จริงหรือไม่ และโควตาเพียงพอกับรอบการทำงานของคุณหรือเปล่า [1][14]

4. งานหนักหรือใช้งานเป็นทีม

ถ้าใช้งานหนัก อย่าดูแค่ราคาเริ่มต้น ให้เทียบโควตาและรูปแบบการใช้งานด้วย OpenAI ระบุขีดจำกัดสำหรับ local messages, cloud tasks และ code reviews ต่อหน้าต่างเวลา 5 ชั่วโมง พร้อมหมายเหตุว่าอาจมีขีดจำกัดรายสัปดาห์เพิ่มเติม [1] สำหรับ Enterprise/Edu OpenAI ระบุว่าไม่มี fixed rate limits และการใช้งานปรับตาม credits [1]

ด้าน Claude Code แหล่งบุคคลที่สามสรุปว่า Max เป็นทางเลือกที่ $100/$200 ต่อเดือน และ Ars Technica รายงานว่า Claude Code ยังคงมีใน Max ระดับ $100 ขึ้นไประหว่างการทดสอบบน Pro [7][14]

วิธีคำนวณต้นทุนของคุณเอง

  1. แยก input กับ output ก่อนเสมอ ตารางราคาทั้งสามชุดแยกราคา input และ output และในโมเดลที่เทียบกันนี้ output แพงกว่า input [24][25][13]
  2. คิด cache แยกต่างหาก OpenAI ใช้ cached input ส่วน Anthropic แยก cache writes และ cache hits/refreshes [24][25][13]
  3. ใช้โจทย์งานจริงของคุณ งานที่อ่านหลายไฟล์ เขียน diff ยาว หรือให้เอเจนต์วนแก้หลายรอบ จะทำให้สัดส่วน input/output เปลี่ยนไปมาก
  4. อย่าเหมารวมว่าแพ็กเกจถูกคือไม่จำกัด Codex มีกรอบ 5 ชั่วโมงและอาจมีข้อจำกัดรายสัปดาห์ ส่วน Claude Code บน Pro เคยถูกทดสอบเปลี่ยนสิทธิ์เข้าถึงสำหรับผู้สมัครใหม่บางส่วน [1][14]

บทสรุป

ถ้าต้องการ API ที่ถูกที่สุด ในข้อมูลที่เทียบกัน คำตอบคือ gpt-5.1-codex-mini ด้วยราคา $0.25 input และ $2.00 output ต่อ 1 ล้านโทเคน [24]

แต่ถ้าต้องการ แพ็กเกจรายเดือนสำหรับเอเจนต์เขียนโค้ด ยังไม่มีผู้ชนะที่ใช้ได้กับทุกคน Codex ต้องดูโควตาต่อรอบ 5 ชั่วโมงและข้อจำกัดเพิ่มเติม ส่วน Claude Code ต้องตรวจสถานะ Pro/Max ล่าสุดก่อนซื้อ [1][14] แนวทางที่ปลอดภัยคือใช้ Codex mini เมื่อเป้าหมายคือประหยัดค่า API ให้มากที่สุด และเลือกแพ็กเกจรายเดือนหลังจากเช็กโควตาจริงกับฟีเจอร์ coding agent ที่ต้องใช้แล้วเท่านั้น [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 ถูกสุดในชุดข้อมูลนี้: $2.25 สำหรับ 1 ล้าน input + 1 ล้าน output แบบไม่ใช้แคช เทียบกับ Claude Opus ที่ $30.00 [24][13]
  • gpt 5.3 codex แพงกว่า Codex mini โดยอยู่ที่ $15.75 ในตัวอย่างเดียวกัน แต่ยังต่ำกว่า Claude Opus ในโจทย์คำนวณแบบง่ายนี้ [25][13]
  • แพ็กเกจรายเดือนต้องดูมากกว่าราคาเริ่มต้น: Codex มีกรอบการใช้งานต่อ 5 ชั่วโมง ส่วน Claude Code บน Pro เคยถูกทดสอบให้ไม่พร้อมใช้กับผู้สมัครใหม่บางส่วน [1][14]

คนยังถาม

คำตอบสั้น ๆ สำหรับ "Codex vs Claude Code: เทียบราคา API และแพ็กเกจปี 2026" คืออะไร

ถ้าวัดเฉพาะ API ต่อโทเคน gpt 5.1 codex mini ถูกสุดในชุดข้อมูลนี้: $2.25 สำหรับ 1 ล้าน input + 1 ล้าน output แบบไม่ใช้แคช เทียบกับ Claude Opus ที่ $30.00 [24][13]

ประเด็นสำคัญที่ต้องตรวจสอบก่อนคืออะไร?

ถ้าวัดเฉพาะ API ต่อโทเคน gpt 5.1 codex mini ถูกสุดในชุดข้อมูลนี้: $2.25 สำหรับ 1 ล้าน input + 1 ล้าน output แบบไม่ใช้แคช เทียบกับ Claude Opus ที่ $30.00 [24][13] gpt 5.3 codex แพงกว่า Codex mini โดยอยู่ที่ $15.75 ในตัวอย่างเดียวกัน แต่ยังต่ำกว่า Claude Opus ในโจทย์คำนวณแบบง่ายนี้ [25][13]

ฉันควรทำอย่างไรต่อไปในทางปฏิบัติ?

แพ็กเกจรายเดือนต้องดูมากกว่าราคาเริ่มต้น: Codex มีกรอบการใช้งานต่อ 5 ชั่วโมง ส่วน Claude Code บน Pro เคยถูกทดสอบให้ไม่พร้อมใช้กับผู้สมัครใหม่บางส่วน [1][14]

ฉันควรสำรวจหัวข้อที่เกี่ยวข้องใดต่อไป

ดำเนินการต่อด้วย "Claude Security รุ่นเบต้า: Anthropic ใช้ AI สแกนช่องโหว่โค้ดองค์กรอย่างไร" เพื่อดูอีกมุมหนึ่งและการอ้างอิงเพิ่มเติม

เปิดหน้าที่เกี่ยวข้อง

ฉันควรเปรียบเทียบสิ่งนี้กับอะไร?

ตรวจสอบคำตอบนี้กับ "Grok 4.3 API ของ xAI: 1M context ราคาต่ำ และเกมรุกสู่แพลตฟอร์มเสียง"

เปิดหน้าที่เกี่ยวข้อง

ทำการวิจัยต่อ

การสนทนาการวิจัย

คุณ

คำถามวิจัย

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...