Skip to content

Add mistral-ocr-2505 general schema and pricing for vertex-ai - #928

Merged
akhilmmenon merged 3 commits into
mainfrom
mistral-ocr-2505
Sep 7, 2026
Merged

Add mistral-ocr-2505 general schema and pricing for vertex-ai#928
akhilmmenon merged 3 commits into
mainfrom
mistral-ocr-2505

Conversation

@akhilmmenon

@akhilmmenon akhilmmenon commented Sep 7, 2026

Copy link
Copy Markdown
Member

Summary

Adds the Mistral OCR (25.05) model to the Vertex AI model configs.

Changes

  • general/vertex-ai.json: new mistral-ocr-2505 entry with type.primary: ocr and disablePlayground: true (mirrors the existing Mistral/Azure OCR entries).
  • pricing/vertex-ai.json: new mistral-ocr-2505 pricing — request_token: 0.05 (0.05 cents/page = $0.0005/page per the official Vertex AI pricing, response_token: 0. Same cents-per-page convention as mistral-ai.json/azure-ai.json (where 0.4 = 0.4¢/page).

Notes

  • Keyed as mistral-ocr-2505 without the mistralai. publisher prefix. The gateway's getModelAndProvider strips the publisher prefix before pricing/type lookup (confirmed in google-vertex-ai/utils.ts and pricing.ts), consistent with sibling models mistral-medium-3, mistral-small-2503, codestral-2.
  • OCR is billed per pages_processed (not tokens) in google-vertex-ai/pricing.ts.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The new model and pricing entries are consistent with existing OCR patterns in the catalog and appear correctly structured/placed in the Vertex AI configs.

Pull request overview

Adds the Mistral OCR (25.05) model to the Vertex AI catalog by introducing a new model entry in the general schema and corresponding pay-as-you-go pricing configuration.

Changes:

  • Added mistral-ocr-2505 to general/vertex-ai.json with type.primary: "ocr" and disablePlayground: true.
  • Added mistral-ocr-2505 to pricing/vertex-ai.json with request_token.price: 0.05 and response_token.price: 0.
File summaries
File Description
general/vertex-ai.json Registers the new mistral-ocr-2505 model as an OCR-type model and disables Playground usage.
pricing/vertex-ai.json Defines pay-as-you-go pricing for mistral-ocr-2505 (input billed, output free).
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread general/vertex-ai.json Outdated
@akhilmmenon
akhilmmenon merged commit 3b8b6fc into main Sep 7, 2026
2 checks passed
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.

3 participants