Update model costs - #50
Merged
Merged
Conversation
Anthropic and OpenAI costs checked against current provider docs and found unchanged. Gemini 3.1 Pro, 3 Flash, 3.1 Flash Lite, and 3.5 Flash were missing cached_input rates; added them at the standard ~10% of input-token price used across the other Gemini/OpenAI entries: - gemini-3.1-pro: cached input $0.20/1M (was unset) - gemini-3-flash: cached input $0.05/1M (was unset) - gemini-3.1-flash-lite: cached input $0.025/1M (was unset) - gemini-3.5-flash: cached input $0.15/1M (was unset) Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KKWe2YaUg9Gckw8Upgyby6
OpenAI released the GPT-5.6 family (Sol, Terra, Luna) on July 9, 2026. Pricing per 1M tokens, cross-checked across independent sources: - gpt-5.6 (alias -> gpt-5.6-sol): $5.00 / $0.50 cached / $30.00 - gpt-5.6-sol: $5.00 / $0.50 cached / $30.00 (matches gpt-5.5) - gpt-5.6-terra: $2.50 / $0.25 cached / $15.00 (matches gpt-5.4) - gpt-5.6-luna: $1.00 / $0.10 cached / $6.00 (new lower tier) Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KKWe2YaUg9Gckw8Upgyby6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Checked the model pricing table in
src/model_prices.rsagainst current provider documentation.Anthropic (Claude): no changes — all listed prices match current published rates.
OpenAI: added the new GPT-5.6 family (Sol, Terra, Luna), released July 9, 2026:
gpt-5.6(bare alias, routes to Sol): $5.00 input / $0.50 cached / $30.00 output per 1M tokensgpt-5.6-sol: $5.00 / $0.50 cached / $30.00 (same price point as gpt-5.5)gpt-5.6-terra: $2.50 / $0.25 cached / $15.00 (same price point as gpt-5.4)gpt-5.6-luna: $1.00 / $0.10 cached / $6.00 (new lower-cost tier)All other OpenAI prices match current published rates.
Google Gemini: four Gemini 3.x models were missing
cached_inputpricing (previouslyNone). Added them at the standard ~10% of input-token rate (matching the pattern already used for the other Gemini entries in this file):gemini-3.1-pro: cached input $0.20/1M tokensgemini-3-flash: cached input $0.05/1M tokensgemini-3.1-flash-lite: cached input $0.025/1M tokensgemini-3.5-flash: cached input $0.15/1M tokensSourcing note
Direct fetches of
platform.openai.com/docs/pricing,openai.com, andai.google.dev/gemini-api/docs/pricingwere blocked by this environment's network policy, so pricing was cross-checked via search and secondary sources (multiple independent trackers/aggregators that agreed on the same GPT-5.6 figures, plus Google Cloud's Gemini Enterprise Agent Platform pricing page for the Gemini cached-input rates). The GPT-5.6 pricing/model-ID pattern was also confirmed by the user directly.A few things surfaced during research that are not included in this PR because they couldn't be confirmed with high confidence:
gpt-5.2-propricing — the file's existing $21/$168 fits the established multiplier pattern fromgpt-5-probetter than an unconfirmed $10.50/$84 figure found in one low-quality source, so it was left unchanged.gpt-4o-audio-preview,gpt-4o-realtime-preview,gpt-4o-mini-audio-preview,gpt-4o-mini-realtime-preview,gpt-4.5-preview) remain in the table for historical cost calculations; pricing for these is unchanged since they're no longer callable.Test plan
cargo test model_pricespasses (4/4 tests)gpt-5.6,gpt-5.6-sol,gpt-5.6-terra,gpt-5.6-lunato their correct distinct rowsCo-Authored-By: Claude Sonnet 5 noreply@anthropic.com