Repository navigation
feat(pricing): add gemini-3-pro-image and gemini-3.1-flash-image GA model pricing - #30022
Conversation
Fixes #29794. Adds bare, gemini/, and vertex_ai/ entries copied from preview models so proxy cost tracking works for GA model names. Co-authored-by: Cursor <cursoragent@cursor.com>
Greptile SummaryThis PR adds GA pricing entries for
Confidence Score: 4/5Safe to merge; the change is limited to adding 6 new pricing entries that are verbatim copies of their well-established -preview counterparts. All 6 new entries mirror their preview counterparts exactly in pricing values, token limits, and capability flags — the only intentional differences are updated source URL anchors. The structural omissions (missing batch cost fields and supports_service_tier on the flash-image variants) are directly inherited from the preview entries and pre-date this PR. JSON validity is confirmed. The single file changed has no logic, only declarative data, so the blast radius is limited to cost tracking for the two new GA model names. No files require special attention beyond a spot-check of the token/image pricing values against Google's current published GA rates.
|
| Filename | Overview |
|---|---|
| model_prices_and_context_window.json | Adds 6 GA pricing entries for gemini-3-pro-image and gemini-3.1-flash-image across bare, gemini/, and vertex_ai/ prefixes; all entries are structurally identical to their -preview counterparts (cost values, token limits, capability flags) with only source URL anchors updated where appropriate. |
Reviews (1): Last reviewed commit: "Add GA pricing for gemini-3-pro-image an..." | Re-trigger Greptile
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Relevant issues
Fixes #29794
Request: migrate image editing to
gemini-3.1-flash-imageandgemini-3-pro-imagenow that both models are GA. LiteLLM's pricing JSON only had the-previewvariants, so proxy cost tracking returned zero (or required manual model definitions) when using the GA model names.Linear ticket
Resolves LIT-3681
Summary
Adds GA pricing entries for two Gemini image generation models to
model_prices_and_context_window.json:gemini-3-pro-imagegemini-3.1-flash-imageEach model is added under three provider prefixes (bare,
gemini/,vertex_ai/), for 6 new entries total. Values are copied from the existing-previewentries, which already match Google's published GA rates.Models added
gemini-3-pro-imagegemini-3-pro-image-previewgemini-3.1-flash-imagegemini-3.1-flash-image-previewgemini/gemini-3-pro-imagegemini/gemini-3-pro-image-previewgemini/gemini-3.1-flash-imagegemini/gemini-3.1-flash-image-previewvertex_ai/gemini-3-pro-imagevertex_ai/gemini-3-pro-image-previewvertex_ai/gemini-3.1-flash-imagevertex_ai/gemini-3.1-flash-image-previewProvider pricing verification
Confirmed against Google AI pricing and Vertex AI pricing. Both GA models reached GA on May 28, 2026; preview versions are deprecated with shutdown scheduled for June 25, 2026 (deprecations table).
gemini-3-pro-image2e-06($2/1M)1.2e-05($12/1M)0.134(1K/2K)gemini-3.1-flash-image(vertex bare)5e-07($0.50/1M)3e-06($3/1M)0.0672(1K)gemini/gemini-3.1-flash-image2.5e-071.5e-060.045(0.5K)All cost, limit, and capability fields are identical to their
-previewcounterparts. OnlysourceURLs differ on some entries (updated to GA anchors where applicable).Note:
gemini/gemini-3.1-flash-imagetoken rates match the existing preview entry (batch-tier token rates). Per-image pricing matches GA. This is inherited from preview, not a new divergence.Type of change
Pre-Submission checklist
Please complete all items before asking a LiteLLM maintainer to review your PR
model_prices_and_context_window.jsonis changed (matches pattern from feat(pricing): add Snowflake Cortex REST API model pricing #26612 and other pricing PRs)-previewcounterparts (exceptsource)@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:
Test plan
python3 -c "import json; json.load(open('model_prices_and_context_window.json'))"— JSON parses-previewentries