gemini-3.1-pro-preview is available through the Gemini-compatible AI Gateway endpoint. It is suitable for advanced reasoning, analysis, and multimodal-ready application workflows when supported by the selected model configuration.
Create or copy your API key from the console before calling the API. Use the model unit price displayed in the console as the source of truth.
Endpoint
Some tools may require the versioned base URL: