Repository navigation
chore(prices): sync OpenAI prices: 3 models - #42557
Merged
Merged
Conversation
berriai-litellm-provider-info-sync
Bot
requested review from
kerry-berri,
mateo-berri and
ryan-crabbe-berri
as code owners
September 22, 2026 20:00
|
|
Contributor
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
gpt-5-2025-08-07: cache_read_input_token_cost_batches gpt-5-mini-2025-08-07: cache_read_input_token_cost_batches gpt-5-nano-2025-08-07: cache_read_input_token_cost_batches
berriai-litellm-provider-info-sync
Bot
force-pushed
the
litellm-providers/price-sync-openai
branch
from
September 22, 2026 20:31
cb8d239 to
af4efa4
Compare
3 of 6 tasks
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.
TLDR
Problem this solves:
How it solves it:
User Flow
This does not apply to an automated price sync; the only change is catalog pricing data
Relevant issues
Affected release
Linear ticket
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
uv run pytest tests/test_litellm/<your_test_file>.py -v. Leave the suites (make test-unit-*,make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or more@greptileaito re-request a review after pushing changes)Delays in PR merge?
If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review).
Screenshots / Proof of Fix
This does not apply to an automated price sync; one of the three models was verified through LiteLLM with a /v1/chat/completions call before the values were applied
Type
Refactoring
Caveats (if any)
Medium
Low
QA runbook
This does not apply; no tests or e2e files are touched
Final Attestation
Sync report
Updates 3 models, each read from its provider's own published prices.
OpenAI
Updates 3 models from the provider's pricing page (page
3046f29bd4b5).Verified through LiteLLM before being added: 1 via /v1/chat/completions.
Changes
gpt-5-2025-08-07: cache_read_input_token_cost_batches $0.0625/1Mgpt-5-mini-2025-08-07: cache_read_input_token_cost_batches $0.0125/1Mgpt-5-nano-2025-08-07: cache_read_input_token_cost_batches $0.0025/1MSkipped by the parser (6)
These rows price models litellm has keys for, but the parser could not read them. A human needs to check them against the page.
gpt-6-astra: long-context prices present but the row states no thresholdgpt-6-sol: long-context prices present but the row states no thresholdgpt-6-luna: long-context prices present but the row states no thresholdgpt-5.6-sol: long-context prices present but the row states no thresholdgpt-5.6-terra: long-context prices present but the row states no thresholdgpt-5.6-luna: long-context prices present but the row states no thresholdNo litellm key or field (4)
Rows the page prices that litellm has no key or field for. Nothing to apply; listed so the omission is deliberate, not missed.
sora-2-pro 1024p: size variant has no litellm key stated on the pagesora-2-pro 1080p: size variant has no litellm key stated on the pageft:o4-mini-2025-04-16: data-sharing discount has no litellm keyVideos API: no model id in shutdown row | 2026-09-24 | Videos API | --- |Opened by the litellm-providers price sync. Every price is read from the provider's own published source and gated before it is applied; the audit trail for each value is in the portal's sync history.
Note
Low Risk
Pricing-catalog JSON only; no runtime logic changes, but incorrect values would affect batch cached-input cost reporting for these three models.
Overview
Adds
cache_read_input_token_cost_batchesto the OpenAIgpt-5-2025-08-07,gpt-5-mini-2025-08-07, andgpt-5-nano-2025-08-07entries inmodel_prices_and_context_window.jsonand the backup copy underlitellm/.Each value is half the model’s standard cached-read input rate, matching the existing batch input pricing pattern. This fills a gap so LiteLLM can price batch requests that use prompt cache reads for those GPT-5 snapshots.
Reviewed by Cursor Bugbot for commit af4efa4. Bugbot is set up for automated code reviews on this repo. Configure here.