Repository navigation
feat: add GPT-5.6 Sol, Terra, Luna model pricing - #31482
krrish-berri-2 wants to merge 1 commit into
Conversation
Add model pricing and context window data for OpenAI GPT-5.6 family: - gpt-5.6-sol: $5.00/$30.00 per 1M tokens (flagship) - gpt-5.6-terra: $2.50/$15.00 per 1M tokens (balanced) - gpt-5.6-luna: $1.00/$6.00 per 1M tokens (fast/affordable) Includes Azure and Azure AI variants (9 entries total). New cache write pricing at 1.25x uncached input rate. Cache reads remain at 90% discount. Source: https://openai.com/index/previewing-gpt-5-6-sol/
There was a problem hiding this comment.
Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.
|
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 74fd20d97e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| "max_input_tokens": 128000, | ||
| "max_output_tokens": 272000, | ||
| "max_tokens": 272000, |
There was a problem hiding this comment.
Restore gpt-5-pro's token limits
For gpt-5-pro, this swaps the previous 400k input / 128k output limits to 128k input / 272k output. In deployments that enable router pre-call checks, litellm/router.py rejects a candidate when input_tokens > model_info["max_input_tokens"], so valid gpt-5-pro requests between 128k and 400k input tokens will now be filtered out before reaching OpenAI, while model info advertises an output limit the previous entry did not support.
Useful? React with 👍 / 👎.
| "mistral/mistral-medium-latest": { | ||
| "input_cost_per_token": 4e-07, | ||
| "litellm_provider": "mistral", | ||
| "max_input_tokens": 131072, |
There was a problem hiding this comment.
Restore current Mistral medium latest pricing
This changes mistral/mistral-medium-latest back to the old 2508 metadata instead of the 2604/3.5 metadata that was present in the parent commit. Calls routed through mistral/mistral-medium-latest will now be costed at 0.4/2.0 supports_reasoning capability is also lost, so spend tracking and capability checks are wrong for the latest alias.
Useful? React with 👍 / 👎.
| "supports_audio_input": true, | ||
| "supports_audio_output": true, | ||
| "gemini_native_audio": true | ||
| "supports_audio_output": true |
There was a problem hiding this comment.
Keep the Gemini native-audio markers
The realtime Gemini transformer reads gemini_native_audio and gemini_audio_only_live from model_cost to coerce unsupported TEXT response modalities to AUDIO and to drop speechConfig for native-audio models. After these flags are removed, sessions for gemini-2.5-flash-native-audio-* or gemini-3.1-flash-live-preview that include the usual text modality or speech config will no longer be normalized before the Gemini Live setup call, which can make those realtime sessions fail.
Useful? React with 👍 / 👎.
| "supports_output_config": true, | ||
| "supports_max_reasoning_effort": true, | ||
| "supports_speed": true | ||
| "supports_max_reasoning_effort": true |
There was a problem hiding this comment.
Preserve speed support for direct Anthropic Opus models
These Opus entries still have a provider_specific_entry.fast price multiplier, but removing supports_speed makes AnthropicConfig._model_supports_speed_param return false because it checks only that model-cost capability. Direct Anthropic calls to claude-opus-4-6, claude-opus-4-7, or claude-opus-4-8 with the speed parameter will now raise UnsupportedParamsError unless drop_params is enabled, even though the entries still describe fast-mode pricing.
Useful? React with 👍 / 👎.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
| ], | ||
| "source": "https://mistral.ai/pricing#api-pricing" | ||
| }, | ||
| "mistral/mistral-ocr-4-0": { |
There was a problem hiding this comment.
Medium: OCR budget tracking bypass
Removing this OCR pricing entry means a user can call mistral/mistral-ocr-4-0 on deployments that expose it and have the proxy record $0 spend: ocr_cost() catches missing model metadata, leaves ocr_cost_per_page unset, and returns 0.0 when pages_processed is present. Keep the retired model IDs as priced aliases, or make missing OCR pricing fail closed instead of returning zero; the same issue applies to the removed mistral/mistral-ocr-2512 entry below.
PR overviewThis pull request updates the model pricing and context window data to add pricing for GPT-5.6 Sol, Terra, and Luna models. It also changes existing pricing metadata entries in the shared model pricing JSON file. There is one open security concern: removing OCR pricing metadata for retired Mistral OCR model IDs can cause calls to those exposed models to be recorded as zero-cost. That creates a budget or spend-tracking bypass for deployments that still allow those model identifiers. No issues have been fixed yet, so the PR still needs a pricing alias or fail-closed handling before the posture is clean. Open issues (1)
Fixed/addressed: 0 · PR risk: 5/10 |
|
Superseded by rolling registry audit #37902, which reverified and absorbed the provider-documented metadata changes at field level |
Summary
Add model pricing and context window data for the new OpenAI GPT-5.6 family announced on June 26, 2026.
Models Added (9 entries)
Key Details
Source
Notes