Gemini native API
Native Gemini API
Compatible with the Google Gemini API for direct use by the Google Gen AI SDK and Gemini CLI.
Example request
Python (Google Gen AI SDK)
Notes
Keys used with these endpoints must belong to a Gemini-related platform group; Authenticate with the x-goog-api-key header; the ?key= query parameter is not supported; Gemini models can also be called through the OpenAI-compatible /v1/chat/completions.