fix gpt-5.4 pricing - #24748
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Greptile SummaryThis PR corrects pricing data for several Key changes verified against OpenAI's priority pricing table:
No tests were added, and the pre-submission checklist item "Adding at least 1 test is a hard requirement" is unchecked. For a data-only JSON pricing fix this is a minor process gap, but the correctness of the values is well-supported by the referenced official pricing page. Confidence Score: 5/5Safe to merge — all changed pricing values are verified correct against the official OpenAI priority pricing table. All numeric corrections are cross-checked against the official OpenAI pricing docs: gpt-5.4 priority output $30/1M, gpt-5.4-mini priority tier fully added at correct rates, gpt-5.4-pro priority tier removal is justified. The only gap is a missing test, which is a process concern and does not affect correctness for a data-only JSON change. No files require special attention — this is a single-file data fix with verified correct values.
|
| Filename | Overview |
|---|---|
| model_prices_and_context_window.json | Pricing corrections for gpt-5.4, gpt-5.4-2026-03-05, gpt-5.4-mini, gpt-5.4-pro, and gpt-5.4-pro-2026-03-05 — all changed values are verified correct against the official OpenAI pricing docs. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[API Request with service_tier] --> B{Tier?}
B -- standard --> C[Standard pricing<br/>input / cached / output]
B -- flex --> D[Flex pricing ~50%<br/>input_flex / cached_flex / output_flex]
B -- batch --> E[Batch pricing ~50%<br/>input_batches / cached_batches / output_batches]
B -- priority --> F{Model supports<br/>priority?}
F -- Yes --> G[Priority pricing 2x<br/>input_priority / cached_priority / output_priority]
F -- No --> H[No priority pricing<br/>fields defined]
subgraph "After this PR"
G1["gpt-5.4: output_priority $30.00 was $22.50"]
G2["gpt-5.4-mini: full priority tier added"]
H1["gpt-5.4-pro: priority tier removed - not in OpenAI table"]
end
G --> G1
G --> G2
H --> H1
Reviews (1): Last reviewed commit: "fix gpt-5.4 pricing" | Re-trigger Greptile
|
@Sameerlite we need this |
Relevant issues
gpt-5.4 & gpt-5.4-2026-03-05
cache_read_input_token_cost_above_272k_tokens_priority, output_cost_per_token_above_272k_tokens_priority —
OpenAI does not publish >272K pricing for the priority tier
gpt-5.4-mini
gpt-5.4-pro & gpt-5.4-pro-2026-03-05
ref: https://developers.openai.com/api/docs/pricing?latest-pricing=priority
cc @Sameerlite please take over this PR
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
tests/test_litellm/directory, Adding at least 1 test is a hard requirement - see detailsmake test-unit@greptileaiand received a Confidence Score of at least 4/5 before requesting a maintainer reviewDelays in PR merge?
If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review).
CI (LiteLLM team)
Branch creation CI run
Link:
CI run for the last commit
Link:
Merge / cherry-pick CI run
Links:
Type
🆕 New Feature
🐛 Bug Fix
🧹 Refactoring
📖 Documentation
🚄 Infrastructure
✅ Test
Changes