Skip to content

feat(models): add Azure GPT-5.6 (sol/terra/luna) pricing and metadata - #32678

Merged
mateo-berri merged 1 commit into
litellm_internal_stagingfrom
litellm_gpt_5_6_azure
Jul 10, 2026
Merged

mateo-berri merged 1 commit into
litellm_internal_stagingfrom
litellm_gpt_5_6_azure

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Relevant issues

Follow-up to the openai GPT-5.6 rollout (#32659), adding the Azure deployments of the same family

Linear ticket

Pre-Submission checklist

  • I have added meaningful tests
  • My PR passes all CI/CD checks (e.g., lint, format, unit tests)
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • I have received a Greptile Confidence Score of at least 4/5 before requesting a maintainer review

Screenshots / Proof of Fix

GPT-5.6 is mid-rollout on OpenAI and not yet a callable Azure deployment, so a real completion 404s upstream just like on the openai PR. The honest proof is a live proxy on :4000 serving the new Azure pricing and metadata straight from the model cost map (no mocks), captured at commit 060e66c

LITELLM_LOCAL_MODEL_COST_MAP=True python litellm/proxy/proxy_cli.py \
  --config gpt56_azure_proof_config.yaml --port 4000

curl -s http://localhost:4000/v1/model/info
azure-gpt-5.6         provider=azure in=5e-06   out=3e-05   cache_read=5e-07   in_priority=1e-05   in_above272k=1e-05   max_in=1050000 reasoning=True
azure-gpt-5.6-terra   provider=azure in=2.5e-06 out=1.5e-05 cache_read=2.5e-07 in_priority=5e-06   in_above272k=5e-06   max_in=1050000 reasoning=True
azure-us-gpt-5.6-luna provider=azure in=1.1e-06 out=6.6e-06 cache_read=1.1e-07 in_priority=2.75e-06 in_above272k=2.2e-06 max_in=1050000 reasoning=True

The regional row confirms the 10% uplift (luna base 1e-06 -> us 1.1e-06) and the 2.75x regional priority multiplier flow through the gateway's cost resolution

Type

🆕 New Feature

Changes

Adds the Azure GPT-5.6 family to model_prices_and_context_window.json and the bundled litellm/model_prices_and_context_window_backup.json, mirroring the existing azure/gpt-5.5 entries in both structure and pricing derivation

Twelve entries land in total: global azure/gpt-5.6, azure/gpt-5.6-sol, azure/gpt-5.6-terra, azure/gpt-5.6-luna, plus azure/us/* and azure/eu/* regional variants for each. The bare azure/gpt-5.6 alias points at the sol tier, matching how the openai side aliases gpt-5.6 to sol

Pricing follows the same relationships the azure/gpt-5.5 rows already encode, so nothing new is invented structurally. Global deployments match the openai list price (sol $5/$30, terra $2.50/$15, luna $1/$6 per MTok in/out); priority is 2x standard, above-272k is 2x input and 1.5x output, and above-272k-priority stacks both. Regional us/eu rows carry the standard 10% uplift on the base rate with the 2.75x regional priority multiplier that gpt-5.5 uses

A note on provenance, same as the openai PR: Azure has not published a 5.6 price sheet mid-rollout, so these numbers are derived from the established gpt-5.5 Azure pattern rather than a live Azure pricing page. If Azure's posted numbers differ once the rollout completes, the values here should be reconciled against them

Tests extend tests/test_litellm/test_gpt_5_6_model_metadata.py (global and regional Azure metadata, routing, backup sync) and tests/test_litellm/litellm_core_utils/llm_cost_calc/test_llm_cost_calc_utils.py (a parametrized generic_cost_per_token case covering global and regional Azure tiers end to end)

Link to Devin session: https://app.devin.ai/sessions/93a883e6bc334fd4892564f4a2b14797
Requested by: @mateo-berri

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@mateo-berri mateo-berri self-assigned this Jul 9, 2026
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@greptile-apps

greptile-apps Bot commented Jul 9, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adds twelve Azure GPT-5.6 model entries (azure/gpt-5.6, azure/gpt-5.6-sol, azure/gpt-5.6-terra, azure/gpt-5.6-luna, plus azure/us/* and azure/eu/* regional variants) to both model_prices_and_context_window.json and the bundled backup, mirroring the structure of the existing azure/gpt-5.5 family.

  • Pricing derivation follows the same pattern as gpt-5.5: global tiers match OpenAI list prices (sol $5/$30, terra $2.50/$15, luna $1/$6 per MTok in/out), priority is 2× standard, above-272k is 2× input / 1.5× output, and regional us/eu rows carry a 10% uplift on the base rate with a 2.75× priority multiplier — all values verified correct.
  • Tests cover global metadata assertions, regional metadata assertions (pricing + provider), backup-sync, and a parametrized generic_cost_per_token case across 7 model/region combinations; all tests use LITELLM_LOCAL_MODEL_COST_MAP=True with local file reads (no real network calls).

Confidence Score: 4/5

Safe to merge — changes are isolated to the model cost map JSON files and new tests; no production logic is touched.

The pricing math across all 12 entries has been verified against the documented derivation rules (2× priority, 1.5× above-272k output, 10% regional uplift, 2.75× regional priority relative to global base). The regional test omits capability-field assertions that the global test includes, so a future copy-paste error on a regional entry could go undetected without running the cost-calc parametrize path.

tests/test_litellm/test_gpt_5_6_model_metadata.py — regional test coverage is thinner than the global test

Important Files Changed

Filename Overview
model_prices_and_context_window.json Adds 12 Azure GPT-5.6 model entries (4 global tiers + 8 regional us/eu variants). Pricing math is correct and consistent with gpt-5.5 regional pattern; regional models intentionally omit the above_272k_priority compound fields.
litellm/model_prices_and_context_window_backup.json Mirror of model_prices_and_context_window.json additions; backup sync is verified by test_gpt_5_6_backup_matches_main.
tests/test_litellm/test_gpt_5_6_model_metadata.py Adds Azure global and regional metadata tests plus extends the backup-sync check. Regional test doesn't assert supports_reasoning, max_input_tokens, or supported_endpoints, giving it less coverage than its global counterpart.
tests/test_litellm/litellm_core_utils/llm_cost_calc/test_llm_cost_calc_utils.py Adds parametrized cost-calc test covering 7 Azure GPT-5.6 model/region combinations; pattern matches existing tests in the file, no real network calls.

Comments Outside Diff (1)

  1. tests/test_litellm/test_gpt_5_6_model_metadata.py, line 120-140 (link)

    P2 Regional test missing capability assertions

    test_azure_gpt_5_6_regional_model_info only validates pricing fields and litellm_provider. The global counterpart additionally asserts supports_reasoning, max_input_tokens, max_output_tokens, and supported_endpoints. If a regional entry were accidentally missing supports_reasoning: true (or had the wrong token limits), this test wouldn't catch it, even though the regional JSON entries do carry those fields.

Reviews (1): Last reviewed commit: "feat(models): add Azure GPT-5.6 (sol/ter..." | Re-trigger Greptile

@codecov

codecov Bot commented Jul 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@codspeed

codspeed Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 31 untouched benchmarks


Comparing litellm_gpt_5_6_azure (060e66c) with litellm_internal_staging (1fa2001)

Open in CodSpeed

@mateo-berri mateo-berri 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.

LGTM; thanks!

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