Gemini 2.5 pro Byok not working with max mode

Describe the Bug

Gemini 2.5 pro Byok not working with max mode

this is is the error message-
We encountered an issue when using your API key: Provider was unable to process your request API Error: Request failed with status code 404: [{ "error": { "code": 404, "message": "models/gemini-2.5-pro-latest is not found for API version v1main, or is not supported for generateContent. Call ListModels to see the list of available models and their supported methods.", "status": "NOT_FOUND" } } ]
Request ID: 6efeb2ae-3b2a-4cf2-a430-4442ded2f77e

Steps to Reproduce

-BYOK gemini api in model
-Toggle max mode with gemini 2.5 pro

this is he

Expected Behavior

supposed to work as usual with max mode

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.2.4 (Universal)
VSCode Version: 1.99.3
Commit: a8e95743c5268be73767c46944a71f4465d05c90
Date: 2025-07-10T16:55:16.443Z (1 wk ago)
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.5.0

Does this stop you from using Cursor

No - Cursor works, but with this issue

1 Like

Hey, to be clear, does this work with MAX enabled? This may be a bug, as with an API key enabled, all requests are treated as ‘MAX mode’!