Text Generation
Gemini Native Format
Use the Google Gemini native API format
POST
The Gemini native format API provides a native interface for interacting with Google Gemini models, supporting multimodal input and advanced features.Documentation Index
Fetch the complete documentation index at: https://docs.qingbo.dev/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Supported Models
Gemini 3.1 Pro Preview
Latest-generation preview
Gemini 3 Flash Preview
Next-generation fast variant
Gemini 2.5 Pro
Pro tier, strong reasoning
Gemini 2.5 Flash
Fast tier, balanced speed and performance
Gemini 2.5 Flash Lite
Ultra-light, lowest latency
Request Parameters
Model ID, used as a URL path parameter:
gemini-3.1-pro-previewgemini-3-flash-previewgemini-2.5-progemini-2.5-flashgemini-2.5-flash-lite
Conversation contents array.
Generation configuration.
Request Example
Response Format
Multimodal Input
Gemini supports mixed text and image input:Streaming Output
Safety Settings
Control the content filtering level:Feature Comparison
| Feature | Gemini 3.1 Pro | Gemini 3 Flash | Gemini 2.5 Pro | Gemini 2.5 Flash | Gemini 2.5 Flash Lite |
|---|---|---|---|---|---|
| Context window | 1M tokens | 1M tokens | 1M tokens | 1M tokens | 1M tokens |
| Multimodal input | Yes | Yes | Yes | Yes | Yes |
| Code generation | Yes | Yes | Yes | Yes | Yes |
| Speed | Fast | Very fast | Fast | Very fast | Very fast |