Repository navigation
fix(catalog): add vertex standard pricing overrides - #1882
Closed
devin-ai-integration[bot] wants to merge 3 commits into
Closed
devin-ai-integration[bot] wants to merge 3 commits into
devin-ai-integration[bot] wants to merge 3 commits into
Conversation
Contributor
Author
|
I'll fix CI failures and address comments from users with write access that start with 'Devin'.
|
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
devin-ai-integration
Bot
force-pushed
the
devin/1795474357-vertex-standard-pricing
branch
3 times, most recently
from
November 24, 2026 19:15
fc567f8 to
dfa4a1d
Compare
> 🤖 **This text was AI-generated.** Shared catalog defaults miss Vertex pricing differences for supported Gemini and Claude models. Add verified Vertex Standard rates with the applicable endpoint, prompt-length, and date conditions. Co-authored-by: Abhijeet Prasad <abhijeet@braintrustdata.com> Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
> 🤖 **This text was AI-generated.** Matched Vertex Standard rows use full input pricing for missing cache rates. Record verified cache reads and writes and remove the Opus 5.5 multi-region long-context override with unresolved cache pricing. Co-authored-by: Abhijeet Prasad <abhijeet@braintrustdata.com> Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
> 🤖 **This text was AI-generated.** Four global Gemini Standard rows omit the cache write rate during the introductory windows. Record the documented total input-token price for cache creation so those rows have complete text cache rates. Co-authored-by: Abhijeet Prasad <abhijeet@braintrustdata.com> Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
devin-ai-integration
Bot
force-pushed
the
devin/1795474357-vertex-standard-pricing
branch
from
November 24, 2026 21:17
4862b46 to
005c9b7
Compare
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.
Summary
Add or complete 64 Google Cloud Standard text rate rows across 27 existing
vertexmodel pairs. All 68 Standard rows in the affected entries, including the four inherited introductory windows, specify text cache read and default cache write. Claude rows also specify the 5-minute and 1-hour write rates. The Opus 5.5 US/EU long-context row is omitted because its cache-read rate is unresolved.The 68 Vertex rows and the OpenRouter pricing merged in #1878 coexist on 10 shared entries. The catalog keeps the merged OpenRouter blocks and the shared top-level defaults as published on
main.Verified November 23, 2026 against the published Google Cloud tables and model eligibility. Gemini online prediction uses
generateContentorstreamGenerateContent. Claude online prediction usesrawPredictorstreamRawPredict. These rates apply to ordinary pay-as-you-go inference on the listed hosts, with no separate Standard response flag assumed. Gemini API Claude APICatalog normalization, all 174 targeted Vitest tests, and applicable pre-commit hooks passed.
Added Vertex standard rates
USD per million tokens. Each tuple lists input / output / cache read, followed by the default cache write for Gemini or the 5-minute and 1-hour cache writes for Claude. For Claude, the generic cache-write rate is the 5-minute rate.
G =
aiplatform.googleapis.com. US/EU =aiplatform.us.rep.googleapis.com/aiplatform.eu.rep.googleapis.com. Single-region labels use<region>-aiplatform.googleapis.com. Google Cloud endpoint documentationpublishers/anthropic/models/claude-opus-5-5US, ≤199,999 prompt tokens · 4.4 / 22 / 0.22 / 5.5 / 8.8
EU, ≤199,999 prompt tokens · 4.4 / 22 / 0.22 / 5.5 / 8.8
publishers/anthropic/models/claude-haiku-5-5G, ≥100,001 prompt tokens · 0.5 / 2.5 / 0.05 / 0.625 / 1
US/EU, ≤99,999 prompt tokens · 0.11 / 0.55 / 0.011 / 0.1375 / 0.22
US/EU, ≥100,001 prompt tokens · 0.55 / 2.75 / 0.055 / 0.6875 / 1.1
publishers/anthropic/models/claude-sonnet-5-5US/EU · 2.2 / 11 / 0.11 / 2.75 / 4.4
publishers/anthropic/models/claude-fable-5-2US/EU · 8.8 / 44 / 0.22 / 11 / 17.6
publishers/anthropic/models/claude-fable-5-1US/EU · 11 / 55 / 0.275 / 13.75 / 22
publishers/anthropic/models/claude-fable-5EU · 11 / 55 / 1.1 / 13.75 / 22
publishers/anthropic/models/claude-opus-5US/EU · 5.5 / 27.5 / 0.55 / 6.875 / 11
publishers/anthropic/models/claude-opus-4-8US/EU · 5.5 / 27.5 / 0.55 / 6.875 / 11
publishers/anthropic/models/claude-opus-4-7US/EU · 5.5 / 27.5 / 0.55 / 6.875 / 11
publishers/anthropic/models/claude-opus-4-6us-east5/europe-west1/asia-southeast1 · 5.5 / 27.5 / 0.55 / 6.875 / 11
publishers/anthropic/models/claude-sonnet-5US/EU · 2.2 / 11 / 0.22 / 2.75 / 4.4
publishers/anthropic/models/claude-sonnet-4-6us-east5, ≥200,001 prompt tokens · 3.3 / 16.5 / 0.33 / 4.13 / 6.6
europe-west1 · 3.3 / 16.5 / 0.33 / 4.125 / 6.6
asia-southeast1, ≤199,999 prompt tokens · 3.3 / 16.5 / 0.33 / 4.13 / 6.6
asia-southeast1, ≥200,001 prompt tokens · 3.3 / 16.5 / 0.33 / 4.13 / 6.6
publishers/anthropic/models/claude-haiku-4-5us-east5/europe-west1 · 1.1 / 5.5 / 0.11 / 1.375 / 2.2
gemini-3.7-flashUS/EU, from 2027-01-01, through 2027-01-27 · 1.65 / 8.25 / 0.165 / 1.65
gemini-3.8-flashUS/EU, from 2027-01-01 · 1.65 / 8.25 / 0.165 / 1.65
gemini-4-argonUS/EU, from 2026-12-01 · 4.4 / 22 / 0.22 / 4.4
gemini-4-carbonUS/EU, from 2026-12-01 · 4.4 / 22 / 0.22 / 4.4
gemini-4-hydrogenUS/EU, through 2027-01-11 · 1.65 / 8.25 / 0.0825 / 1.65
G, from 2027-01-12 · 1.5 / 7.5 / 0.075 / 1.875
US/EU, from 2027-01-12 · 1.65 / 8.25 / 0.0825 / 2.0625
gemini-4-neonUS/EU, through 2027-01-11 · 3.3 / 16.5 / 0.165 / 3.3
G, from 2027-01-12 · 3 / 15 / 0.15 / 3.75
US/EU, from 2027-01-12 · 3.3 / 16.5 / 0.165 / 4.125
gemini-3.5-flashUS/EU, through 2026-06-30 · 1.5 / 9 / 0.15 / 1.5
US/EU, from 2026-07-01 · 1.65 / 9.9 / 0.165 / 1.65
gemini-3.5-flash-liteUS/EU · 0.33 / 2.75 / 0.033 / 0.33
gemini-3.1-flash-imageUS/EU, from 2026-08-31 · 0.55 / 3.3 / 0.055 / 0.55
gemini-3.1-flash-liteUS/EU, through 2026-06-30 · 0.25 / 1.5 / 0.025 / 0.25
US/EU, from 2026-07-01 · 0.275 / 1.65 / 0.0275 / 0.275
gemini-3.1-flash-lite-imagegemini-3.1-pro-previewall (G only), ≥200,001 prompt tokens · 4 / 18 / 0.4 / 4
gemini-3.1-pro-preview-customtoolsall (G only), ≥200,001 prompt tokens · 4 / 18 / 0.4 / 4
gemini-3-pro-imageSkipped candidates
publishers/anthropic/models/claude-sonnet-4-5gemini-3.6-flashgemini-3.1-flash-image-previewgemini-3.1-flash-lite-previewgemini-3.1-flash-lite.gemini-3-flash-previewgemini-3-pro-image-previewgemini-2.5-flashgemini-2.5-flash-imagegemini-2.5-flash-litegemini-2.5-progemini-embedding-2gemini-embedding-001Pricing and matching gaps
aiplatform.googleapis.com.gemini-3.7-flashandgemini-3.8-flashare $0.75 per million tokens through December 31, 2026.gemini-4-argonandgemini-4-carbonare $2.00 through November 30, 2026. Google charges those windows' input-token rates for cache creation without a separate write surcharge. All four rows can match today when the exact global host reaches billing. Every Claude row still specifies the 5-minute and 1-hour write rates. Gemini 3 pricing · Gemini 4 pricing · Cache creation ruleeurope-west1andasia-southeast1for Haiku 5.5 andasia-east1for Haiku 4.5. Partner model locationspublishers/anthropic/models/claude-opus-5-5— The US short-context 5-minute write uses Google's documented 1.25× rule on the $4.40 input rate. For US/EU long context, the table omits all cache prices. The general 90% cache-read discount would give $0.44, while the published Opus 5.5 short-context read uses a 95% discount and the global long-context table lists a $0.20 read without a corresponding input rate. The US/EU long-context row was dropped. Global long-context input also remains unverified. Calls at 200,000 input tokens or more use the top-level $4 input, $20 output, $0.20 cache read, and $5 generic cache write. Google 1 Google 2publishers/anthropic/models/claude-haiku-5-5— Google's header says >100K and the footnote says ≥100K. Exactly 100,000 tokens has no override until Google clarifies. Googlepublishers/anthropic/models/claude-fable-5— The US table has two input rows and no standard output row. Googlepublishers/anthropic/models/claude-sonnet-4-6— The europe-west1 table labels the $4.13 5-minute price as Batch. The Standard $4.125 rate uses Google's Claude 1.25× rule and the region's $3.30 input rate. The asia-southeast1 long-context table omits the cache read. Google's 90% read discount gives $0.33 on that row's $3.30 input, consistent with this model's published cache reads. Google lists conflicting short-context us-east5 rates. The table and footnote disagree at 200,000 tokens. Google 1 Google 2Braintrust pricing matcher
Verified against Braintrust
mainat8b43707c16. This applies when billing looks up one of the listed catalog IDs with resolved providervertexand tierstandard. The catalog lookup uses the resolved billing model ID. The separatepublishers/google/models/...Gemini entries use their own defaults when that ID is billed directly. Model lookup · Usage contextendpointsapi_base. This works for global, the US/EU.rephosts, and the listed single-region hosts. Vertex has no billing default host. Location-only routing can choose a real Vertex host for the outbound request while billing receives no hostname. An alternate hostname only matches if its exact string is listed.min_input_tokens,max_input_tokensvalid_from,valid_untilinference_geonot_availableas global. Gateway can record a supplied request hint or response field and does not derive geography from a Vertex hostname or location. All rows here omit the field, so they match absent/global geography even on regional hosts. Explicit non-global geography prevents a match.supported_regions,model_id,model_version,deployment_typeHostname extraction · Endpoint source · Gateway pricing context · Prompt normalization · Rate matching
When Standard uses the top-level rate
gemini-3.1-flash-lite-image,gemini-3.1-pro-preview,gemini-3.1-pro-preview-customtools, andgemini-3-pro-imagecan match without a hostname. With explicit non-global inference geography, all 68 rows miss.us-east5through 200,000 tokens andasia-southeast1at exactly 200,000, and any host absent from that model's rows.UnsupportedCondition. A known but unmatched host or uncovered date/token band ordinarily yieldsTierUnavailable. Explicit non-global geography yieldsGeoUnavailable. Gateway can still emitMatchedwhen usage is complete and a top-level estimate succeeds, with the approximation inpricing_reasons. Brainstore fallback · Gateway statusTop-level fallback rates below are USD per million tokens, in input / output / cache read order. Claude tuples then show generic cache write / 5-minute write / 1-hour write. A dash means no price is stored. The calculation uses the input rate for missing cache-read or generic write rates and requires both split write rates plus fully accounted split usage to apply TTL-specific rates. Cache calculation
publishers/anthropic/models/claude-opus-5-5publishers/anthropic/models/claude-haiku-5-5publishers/anthropic/models/claude-sonnet-5-5publishers/anthropic/models/claude-fable-5-2publishers/anthropic/models/claude-fable-5-1publishers/anthropic/models/claude-fable-5publishers/anthropic/models/claude-opus-5publishers/anthropic/models/claude-opus-4-8publishers/anthropic/models/claude-opus-4-7publishers/anthropic/models/claude-opus-4-6publishers/anthropic/models/claude-sonnet-5publishers/anthropic/models/claude-sonnet-4-6publishers/anthropic/models/claude-haiku-4-5gemini-3.7-flashgemini-3.8-flashgemini-4-argongemini-4-carbongemini-4-hydrogengemini-4-neongemini-3.5-flashgemini-3.5-flash-litegemini-3.1-flash-imagegemini-3.1-flash-liteLink to Devin session: https://braintrust.devinenterprise.com/sessions/085fa893e72e42ca87ea0b1c0246c3b2
Open in Devin Desktop: https://braintrust.devinenterprise.com/desktop/session/085fa893e72e42ca87ea0b1c0246c3b2?variant=devin