Skip to content

feat: add GPT-5.6 Sol, Terra, Luna model pricing - #31482

Closed
krrish-berri-2 wants to merge 1 commit into
mainfrom
feat/add-gpt-5.6-sol-terra-luna-model-pricing
Closed

krrish-berri-2 wants to merge 1 commit into
mainfrom
feat/add-gpt-5.6-sol-terra-luna-model-pricing

Conversation

@krrish-berri-2

Copy link
Copy Markdown
Contributor

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)

Model ID Provider Input/1M Output/1M Cache Write Cache Read
gpt-5.6-sol openai $5.00 $30.00 $6.25 (1.25x) $0.50 (90% off)
gpt-5.6-terra openai $2.50 $15.00 $3.125 (1.25x) $0.25 (90% off)
gpt-5.6-luna openai $1.00 $6.00 $1.25 (1.25x) $0.10 (90% off)
azure/gpt-5.6-sol azure $5.00 $30.00 $6.25 $0.50
azure/gpt-5.6-terra azure $2.50 $15.00 $3.125 $0.25
azure/gpt-5.6-luna azure $1.00 $6.00 $1.25 $0.10
azure_ai/gpt-5.6-sol azure_ai $5.00 $30.00 $6.25 $0.50
azure_ai/gpt-5.6-terra azure_ai $2.50 $15.00 $3.125 $0.25
azure_ai/gpt-5.6-luna azure_ai $1.00 $6.00 $1.25 $0.10

Key Details

  • Sol = flagship tier (replaces GPT-5.5 price point)
  • Terra = balanced tier (competitive with GPT-5.5 at 2x cheaper)
  • Luna = fast/affordable tier
  • New cache write pricing: 1.25x uncached input rate (uses field)
  • Cache reads: 90% discount (standard)
  • Long context (>272K): 2x input, 1.5x output for Sol and Terra
  • Context: 1,050,000 input / 128,000 output tokens
  • Supports: reasoning, vision, function calling, PDF input, web search, prompt caching, service tier

Source

Notes

  • GPT-5.6 is currently in limited preview for trusted partners. Broad GA expected in coming weeks.
  • is a new field for OpenAI models (previously only used by Anthropic).
  • Context window sizes follow GPT-5.5 pattern; will update if OpenAI publishes different specs at GA.

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/

@greptile-apps greptile-apps 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.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@codspeed

codspeed Bot commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 16 untouched benchmarks


Comparing feat/add-gpt-5.6-sol-terra-luna-model-pricing (74fd20d) with main (a311f11)

Open in CodSpeed

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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

Comment on lines +22571 to +22573
"max_input_tokens": 128000,
"max_output_tokens": 272000,
"max_tokens": 272000,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge 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 👍 / 👎.

Comment on lines +25776 to 25779
"mistral/mistral-medium-latest": {
"input_cost_per_token": 4e-07,
"litellm_provider": "mistral",
"max_input_tokens": 131072,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge 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 $/M tokens and a 131k context instead of 1.5/7.5 $/M tokens and 262k, and the supports_reasoning capability is also lost, so spend tracking and capability checks are wrong for the latest alias.

Useful? React with 👍 / 👎.

Comment on lines 42335 to +42336
"supports_audio_input": true,
"supports_audio_output": true,
"gemini_native_audio": true
"supports_audio_output": true

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge 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 👍 / 👎.

Comment on lines 10445 to +10446
"supports_output_config": true,
"supports_max_reasoning_effort": true,
"supports_speed": true
"supports_max_reasoning_effort": true

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge 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

codecov Bot commented Jun 26, 2026

Copy link
Copy Markdown

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": {

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.

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.

@veria-ai

veria-ai Bot commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

PR overview

This 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

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Superseded by rolling registry audit #37902, which reverified and absorbed the provider-documented metadata changes at field level

@devin-ai-integration
devin-ai-integration Bot deleted the feat/add-gpt-5.6-sol-terra-luna-model-pricing branch September 10, 2026 03:41
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.

2 participants