/v1beta/models/{model}:generateContent), covering Google’s latest Gemini 3 preview and the stable 2.5 series.
Gemini 3 series (current mainline)
The next-generation flagship, suited to agents, complex reasoning, realtime voice and more — currently Google’s primary series.Preview models may change their interface and pricing at any time; for production, also configure a stable fallback model. The available IDs shown in Console → Models are authoritative.
Gemini 2.5 series (stable)
Thinking and reasoning effort
The Gemini 2.5 / 3 series supports an explicit thinking budget. Both ways work:Via parameter
Via model ID suffix
OpenPAI passes through the following model ID aliases, mapping them internally to the corresponding thinking config:Multimodal generation
Example:
Embedding models
Examples
OpenAI-compatible protocol
Gemini native protocol
google-genai SDK
Vision and multimodal input
Gemini natively supports image, PDF, audio and video input:Function calling
Full support for Geminifunction_declarations and function_call; when accessed via the OpenAI-compatible endpoint, these are automatically converted to tools / tool_calls structures. See Function calling.