คำอธิบายเกี่ยวกับการคิดค่าบริการแบบขั้นบันไดสำหรับบริบทขนาดยาวเกินพิเศษของ GPT-5.6 Sol
-
<p>ตามกฎการคิดค่าบริการล่าสุดของ OpenAI โมเดลอย่าง GPT-5.6 Sol ใช้การคิดราคาแบบขั้นบันไดสำหรับคำขอที่มีบริบทขนาดยาวเกินพิเศษ</p><p>เมื่อบริบทของคำขอเดียวมีขนาดเกิน 272K tokens ค่าอินพุต การอ่านแคช และเอาต์พุตอาจถูกคำนวณตามราคาขั้นที่สูงขึ้น กฎนี้มาจากการกำหนดราคาอย่างเป็นทางการของ OpenAI ไม่ใช่การบวกค่าบริการชั่วคราวหรือการเรียกเก็บเงินผิดปกติจาก AI-ROUTER</p><p></p><p>ตัวอย่างราคามาตรฐานของ GPT-5.6 Sol:</p><pre class="rounded-lg bg-slate-950 px-4 py-3 text-slate-100"><code> รายการ ภายใน 272K เกิน 272K</code></pre><pre class="rounded-lg bg-slate-950 px-4 py-3 text-slate-100"><code> ━━━━━━━━━━ ━━━━━━━━━━━━━━━━━━━ ━━━━━━━━━━━━━━━━━</code></pre><pre class="rounded-lg bg-slate-950 px-4 py-3 text-slate-100"><code> อินพุต $5 / 1M tokens $10 / 1M tokens</code></pre><pre class="rounded-lg bg-slate-950 px-4 py-3 text-slate-100"><code> ────────── ─────────────────── ─────────────────</code></pre><pre class="rounded-lg bg-slate-950 px-4 py-3 text-slate-100"><code> การอ่านแคช $0.50 / 1M tokens $1 / 1M tokens</code></pre><pre class="rounded-lg bg-slate-950 px-4 py-3 text-slate-100"><code> ────────── ─────────────────── ─────────────────</code></pre><pre class="rounded-lg bg-slate-950 px-4 py-3 text-slate-100"><code> เอาต์พุต $30 / 1M tokens $45 / 1M tokens</code></pre><p></p><p>ค่าใช้จ่ายสุดท้ายจะยังคงคำนวณตามกลุ่มที่เกี่ยวข้อง อัตราคูณของบัญชี และการตั้งค่าการคิดค่าบริการอื่น ๆ</p><p></p><p>หากพบเครื่องหมาย x2 ในประวัติการใช้งาน หมายความว่าคำขอนั้นทริกเกอร์การคิดค่าบริการแบบขั้นบันไดสำหรับบริบทขนาดยาว เครื่องหมายนี้โดยหลักหมายถึงอินพุตและการอ่านแคชเข้าสู่ขั้นราคาที่สูงขึ้น ไม่ได้หมายความว่าค่าใช้จ่ายทั้งหมดของคำขอจะเพิ่มเป็นสองเท่าโดยตรง ส่วนเอาต์พุตอาจใช้อัตราคูณของขั้นราคาที่แตกต่างกัน</p><p></p><p><strong> ## วิธีหลีกเลี่ยงการทริกเกอร์การคิดค่าบริการแบบขั้นบันได</strong></p><p>หากไม่จำเป็นต้องใช้หน้าต่างบริบทขนาด 1M Token ขอแนะนำให้ปรับขีดจำกัดบริบทของ Codex กลับมาให้อยู่ภายใน 272K</p><p></p><p>เปิดไฟล์:</p><p> ~/.codex/config.toml</p><p></p><p>เปลี่ยนการตั้งค่า 1M เดิมในบทความ:</p><pre class="rounded-lg bg-slate-950 px-4 py-3 text-slate-100"><code> model = "gpt-5.6-sol"</code></pre><pre class="rounded-lg bg-slate-950 px-4 py-3 text-slate-100"><code> model_context_window = 1000000</code></pre><pre class="rounded-lg bg-slate-950 px-4 py-3 text-slate-100"><code> model_auto_compact_token_limit = 900000</code></pre><p> </p><p>เป็น:</p><pre class="rounded-lg bg-slate-950 px-4 py-3 text-slate-100"><code> model = "gpt-5.6-sol"</code></pre><pre class="rounded-lg bg-slate-950 px-4 py-3 text-slate-100"><code> model_context_window = 272000</code></pre><pre class="rounded-lg bg-slate-950 px-4 py-3 text-slate-100"><code> model_auto_compact_token_limit = 250000</code></pre><p> </p><p>บันทึกการตั้งค่า จากนั้นรีสตาร์ต Codex และสร้างเซสชันใหม่</p><p></p><p>หากต้องการให้มีผลชั่วคราวกับเซสชันเดียว สามารถใช้คำสั่ง:</p><pre class="rounded-lg bg-slate-950 px-4 py-3 text-slate-100"><code>codex -m gpt-5.6-sol -c model_context_window=272000 -c model_auto_compact_token_limit=250000</code></pre><p> นอกจากนี้ขอแนะนำให้:</p><p> - เปิดใช้การบีบอัดอัตโนมัติอย่างทันท่วงที</p><p> - แบ่งงานที่มีความยาวมากออกเป็นหลายเซสชัน</p><p> - ลดปริมาณเอาต์พุตจากเครื่องมือที่ส่งกลับมาพร้อมกันในครั้งเดียว</p><p> - สรุปและล้างเนื้อหาการสนทนาที่เก่ากว่าเป็นระยะ</p><p></p><p>หากจำเป็นต้องใช้หน้าต่างบริบทขนาด 1M Token จริง ๆ ก็สามารถใช้การตั้งค่าเดิมต่อไปได้ แต่ส่วนที่เกิน 272K จะถูกคิดค่าบริการตามราคาขั้นที่สูงขึ้นของ OpenAI</p><p></p><p>ดูคำอธิบายการตั้งค่าเดิมได้ที่: <a target="_blank" rel="noopener noreferrer nofollow" href="https://ai-router.dev/blog/post-g-677aa3e043912838-how-to-enable-a-1m-token-context-window-in-codex-for-gpt-5-6-sol">วิธีเปิดใช้หน้าต่างบริบทขนาด 1 ล้าน Token สำหรับ GPT-5.6 Sol ใน Codex </a></p><p></p><p>ขอขอบคุณสำหรับความเข้าใจและการสนับสนุน</p>
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login