This mandatory question in unclear. What do you mean by the “name of the modal”? If you mean the name of the model “gemini-2.5-flash”
What is the issue or error you’re encountering
Calls to Google Studio Gemini API returns “API key not valid. Please pass a valid API key”
What steps have you taken to resolve the issue?
We tried to generate a new API Key on Google AI Studio. Did not solve the issue.
We also verified that the API Key added in Cloudflare works by calling the API locally from our computer.
What are the steps to reproduce the issue?
Set up the AI Gateway with a Google Studio API key. Run a query against a Gemini model.