Add the credential
Open Settings > Model Providers, click Add Model Provider and select Gemini. Give the row a name, pick the organization, team or project it belongs to, and fill in:
Save the row. Every virtual key whose scope can see the row can now dispatch to it, unless the key restricts its providers. See Virtual keys.

The Gemini row: GEMINI_API_KEY, the optional GEMINI_PROJECT and GEMINI_LOCATION pair for a Gemini Enterprise Agent Platform key, and the routing handle gemini.
Model names
Writegemini/<model>, for example gemini/gemini-2.5-flash. A bare name that starts with gemini- resolves to Gemini when the key reaches a Gemini row.
Send a request
Google GenAI SDKs
The Google GenAI SDKs call/v1beta/*. Point them at the gateway host and send the virtual key as the API key. The SDK puts it in the X-Goog-Api-Key header, which the gateway accepts.