Skip to content

fix(usage): price GPT-6 Sol/Luna, Opus 5.5 and Fable 5.1, and correct GPT-5.6 rates - #22350

Merged
Jinwoo-H merged 2 commits into
mainfrom
usage-tracking
Sep 22, 2026
Merged

Jinwoo-H merged 2 commits into
mainfrom
usage-tracking

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​116 $\color{#cf222e}{\Huge{\mathbf{−}}}$​8 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​108
Prod 2 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​65 $\color{#cf222e}{\Huge{\mathbf{−}}}$​19 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​46

ELI5

Settings → Stats & Usage estimates what your Codex and Claude usage would cost. It looks up each model in a price list. The models released this week were either missing from that list or matched to the wrong entry, so their costs were left out or overstated. Some older GPT-5.6 prices were also out of date.

What Changed

Model Before After
gpt-6-sol No entry: its tokens were left out of the total, which showed "excludes unpriced models" $2 input / $0.20 cached / $10 output (long-context: $4 / $0.40 / $15)
gpt-6-luna No entry: left out, same as above $0.10 / $0.01 / $0.50 (long-context: $0.20 / $0.02 / $0.75)
claude-opus-5-5 Matched the Opus 5 pattern and billed at $5/$25, about 25% too high, with no warning $4 / $20, cache read $0.20, cache writes $5 (5-minute) / $8 (1-hour)
claude-fable-5-1 Matched the Fable 5 pattern: cache reads billed at $1 Cache reads $0.25; other rates unchanged from Fable 5
gpt-5.6-sol / -terra / -luna $5/$30, $2.50/$15, $1/$6 $4/$20, $2/$12, $0.20/$1.20, matching OpenAI's current pricing page
gpt-5.2-pro Matched the gpt-5.2 prefix and billed at $1.75/$14 $21 / $168; no cached discount and no long-context tier, as on OpenAI's page
Codex (max) / (ultra) reasoning tiers A name like gpt-6-sol(ultra) was unpriced Recognized. The dash form doesn't strip -max, which would turn gpt-5.1-codex-max into gpt-5.1-codex

How it works: new entries in MODEL_PRICING in codex-model-pricing.ts and claude-model-pricing.ts, plus name matching for each one. The Claude point releases are checked before their major version's pattern, because /opus-5(?:$|[^0-9])/ also matches opus-5-5.

Why

Prices come from OpenAI's API pricing page and Anthropic's published model pricing. The approach is the same one #22073 used for GPT-6 Astra. The GPT-5.6 Sol price is OpenAI's promotional rate, listed through at least 2026-11-21, and a comment on that entry says so.

Uncertain inputs:

  • Opus 5.5 cache-write prices: these come from the standard 1.25x and 2x multipliers. No separate figure has been published yet.
  • GPT-6 long-context threshold: OpenAI's page lists long-context prices for GPT-6 Sol and Luna but doesn't say where the threshold is. This PR keeps the table's existing 272K threshold, which matches third-party reports.

claude-mythos-5-1 is not priced before or after this PR, and is left out of scope.

Linked Issue

None. This covers the 2026-09-22 model launches.

Visual Proof

N/A. Only cost numbers from the pricing table change; no layout or interaction changes.

Testing

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below

  • Added tests for GPT-6 Sol and Luna pricing, including names with a reasoning-effort suffix. The GPT-5.6 tests now check the new rates.

  • Added tests that claude-opus-5-5, claude-opus-5.5[1m] and claude-fable-5-1 get their own prices, and that claude-opus-5-50 still falls back to Opus 5.

  • Added tests for gpt-5.2-pro, the (ultra) and (max) forms, and claude-fable-5-1m. Both new tests fail against the old code.

  • vitest over src/main/claude-usage, src/main/codex-usage and src/renderer/src/components/stats: 167/167 passed. pnpm tc:node, oxlint, oxfmt --check and check:code-quality:changed also passed.

AI Disclosure

Written with Claude Opus 5.5.

Review

Agent skill upstream boundary

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

The pricing tables run in the main process and read local and remote session logs the same way, so SSH, folder workspaces and each platform behave the same.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

Jinwoo-H and others added 2 commits September 22, 2026 18:53
… GPT-5.6 rates

gpt-6-sol and gpt-6-luna had no pricing entry, so their tokens were left
out of the Codex cost total. claude-opus-5-5 and claude-fable-5-1 matched
their major's pattern and were billed at Opus 5 ($5/$25) and Fable 5 ($1
cache read) rates. The GPT-5.6 Sol/Terra/Luna rates no longer matched
OpenAI's published pricing (Luna was 5x high).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…int-release matching

gpt-5.2-pro matched the gpt-5.2 prefix and billed at $1.75/$14 instead of
its $21/$168. Codex's `max` and `ultra` reasoning tiers in parenthesized
form left the model unpriced. The new fable-5-1/opus-5-5 patterns also
accepted a trailing letter, so `claude-fable-5-1m` read as Fable 5.1.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes

  • GPT-6 Sol/Luna priced — new MODEL_PRICING entries in codex-model-pricing.ts for gpt-6-sol and gpt-6-luna with their long-context tiers, plus exact/prefix name matching after the gpt-6-astra branch.
  • GPT-5.6 rates corrected — gpt-5.6-sol $4/$20, gpt-5.6-terra $2/$12, gpt-5.6-luna $0.20/$1.20, long-context tiers adjusted proportionally; existing store tests re-pinned to the resulting totals.
  • Claude point releases — new claude-opus-5-5 and claude-fable-5-1 entries, with point-release regexes placed before the /opus-5/ and /fable-5/ majors because fable-5(?:$|[^0-9]) also matches fable-5-1 (the - satisfies [^0-9]). claude-opus-5-50 still correctly resolves to Opus 5.
  • Tests — new cases pin the point-release prices, the unaffected sibling (claude-fable-5 cache read $1), the version boundary (claude-opus-5-50), the GPT-6 Sol/Luna totals across the 272K long-context threshold, reasoning-suffix normalization, and that hasUnpricedModels stays false for the new entries.

I traced the matching order, verified every token-bucket total against the store's accounting (cached input excluded from the full-price input bucket; one 272K allowance), and confirmed the new/changed rates against the published OpenAI and Anthropic pricing pages — all match, including Sol's promotional rate and the derived 1.25x/2x cache-write multipliers. The open items noted in the description (Opus 5.5 cache-write rates derived from multipliers, GPT-6 long-context threshold, claude-mythos-5-1 left out of scope) are appropriately documented and not defects.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ No new issues found.

Reviewed changes (delta since the previous pullfrog review of a92cca6)

  • gpt-5.2-pro priced — new MODEL_PRICING entry 21/21/168 with no long-context tier; the match branch is placed before the generic gpt-5.2- prefix, so it resolves to Pro instead of base gpt-5.2 (the new test's 6.3 result would be ~0.446 at the old rate, so it genuinely pins the precedence).
  • (max) / (ultra) reasoning tiers accepted — a separate PARENTHESIZED_REASONING_TIERS list extends the parenthesized forms without touching the dash-suffix list, so gpt-5.1-codex-max is not stripped down to gpt-5.1-codex. The new test exercises gpt-6-sol(ultra) and gpt-5.6-luna(max).
  • Point-release matching tightened — the trailing guard on the Fable 5.1 / Opus 5.5 regexes is now [^0-9a-z], so claude-fable-5-1m falls back to Fable 5 (asserted as $1 cache read), while claude-opus-5.5[1m] and claude-opus-5-5-thinking still match the point releases.

I traced the new match branches against their neighbours, re-checked the bucket math for the three new test rows, and confirmed gpt-5.2-pro's input/output rates against OpenAI's published page. The cachedInput: 21 value is not a published number, but it is the same no-discount encoding already used by gpt-5.4-pro / gpt-5.5-pro, so it is consistent with the table rather than a divergence. The tighted [^0-9a-z] guard is a documented judgment call and is covered by a test that fails against the previous code.

Pullfrog  | View workflow run | Using DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

@coderabbitai

coderabbitai Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

📝 Walkthrough

Walkthrough

Claude pricing now includes Opus 5.5 and Fable 5.1, with matching model-name normalization and cost tests. Codex pricing adds GPT-5.2 Pro and GPT-6 Sol and Luna, and changes GPT-5.6 rates. Codex normalization and tests also cover the added models and parenthesized reasoning tiers.

Priority: ➖ Normal

Merge Risk: 🟡 Moderate · up to 12f00

Long-context usage can show incorrect cost estimates. Preserve request-level pricing information and correct the estimates before merging.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 4 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the pricing updates for the new models and the GPT-5.6 rate corrections.
Description check ✅ Passed The description covers the required change summary, rationale, visual proof, testing, AI disclosure, and checklist. The Linked Issue section says “None,” although the template requires an issue link; …
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Advanced

Run ID: 9181a576-b998-40a7-b632-82b7f1b9a93e

📥 Commits

Reviewing files that changed from the base of the PR and between 7cb4380 and 12f00b8.

📒 Files selected for processing (4)
  • src/main/claude-usage/claude-model-pricing.test.ts
  • src/main/claude-usage/claude-model-pricing.ts
  • src/main/codex-usage/codex-model-pricing.ts
  • src/main/codex-usage/store-model-pricing.test.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 0 remain after this review.

Comment on lines +63 to +65
inputTiers: [{ threshold: LONG_CONTEXT_THRESHOLD_TOKENS, price: 8 }],
cachedInputTiers: [{ threshold: LONG_CONTEXT_THRESHOLD_TOKENS, price: 0.8 }],
outputTiers: [{ threshold: LONG_CONTEXT_THRESHOLD_TOKENS, price: 30 }]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | 🏗️ Heavy lift

🔎 Supported by static analysis

🏁 Script executed:

sed -n '1,235p' src/main/codex-usage/codex-model-pricing.ts
sed -n '1,170p' src/main/codex-usage/codex-usage-cost-estimate.ts
sed -n '95,170p' src/main/codex-usage/store-model-pricing.test.ts
sed -n '260,300p' src/main/codex-usage/store-model-pricing.test.ts

Repository: stablyai/orca

Length of output: 14039


🌐 Web query:

site:developers.openai.com/api/docs/models/gpt-5.6-terra long context 272K input tokens full request pricing

💡 Result:

<source_evidence>

<title>GPT-5.6 Terra Model | OpenAI API</title> https://developers.openai.com/api/docs/models/gpt-5.6-terra GPT-5.6 Terra Model | OpenAI API Fast Price $2•$12 Input Output Text GPT-5.6 Terra is designed for workloads that balance intelligence and cost. It roughly corresponds to the mini model tier used in earlier GPT-5 families. Reasoning.effort supports: none, low, medium (default), high, xhigh, and max. 1,050,000 context window 128,000 max output tokens Feb 16, 2026 knowledge cutoff Reasoning token support Pricing Pricing is based on the number of tokens used, or other metrics based on the model type. For tool-specific models, like search and computer use, there’s a fee per tool call. See details in the pricing page. Text tokens Per 1M tokens Input $2.00 Cached input $0.20 Output $12.00 Quick comparison Input Cached input Output GPT-5.6 Sol $4.00 GPT-5.6 Terra $2.00 GPT-5.4 Mini $0.75 Prompts with >272K input tokens are priced at 2x input and 1.5x output for the full request. Cache writes are billed at 1.25x the uncached input token rate. Modalities Text Input and output Image Input only Audio Not supported Video Not supported Endpoints Chat Completions v1/chat/completions Responses v1/responses Realtime v1/realtime Realtime translation v1/realtime/translations Realtime transcription v1/realtime/transcription_sessions Assistants v1/assistants Batch v1/batch Fine-tuning v1/fine-tuning Embeddings v1/embeddings Image generation v1/images/generations Videos v1/videos Image edit v1/images/edits Speech generation v1/audio/speech Transcription v1/audio/transcriptions Translation v1/audio/translations Moderation v1/moderations Completions (legacy) v1/completions Features Streaming Supported Function calling Supported Structured outputs Supported Fine-tuning Not supported Tools Tools supported by this model when using the Responses API. Web search Supported File search Supported Image generation Supported Code interpreter Supported Hosted shell Supported Apply patch Supported Skills Supported Computer use Supported MCP Supported Tool search Supported Snapshots Snapshots let you lock in a specific version of the model so that performance and behavior remain consistent. Below is a list of all available snapshots and aliases for GPT-5.6 Terra. gpt-5.6-terra gpt-5.6-terra gpt-5.6-terra Rate limits Rate limits ensure fair and reliable access to the API by placing specific caps on requests, tokens, audio duration, or other usage within a given time period. Your usage tier determines how high these limits are set and automatically increases as you send more requests and spend more on the API. | Tier | RPM | TPM | Batch queue limit | | --- | --- | --- | --- | | Free | Not supported | | | | Tier 1 | 500 | 500,000 | 1,500,000 | | Tier 2 | 5,000 | 1,000,000 | 3,000,000 | | Tier 3 | 5,000 | 2,000,000 | 100,000,000 | | Tier 4 | 10,000 | 4,000,000 | 200,000,000 | | Tier 5 | 15,000 | 40,000,000 | 15,000,000,000 |

Citations:


🏁 Script executed:

rg -n "dailyAggregates|inputTokens|cachedInputTokens|estimateCostUsd|eventCount" src/main/codex-usage --glob '*.ts'

Repository: stablyai/orca

Length of output: 36359


🌐 Web query:

site:developers.openai.com/api/docs/models GPT-5.6 Sol GPT-6 long context prompts 272K cached input full request pricing

💡 Result:

<source_evidence>

<title>Models | OpenAI API</title> https://developers.openai.com/api/docs/models Models | OpenAI API ## Choosing a model If you&`#39`;re not sure where to start, use GPT-6 Astra, our flagship model for complex reasoning and coding. Choose GPT-5.6 Terra to balance intelligence and cost, or GPT-5.6 Luna for cost-sensitive, high-volume workloads. All latest OpenAI models support text and image input, text output, multilingual capabilities, and vision. Models are available via the Responses API and our Client SDKs. ## Flagship models Compare model capabilities and specifications. Astra GPT-6 Astra Our most capable model, built for the hardest end-to-end work Model ID gpt-6-astra Reasoning low medium high xhigh max Input price $10 / Input MTok Output price $50 / Output MTok Max output 128K tokens Context window 1.05M Knowledge cutoff Apr 30, 2026 Tools Functions, Web search, File search, Computer use GPT-5.6 Sol Flagship model for complex professional work gpt-5.6-sol Alias gpt-5.6 Reasoning none low medium high xhigh max Input price $4 / Input MTok Output price $20 / Output MTok Max output 128K tokens Context window 1.05M Knowledge cutoff Feb 16, 2026 Tools Functions, Web search, File search, Computer use GPT-5.6 Terra GPT-5.6 model that balances intelligence and cost gpt-5.6-terra Reasoning none low medium high xhigh max Input price $2 / Input MTok Output price $12 / Output MTok Max output 128K tokens Context window 1.05M Knowledge cutoff Feb 16, 2026 Tools Functions, Web search, File search, Computer use GPT-5.6 Luna GPT-5.6 model optimized for cost-sensitive workloads gpt-5.6-luna none low medium high xhigh max Input price $0.20 / Input MTok Output price $1.20 / Output MTok Max output 128K tokens Context window 1.05M Knowledge cutoff Feb 16, 2026 Tools Functions, Web search, File search, Computer use ## Specialized models Purpose-built for specific tasks. OpenAI Daybreak Advanced cyber models for defenders GPT-5.6 Cyber Our most advanced cybersecurity model for authorized vulnerability research and security testing. Daybreak Red An alias for advanced cybersecurity models for authorized vulnerability research and security testing. Daybreak Blue An alias for flagship general-purpose models with safeguards for defensive cybersecurity work. Image Models for image generation and editing GPT-Image-2.5 Sunburst Our most capable model for image generation and editing GPT-Image-2.5 Flare GPT-Live 1 Our premier model for natural, expressive voice conversations with smooth interruption handling. GPT-Realtime-2.1 GPT-Realtime-1.5 GPT-Realtime Mini Deprecated GPT-4o Mini TTS GPT-Transcribe ## Browse our full catalog of models Diverse models for a variety of tasks <title>All models | OpenAI API</title> https://developers.openai.com/api/docs/models/all All models | OpenAI API # All models Browse models and compare their capabilities. Compare models Flagship models Compare capabilities and specifications. GPT-6 Astra Our most capable model, built for the hardest end-to-end work GPT-5.6 Sol Flagship model for complex professional work GPT-5.6 Terra GPT-5.6 model that balances intelligence and cost GPT-5.6 Luna GPT-5.6 model optimized for cost-sensitive workloads Image Models for image generation and editing. GPT-Image-2.5 Sunburst Our most capable model for image generation and editing GPT-Image-2.5 Flare Fast, high-quality everyday image generation GPT-Image-2 State-of-the-art image generation model Realtime & audio Models for realtime, speech, and audio workflows. GPT-Live 1 Our premier model for natural, expressive voice conversations with smooth interruption handling. GPT-Realtime-2.1 Reasoning model with tool use GPT-Realtime-2.1 Mini Reasoning model with tool use GPT-Realtime-2 Reasoning model with tool use GPT-Realtime-Translate Streaming speech-to-speech translation model GPT-Live-Transcribe Low-latency speech-to-text model for realtime transcription GPT-Realtime-Whisper Streaming speech-to-text model for realtime transcription GPT-Realtime-1.5 The best voice model for audio in, audio out GPT-Audio-1.5 The best voice model for audio in, audio out with Chat Completions. GPT-Transcribe High-accuracy speech-to-text model for file and Realtime input transcription GPT-4o Transcribe Speech-to-text model powered by GPT-4o GPT-4o Mini Transcribe Speech-to-text model powered by GPT-4o Mini GPT-4o Transcribe Diarize Transcription model that identifies who&`#39`;s speaking when TTS-1 Text-to-speech model optimized for speed TTS-1 HD Text-to-speech model optimized for quality Whisper General-purpose speech recognition model GPT-4o Mini TTS Text-to-speech model powered by GPT-4o Mini OpenAI Daybreak Advanced cyber models for defenders GPT-5.6 Cyber Our most advanced cybersecurity model for authorized vulnerability research and security testing. Daybreak Red An alias for advanced cybersecurity models for authorized vulnerability research and security testing. Daybreak Blue An alias for flagship general-purpose models with safeguards for defensive cybersecurity work. Life sciences Models for life sciences research GPT-Rosalind Life sciences reasoning for approved organizations Open-weight models Open-weight models under a permissive Apache 2.0 license. Most powerful open-weight model, fits into an H100 GPU Reasoning model for complex tasks, succeeded by GPT-5 Our most intelligent coding model optimized for long-horizon, agentic coding tasks. Fast, cost-efficient reasoning model, succeeded by GPT-5 Mini GPT-4.5 Preview Deprecated A small model alternative to o3 A small model alternative to o1 Preview of our first o-series reasoning model GPT-4o Mini Audio Deprecated GPT-4o Mini Realtime Deprecated GPT-5.1-Codex Deprecated A version of GPT-5.1 optimized for agentic coding in Codex. GPT-5.1-Codex-Max Deprecated A version of GPT-5.1-codex optimized for long running tasks. GPT-5.1-Codex Mini Deprecated codex-mini-latest Deprecated Fast reasoning model optimized for the Codex CLI davinci-002 Deprecated Replacement for the GPT-3 curie and davinci base models ChatGPT models Models used in ChatGPT, not recommended for API use. <title>GPT-6 Astra Model | OpenAI API</title> https://developers.openai.com/api/docs/models/gpt-6-astra GPT-6 Astra Model | OpenAI API Price $10•$50 Output Text GPT-6 Astra is our most capable model, built for the hardest end-to-end work. Use it for complex reasoning, coding, computer use, research, and document creation. `reasoning.effort` supports `low`, `medium`, `high`, `xhigh`, and `max`. Get started with GPT-6 Astra using the model guide. 1,050,000 context window 128,000 max output tokens Apr 30, 2026 knowledge cutoff Reasoning token support Pricing Pricing is based on the number of tokens used, or other metrics based on the model type. For tool-specific models, like search and computer use, there’s a fee per tool call. See details in the pricing page. Text tokens Per 1M tokens Input $10.00 Cached input $1.00 Cache writes $12.50 Output $50.00 Prompts with more than 272K input tokens are priced at 2x input and cache rates and 1.5x output for the full request. Cache writes are billed at 1.25x the uncached input token rate. Batch and Flex are priced at 50% of Standard rates. Fast mode is priced at 2x the applicable rates. Modalities Text Input and output Image Input only Audio Not supported Video Not supported Endpoints Live v1/live/sessions Chat Completions v1/chat/completions Responses v1/responses Realtime v1/realtime Realtime translation v1/realtime/translations Realtime transcription v1/realtime/transcription_sessions Assistants v1/assistants Batch v1/batch Fine-tuning v1/fine-tuning Embeddings v1/embeddings Image generation v1/images/generations Videos v1/videos Image edit v1/images/edits Speech generation v1/audio/speech Transcription v1/audio/transcriptions Translation v1/audio/translations Moderation v1/moderations Completions (legacy) v1/completions Features Streaming Supported Function calling Supported Structured outputs Supported Fine-tuning Not supported Tools Tools supported by this model when using the Responses API. Web search Supported File search Supported Image generation Supported Code interpreter Supported Hosted shell Supported Apply patch Supported Skills Supported Computer use Supported MCP Supported Tool search Supported Snapshots Snapshots let you lock in a specific version of the model so that performance and behavior remain consistent. Below is a list of all available snapshots and aliases for GPT-6 Astra. gpt-6-astra gpt-6-astra gpt-6-astra Rate limits Rate limits ensure fair and reliable access to the API by placing specific caps on requests, tokens, audio duration, or other usage within a given time period. Your usage tier determines how high these limits are set and automatically increases as you send more requests and spend more on the API. | Tier | RPM | TPM | Batch queue limit | | --- | --- | --- | --- | | Free | Not supported | | | | Tier 1 | 500 | 500,000 | 1,500,000 | | Tier 2 | 5,000 | 1,000,000 | 3,000,000 | | Tier 3 | 5,000 | 2,000,000 | 100,000,000 | | Tier 4 | 10,000 | 4,000,000 | 200,000,000 | | Tier 5 | 15,000 | 40,000,000 | 15,000,000,000 | <title>GPT-5.6 Sol Model | OpenAI API</title> https://developers.openai.com/api/docs/models/gpt-5.6-sol GPT-5.6 Sol Model | OpenAI API Fast Price $4•$20 Output Text GPT-5.6 Sol is a flagship model in the GPT-5.6 family. It roughly corresponds to the unsuffixed model tier used in earlier GPT-5 families. The `gpt-5.6` alias routes requests to GPT-5.6 Sol. Reasoning.effort supports: none, low, medium (default), high, xhigh, and max. 1,050,000 context window 128,000 max output tokens Feb 16, 2026 knowledge cutoff Reasoning token support Pricing Pricing is based on the number of tokens used, or other metrics based on the model type. For tool-specific models, like search and computer use, there’s a fee per tool call. See details in the pricing page. Text tokens Per 1M tokens Input $4.00 Cached input $0.40 Output $20.00 Quick comparison Input Cached input Output GPT-5.5 $5.00 GPT-5.6 Sol $4.00 GPT-5.4 $2.50 GPT-5.6 Sol costs $4 per million input tokens and $20 per million output tokens, a 20% reduction in input pricing and a 33% reduction in output pricing. GPT-5.6 Sol’s promotional pricing is available at least through November 21, 2026. Prompts with >272K input tokens are priced at 2x input and 1.5x output for the full request. Cache writes are billed at 1.25x the uncached input token rate. Modalities Text Input and output Image Input only Audio Not supported Video Not supported Endpoints Live v1/live/sessions Chat Completions v1/chat/completions Responses v1/responses Realtime v1/realtime Realtime translation v1/realtime/translations Realtime transcription v1/realtime/transcription_sessions Assistants v1/assistants Batch v1/batch Fine-tuning v1/fine-tuning Embeddings v1/embeddings Image generation v1/images/generations Videos v1/videos Image edit v1/images/edits Speech generation v1/audio/speech Transcription v1/audio/transcriptions Translation v1/audio/translations Moderation v1/moderations Completions (legacy) v1/completions Features Streaming Supported Function calling Supported Structured outputs Supported Fine-tuning Not supported Tools Tools supported by this model when using the Responses API. Web search Supported File search Supported Image generation Supported Code interpreter Supported Hosted shell Supported Apply patch Supported Skills Supported Computer use Supported MCP Supported Tool search Supported Snapshots Snapshots let you lock in a specific version of the model so that performance and behavior remain consistent. Below is a list of all available snapshots and aliases for GPT-5.6 Sol. gpt-5.6-sol gpt-5.6-sol gpt-5.6-sol Rate limits Rate limits ensure fair and reliable access to the API by placing specific caps on requests, tokens, audio duration, or other usage within a given time period. Your usage tier determines how high these limits are set and automatically increases as you send more requests and spend more on the API. | Tier | RPM | TPM | Batch queue limit | | --- | --- | --- | --- | | Free | Not supported | | | | Tier 1 | 500 | 500,000 | 1,500,000 | | Tier 2 | 5,000 | 1,000,000 | 3,000,000 | | Tier 3 | 5,000 | 2,000,000 | 100,000,000 | | Tier 4 | 10,000 | 4,000,000 | 200,000,000 | | Tier 5 | 15,000 | 40,000,000 | 15,000,000,000 | <title>GPT-5.6 Terra Model | OpenAI API</title> https://developers.openai.com/api/docs/models/gpt-5.6-terra GPT-5.6 Terra Model | OpenAI API Fast Price $2•$12 Input Output Text GPT-5.6 Terra is designed for workloads that balance intelligence and cost. It roughly corresponds to the mini model tier used in earlier GPT-5 families. Reasoning.effort supports: none, low, medium (default), high, xhigh, and max. 1,050,000 context window 128,000 max output tokens Feb 16, 2026 knowledge cutoff Reasoning token support Pricing Pricing is based on the number of tokens used, or other metrics based on the model type. For tool-specific models, like search and computer use, there’s a fee per tool call. See details in the pricing page. Text tokens Per 1M tokens Input $2.00 Cached input $0.20 Output $12.00 Quick comparison Input Cached input Output GPT-5.6 Sol $4.00 GPT-5.6 Terra $2.00 GPT-5.4 Mini $0.75 Prompts with >272K input tokens are priced at 2x input and 1.5x output for the full request. Cache writes are billed at 1.25x the uncached input token rate. Modalities Text Input and output Image Input only Audio Not supported Video Not supported Endpoints Chat Completions v1/chat/completions Responses v1/responses Realtime v1/realtime Realtime translation v1/realtime/translations Realtime transcription v1/realtime/transcription_sessions Assistants v1/assistants Batch v1/batch Fine-tuning v1/fine-tuning Embeddings v1/embeddings Image generation v1/images/generations Videos v1/videos Image edit v1/images/edits Speech generation v1/audio/speech Transcription v1/audio/transcriptions Translation v1/audio/translations Moderation v1/moderations Completions (legacy) v1/completions Features Streaming Supported Function calling Supported Structured outputs Supported Fine-tuning Not supported Tools Tools supported by this model when using the Responses API. Web search Supported File search Supported Image generation Supported Code interpreter Supported Hosted shell Supported Apply patch Supported Skills Supported Computer use Supported MCP Supported Tool search Supported Snapshots Snapshots let you lock in a specific version of the model so that performance and behavior remain consistent. Below is a list of all available snapshots and aliases for GPT-5.6 Terra. gpt-5.6-terra gpt-5.6-terra gpt-5.6-terra Rate limits Rate limits ensure fair and reliable access to the API by placing specific caps on requests, tokens, audio duration, or other usage within a given time period. Your usage tier determines how high these limits are set and automatically increases as you send more requests and spend more on the API. | Tier | RPM | TPM | Batch queue limit | | --- | --- | --- | --- | | Free | Not supported | | | | Tier 1 | 500 | 500,000 | 1,500,000 | | Tier 2 | 5,000 | 1,000,000 | 3,000,000 | | Tier 3 | 5,000 | 2,000,000 | 100,000,000 | | Tier 4 | 10,000 | 4,000,000 | 200,000,000 | | Tier 5 | 15,000 | 40,000,000 | 15,000,000,000 |

Citations:


🏁 Script executed:

sed -n '25,75p' src/main/codex-usage/types.ts; sed -n '105,175p' src/main/codex-usage/codex-usage-record-parser.ts; rg -n -A35 -B8 "mergeDailyAggregates|inputTiers|272_000|LONG_CONTEXT_THRESHOLD" src/main/codex-usage --glob '*.ts'; sed -n '350,495p' src/main/codex-usage/store-model-pricing.test.ts

Repository: stablyai/orca

Length of output: 31677


🌐 Web query:

site:developers.openai.com/api/docs/pricing "272K" "cached input" full request GPT-5.6 GPT-6

💡 Result:

<source_evidence>

<title>Pricing | OpenAI API</title> https://developers.openai.com/api/docs/pricing | | Short context | | | | Long context | | | | | --- | --- | --- | --- | --- | --- | --- | --- | --- | | Model | Input | Cached input | Cache writes | Output | Input | Cached input | Cache writes | Output | | gpt-6-astra | $10.00 | $1.00 | $12.50 | $50.00 | $20.00 | $2.00 | $25.00 | $75.00 | | gpt-5.6-sol | $4.00 | $0.40 | $5.00 | $20.00 | $8.00 | $0.80 | $10.00 | $30.00 | | gpt-5.6-terra | $2.00 | $0.20 | $2.50 | $12.00 | $4.00 | $0.40 | $5.00 | $18.00 | | gpt-5.6-luna | $0.20 | $0.02 | $0.25 | $1.20 | $0.40 | $0.04 | $0.50 | $1.80 | ... | | Short context | | | | Long context | | | | | --- | --- | --- | --- | --- | --- | --- | --- | --- | | Model | Input | Cached input | Cache writes | Output | Input | Cached input | Cache writes | Output | | gpt-6-astra | $5.00 | $0.50 | $6.25 | $25.00 | $10.00 | $1.00 | $12.50 | $37.50 | | gpt-5.6-sol | $2.00 | $0.20 | $2.50 | $10.00 | $4.00 | $0.40 | $5.00 | $15.00 | | gpt-5.6-terra | $1.00 | $0.10 | $1.25 | $6.00 | $2.00 | $0.20 | $2.50 | $9.00 | | gpt-5.6-luna | $0.10 | $0.01 | $0.125 | $0.60 | $0.20 | $0.02 | $0.25 | $0.90 | ... | | Short context ... | Long context | | | | ... | --- | --- | --- | --- ... | Model | Input | Cached input | Cache writes | Output | Input | Cached input | Cache writes | Output | | gpt-6-astra | $5.00 | $0.50 | $6.25 | $25.00 | $10 ... 00 | $1.00 | $12.50 | $37.50 | | ... | $2.00 | $0.20 | $2.50 | $10.00 | $4.00 | $0.40 | $5.00 | $15.00 | | gpt- ... .6-terra | $1.00 | $0.10 | $1.25 | $6.00 | $2.00 | $0.20 | $2.50 | $ ... | | ... pt-5. ... -luna ... $0.10 | $0.01 | ... 0.12 ... 0 | $ ... | $0.02 | $ ... .25 | $0.90 | ... | | Short context | | | | Long context | | | | | --- | --- | --- | --- | --- | --- | --- | --- | --- | | Model | Input | Cached input | Cache writes | Output | Input | Cached input | Cache writes | Output | | gpt-6-astra | $20.00 | $2.00 | $25.00 | $100.00 | $40.00 | $4.00 | $50.00 | $150.00 | | gpt-5.6-sol | $8.00 | $0.80 | $10.00 | $40.00 | $16.00 | $1.60 | $20.00 | $60.00 | | gpt-5.6-terra | $4.00 | $0.40 | $5.00 | $24.00 | $8.00 | $0.80 | $10.00 | $36.00 | | gpt-5.6-luna | $0.40 | $0.04 | $0.50 | $2.40 | $0.80 | $0.08 | $1.00 | $3.60 | ... Fast mode is unavailable for GPT-6 Astra with EU data residency. Use Standard processing for those requests. See Fast mode compatibility. Regional processing (data residency) endpoints are charged a 10% uplift for models released on or after March 5, 2026, that are eligible for data residency. See our Your data guide for supported regions and processing details. ... | | Short context | | | | Long context | | | | | --- | --- | --- | --- | --- | --- | --- | --- | --- | | Model | Input | Cached input | Cache writes | Output | Input | Cached input | Cache writes | Output | | gpt-5.6-sol | $4.00 | $0.40 | $5.00 | $20.00 | $8.00 | $0.80 | $10.00 | $30.00 | | gpt-5.6-cyber | $12.50 | $1.25 | $15.625 | $75.00 | - | - | - | - | ... | Details | Pricing | | --- | --- | --- | | Web search | Web search (all models) | $10.00 / 1 ... calls + Search content tokens billed at model rates. | | | Image Web search (all models) | $10.00 / 1k calls + Search content tokens billed at model rates. | | | Web search preview (reasoning models, including `gpt-5`, `o-series`) | $10.00 / 1k calls + Search content tokens billed at model rates. | | | Web search preview (non-reasoning models) | $25.00 / 1k calls + Search content tokens are free. | ... 1 GB is 2^30 bytes. Web search content tokens are tokens retrieved from the search ... and fed to the model alongside ... prompt to generate an answer. For `gpt-4o-mini` and `gpt-4.1 ... mini` with the non-preview web search ... , search content tokens are billed ... 8,00 ... input tokens per call. File search ... call pricing applies to the Responses ... only. Container ... Code Interpreter. ... container sessions will ... billed by the minute, with a ... per session. Responses API, Chat Completions API, Realtime API, Batch ... priced separately. Tokens ... s input and output rates

Citations:


Apply the 272K rule per request, before aggregation.

OpenAI’s GPT-5.6 model pages state that prompts above 272K input tokens use long-context rates for the full request. The pricing table lists separate long-context rates for input, cached input, and output. estimateCostUsd instead applies the threshold separately to aggregate uncached input, cached input, and output. A 300K-input request split into 150K cached and 150K uncached tokens, with 100K output tokens, therefore receives only short-context rates because each bucket is below 272K.

Daily breakdowns retain summed token counts, not request input sizes. Extend the usage data to retain request-level input sizes, calculate each request’s cost before aggregation, and update the fixtures to distinguish one long request from multiple short requests. The 2M-input fixture’s $34.8832 is the current aggregate-tier result; $38.80 assumes those totals are one request, but GPT-5.6’s documented 1.05M context window rules that out.

@Jinwoo-H
Jinwoo-H merged commit e16d9ca into main Sep 22, 2026
55 of 57 checks passed
zyh94946 pushed a commit to zyh94946/orca that referenced this pull request Sep 24, 2026
… GPT-5.6 rates (stablyai#22350)

* fix(usage): price GPT-6 Sol/Luna, Opus 5.5 and Fable 5.1, and correct GPT-5.6 rates

gpt-6-sol and gpt-6-luna had no pricing entry, so their tokens were left
out of the Codex cost total. claude-opus-5-5 and claude-fable-5-1 matched
their major's pattern and were billed at Opus 5 ($5/$25) and Fable 5 ($1
cache read) rates. The GPT-5.6 Sol/Terra/Luna rates no longer matched
OpenAI's published pricing (Luna was 5x high).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

* fix(usage): price gpt-5.2-pro, accept (max)/(ultra) tiers, tighten point-release matching

gpt-5.2-pro matched the gpt-5.2 prefix and billed at $1.75/$14 instead of
its $21/$168. Codex's `max` and `ultra` reasoning tiers in parenthesized
form left the model unpriced. The new fable-5-1/opus-5-5 patterns also
accepted a trailing letter, so `claude-fable-5-1m` read as Fable 5.1.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
(cherry picked from commit e16d9ca)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant