Skip to content

fix(catalog): add vertex standard pricing overrides - #1882

Closed
devin-ai-integration[bot] wants to merge 3 commits into
mainfrom
devin/1795474357-vertex-standard-pricing
Closed

devin-ai-integration[bot] wants to merge 3 commits into
mainfrom
devin/1795474357-vertex-standard-pricing

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Add or complete 64 Google Cloud Standard text rate rows across 27 existing vertex model 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 generateContent or streamGenerateContent. Claude online prediction uses rawPredict or streamRawPredict. These rates apply to ordinary pay-as-you-go inference on the listed hosts, with no separate Standard response flag assumed. Gemini API Claude API

Catalog 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 documentation

Model ID Provider Conditions and rates Source
publishers/anthropic/models/claude-opus-5-5 vertex G, ≤199,999 prompt tokens · 4 / 20 / 0.2 / 5 / 8
US, ≤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
Google 1 Google 2
publishers/anthropic/models/claude-haiku-5-5 vertex G, ≤99,999 prompt tokens · 0.1 / 0.5 / 0.01 / 0.125 / 0.2
G, ≥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
Google
publishers/anthropic/models/claude-sonnet-5-5 vertex G · 2 / 10 / 0.1 / 2.5 / 4
US/EU · 2.2 / 11 / 0.11 / 2.75 / 4.4
Google
publishers/anthropic/models/claude-fable-5-2 vertex G · 8 / 40 / 0.2 / 10 / 16
US/EU · 8.8 / 44 / 0.22 / 11 / 17.6
Google
publishers/anthropic/models/claude-fable-5-1 vertex G · 10 / 50 / 0.25 / 12.5 / 20
US/EU · 11 / 55 / 0.275 / 13.75 / 22
Google
publishers/anthropic/models/claude-fable-5 vertex G · 10 / 50 / 1 / 12.5 / 20
EU · 11 / 55 / 1.1 / 13.75 / 22
Google
publishers/anthropic/models/claude-opus-5 vertex G · 5 / 25 / 0.5 / 6.25 / 10
US/EU · 5.5 / 27.5 / 0.55 / 6.875 / 11
Google
publishers/anthropic/models/claude-opus-4-8 vertex G · 5 / 25 / 0.5 / 6.25 / 10
US/EU · 5.5 / 27.5 / 0.55 / 6.875 / 11
Google
publishers/anthropic/models/claude-opus-4-7 vertex G · 5 / 25 / 0.5 / 6.25 / 10
US/EU · 5.5 / 27.5 / 0.55 / 6.875 / 11
Google
publishers/anthropic/models/claude-opus-4-6 vertex G · 5 / 25 / 0.5 / 6.25 / 10
us-east5/europe-west1/asia-southeast1 · 5.5 / 27.5 / 0.55 / 6.875 / 11
Google
publishers/anthropic/models/claude-sonnet-5 vertex G · 2 / 10 / 0.2 / 2.5 / 4
US/EU · 2.2 / 11 / 0.22 / 2.75 / 4.4
Google
publishers/anthropic/models/claude-sonnet-4-6 vertex G · 3 / 15 / 0.3 / 3.75 / 6
us-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
Google 1 Google 2
publishers/anthropic/models/claude-haiku-4-5 vertex G · 1 / 5 / 0.1 / 1.25 / 2
us-east5/europe-west1 · 1.1 / 5.5 / 0.11 / 1.375 / 2.2
Google
gemini-3.7-flash vertex G, from 2027-01-01, through 2027-01-27 · 1.5 / 7.5 / 0.15 / 1.5
US/EU, from 2027-01-01, through 2027-01-27 · 1.65 / 8.25 / 0.165 / 1.65
Google 1 Google 2 Google 3
gemini-3.8-flash vertex G, from 2027-01-01 · 1.5 / 7.5 / 0.15 / 1.5
US/EU, from 2027-01-01 · 1.65 / 8.25 / 0.165 / 1.65
Google 1 Google 2
gemini-4-argon vertex G, from 2026-12-01 · 4 / 20 / 0.2 / 4
US/EU, from 2026-12-01 · 4.4 / 22 / 0.22 / 4.4
Google 1 Google 2 Google 3
gemini-4-carbon vertex G, from 2026-12-01 · 4 / 20 / 0.2 / 4
US/EU, from 2026-12-01 · 4.4 / 22 / 0.22 / 4.4
Google 1 Google 2
gemini-4-hydrogen vertex G, through 2027-01-11 · 1.5 / 7.5 / 0.075 / 1.5
US/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
Google 1 Google 2
gemini-4-neon vertex G, through 2027-01-11 · 3 / 15 / 0.15 / 3
US/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
Google 1 Google 2
gemini-3.5-flash vertex G · 1.5 / 9 / 0.15 / 1.5
US/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
Google 1 Google 2
gemini-3.5-flash-lite vertex G · 0.3 / 2.5 / 0.03 / 0.3
US/EU · 0.33 / 2.75 / 0.033 / 0.33
Google 1 Google 2
gemini-3.1-flash-image vertex G · 0.5 / 3 / 0.05 / 0.5
US/EU, from 2026-08-31 · 0.55 / 3.3 / 0.055 / 0.55
Google 1 Google 2 Google 3
gemini-3.1-flash-lite vertex G · 0.25 / 1.5 / 0.025 / 0.25
US/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
Google 1 Google 2
gemini-3.1-flash-lite-image vertex all (G only) · 0.25 / 1.5 / 0.025 / 0.25 Google 1 Google 2
gemini-3.1-pro-preview vertex all (G only), ≤200,000 prompt tokens · 2 / 12 / 0.2 / 2
all (G only), ≥200,001 prompt tokens · 4 / 18 / 0.4 / 4
Google 1 Google 2
gemini-3.1-pro-preview-customtools vertex all (G only), ≤200,000 prompt tokens · 2 / 12 / 0.2 / 2
all (G only), ≥200,001 prompt tokens · 4 / 18 / 0.4 / 4
Google 1 Google 2 Google 3
gemini-3-pro-image vertex all (G only) · 2 / 12 / 0.2 / 2 Google 1 Google 2

Skipped candidates

Model ID Reason Source
publishers/anthropic/models/claude-sonnet-4-5 Google marks the model deprecated and schedules shutdown on November 30, 2026. Google
gemini-3.6-flash Google blocked new and inactive Vertex projects on November 19, 2026. Existing active projects retain access until shutdown on January 28, 2027. Google
gemini-3.1-flash-image-preview Google retired the preview ID on July 17, 2026. Google
gemini-3.1-flash-lite-preview Deprecated preview ID. Google lists the GA replacement as gemini-3.1-flash-lite. Google
gemini-3-flash-preview Google's Standard table lists matching text input and cache-read rates but omits the Standard text-output row. Google
gemini-3-pro-image-preview Google retired the preview ID on July 17, 2026. Google
gemini-2.5-flash Google retired the model on October 20, 2026. Google
gemini-2.5-flash-image Verified text input/output match the defaults ($0.30/$2.50). Image output has separate pricing. Google
gemini-2.5-flash-lite Google retired the model on October 20, 2026. Google
gemini-2.5-pro Google retired the model on October 20, 2026. Google
gemini-embedding-2 The verified text rate ($0.20 input, free output) matches the defaults. Other modalities have separate prices. Google
gemini-embedding-001 Google publishes a price per 1,000 counts. The table does not establish a per-token override for the regional routes. Google

Pricing and matching gaps

  • Promotional pricing audit. The 64 Standard text overrides use published list prices. Four global Vertex audio rows inherited from main already cover the introductory windows for Gemini 4 Argon/Carbon through November 30, 2026 and 3.7/3.8 Flash through December 31, 2026. Those rows now carry exactly the existing top-level text fallback amounts for the same period, so selecting the audio row preserves text costing. Other unmatched endpoints continue to use the top-level defaults. Gemini 4 pricing · Gemini 3 pricing · Claude pricing
  • Cache audit, November 24, 2026. Added total cache-write rates to the four introductory rows at aiplatform.googleapis.com. gemini-3.7-flash and gemini-3.8-flash are $0.75 per million tokens through December 31, 2026. gemini-4-argon and gemini-4-carbon are $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 rule
  • Gemini audio fields. Preserved the Vertex Standard audio rates from feat(catalog): add audio token prices for openai and gemini models #1895 on the applicable text rows. Exact global and US/EU API hostnames express the same endpoint scopes as the original region labels. Hydrogen and Neon retain their audio prices across both cache-write periods. Gemini 3.7 Flash’s regular audio and text rates share the January 27, 2027 last full UTC day of availability. Brainstore’s matcher uses the text rates today. Original audio rates · Vertex endpoints · 3.7 Flash retirement
  • The other date bounds track the July 1 non-global price change, the August 31 Gemini 3.1 Flash Image multi-region launch, the January 12 Hydrogen/Neon cache-write rollout, and the last full UTC day before Gemini 3.7 Flash's January 28 retirement. Endpoint pricing · Multi-region launch · Gemini 4 pricing · Gemini 3.7 Flash lifecycle
  • The English Gemini 4 Argon Standard table repeats the global output row. Google's Spanish and French tables both list $22 for non-global output from December 1. Spanish pricing French pricing
  • Google charges the Standard input rate for Gemini cache creation unless separate write pricing applies. The Hydrogen and Neon default write premiums start January 12, 2027. Google says longer retention costs more and does not publish rates for those longer TTLs. Explicit cache storage is billed separately by token-hour. Context caching · Gemini 4 pricing
  • Google's pricing tabs list additional regional Haiku rates that its exact model location tables do not support. This includes europe-west1 and asia-southeast1 for Haiku 5.5 and asia-east1 for Haiku 4.5. Partner model locations
  • publishers/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 2
  • publishers/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. Google
  • publishers/anthropic/models/claude-fable-5 — The US table has two input rows and no standard output row. Google
  • publishers/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 2

Braintrust pricing matcher

Verified against Braintrust main at 8b43707c16. This applies when billing looks up one of the listed catalog IDs with resolved provider vertex and tier standard. The catalog lookup uses the resolved billing model ID. The separate publishers/google/models/... Gemini entries use their own defaults when that ID is billed directly. Model lookup · Usage context

Condition Current behavior
endpoints Exact match against the lowercased hostname from a configured api_base. This works for global, the US/EU .rep hosts, 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_tokens Inclusive bounds on Gateway's normalized prompt count, including cached and cache-write tokens where the provider reports them separately. A missing prompt count lets all token bands pass. If two otherwise applicable rows have different rates, the selector falls back. A sole applicable row can still be selected.
valid_from, valid_until These date-only bounds cover whole UTC days, inclusively, at the Gateway pricing timestamp. Future and expired rows are skipped. On Nov 23, 2026, the Argon/Carbon and 3.7/3.8 Flash list-price rows are still future rows. The Hydrogen/Neon rows with cache-write prices start Jan 12, 2027, after the current rows end.
inference_geo Brainstore treats unset or not_available as 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_type The pricing selector rejects these as unsupported on an otherwise applicable row. None occurs in the added Standard rows.

Hostname extraction · Endpoint source · Gateway pricing context · Prompt normalization · Rate matching

When Standard uses the top-level rate

  • A missing or unmatched host makes all 62 endpoint-scoped rows across 23 IDs in the table below ineligible. The six unscoped rows for gemini-3.1-flash-lite-image, gemini-3.1-pro-preview, gemini-3.1-pro-preview-customtools, and gemini-3-pro-image can match without a hostname. With explicit non-global inference geography, all 68 rows miss.
  • With a recognized host, known coverage gaps still use the top-level rate. These include the US/EU pre-list-price windows and the period after the 3.7 Flash end date, 3.1 Flash Image US/EU before Aug 31, Haiku 5.5 at exactly 100,000 tokens, Opus 5.5 on all hosts at 200,000 tokens or more, Fable 5 US, Sonnet 4.6 us-east5 through 200,000 tokens and asia-southeast1 at exactly 200,000, and any host absent from that model's rows.
  • A missing prompt count can create different simultaneous matches for the two Gemini 3.1 Pro IDs and Haiku 5.5 on any listed host. These cases use the top-level rates. The two Pro IDs fall back to 2 / 12 / 0.20. Explicit non-global inference geography also sends the two unscoped image IDs to their defaults of 0.25 / 1.50 and 2 / 12, respectively, with cache reads priced at input.
  • Brainstore records the approximation. A missing host on an otherwise eligible endpoint row can yield UnsupportedCondition. A known but unmatched host or uncovered date/token band ordinarily yields TierUnavailable. Explicit non-global geography yields GeoUnavailable. Gateway can still emit Matched when usage is complete and a top-level estimate succeeds, with the approximation in pricing_reasons. Brainstore fallback · Gateway status

Top-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

Catalog ID Endpoint-scoped rows Top-level fallback
publishers/anthropic/models/claude-opus-5-5 3 4 / 20 / 0.2 / 5 / — / —
publishers/anthropic/models/claude-haiku-5-5 4 0.1 / 0.5 / 0.01 / 0.125 / 0.125 / 0.2
publishers/anthropic/models/claude-sonnet-5-5 2 2 / 10 / 0.1 / 2.5 / — / —
publishers/anthropic/models/claude-fable-5-2 2 8 / 40 / 0.2 / 10 / 10 / 16
publishers/anthropic/models/claude-fable-5-1 2 10 / 50 / 0.25 / 12.5 / — / —
publishers/anthropic/models/claude-fable-5 2 10 / 50 / 1 / 12.5 / — / —
publishers/anthropic/models/claude-opus-5 2 5 / 25 / 0.5 / 6.25 / — / —
publishers/anthropic/models/claude-opus-4-8 2 5 / 25 / 0.5 / 6.25 / — / —
publishers/anthropic/models/claude-opus-4-7 2 5 / 25 / 0.5 / 6.25 / 6.25 / 10
publishers/anthropic/models/claude-opus-4-6 2 5 / 25 / 0.5 / 6.25 / 6.25 / 10
publishers/anthropic/models/claude-sonnet-5 2 2 / 10 / 0.2 / 2.5 / 2.5 / 4
publishers/anthropic/models/claude-sonnet-4-6 5 3 / 15 / 0.3 / 3.75 / 3.75 / 6
publishers/anthropic/models/claude-haiku-4-5 2 1 / 5 / 0.1 / 1.25 / 1.25 / 2
gemini-3.7-flash 3 0.75 / 3.75 / 0.075
gemini-3.8-flash 3 0.75 / 3.75 / 0.075
gemini-4-argon 3 2 / 10 / 0.1
gemini-4-carbon 3 2 / 10 / 0.1
gemini-4-hydrogen 4 1.5 / 7.5 / 0.075
gemini-4-neon 4 3 / 15 / 0.15
gemini-3.5-flash 3 1.5 / 9 / 0.15
gemini-3.5-flash-lite 2 0.3 / 2.5 / 0.03
gemini-3.1-flash-image 2 0.5 / 3 / —
gemini-3.1-flash-lite 3 0.25 / 1.5 / 0.025

Link to Devin session: https://braintrust.devinenterprise.com/sessions/085fa893e72e42ca87ea0b1c0246c3b2
Open in Devin Desktop: https://braintrust.devinenterprise.com/desktop/session/085fa893e72e42ca87ea0b1c0246c3b2?variant=devin

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access that start with 'Devin'.

  • Disable automatic comment, CI, and merge conflict monitoring

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T23:06:36.822966Z 4ba619c PR opened
ℹ️ About Codex in GitHub

Your 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
devin-ai-integration Bot force-pushed the devin/1795474357-vertex-standard-pricing branch 3 times, most recently from fc567f8 to dfa4a1d Compare November 24, 2026 19:15
> 🤖 **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
devin-ai-integration Bot force-pushed the devin/1795474357-vertex-standard-pricing branch from 4862b46 to 005c9b7 Compare November 24, 2026 21:17
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