Gemini-3.1-flash-lite-preview Quick Chat
OpenAI SDK Format
Gemini 3.1 Flash Lite - OpenAI SDK - Quick Start
- Call Gemini-3.1-flash-lite-preview model using OpenAI SDK format
- Synchronous processing mode, returns conversation content in real-time
- Minimal parameters for quick start
- 💡 Need more features? Check Full API Reference
POST
Gemini-3.1-flash-lite-preview Quick Chat
BaseURL: The default BaseURL is
https://direct.evolink.ai, which has better support for text models and long-lived connections. https://api.evolink.ai is the primary endpoint for multimodal services and serves as a fallback address for text models.Authorizations
##All APIs require Bearer Token authentication##
Get API Key:
Visit API Key Management Page to get your API Key
Add to request header:
Authorization: Bearer YOUR_API_KEYBody
application/json
Chat model name
Available options:
gemini-3.1-flash-lite-preview Example:
"gemini-3.1-flash-lite-preview"
List of chat messages
Minimum array length:
1Example:
[
{
"role": "user",
"content": "Hello, introduce yourself"
}
]Response
Chat completion generated successfully
Unique identifier for the chat completion
Example:
"chatcmpl-20251010015944503180122WJNB8Eid"
Model name actually used
Example:
"gemini-3.1-flash-lite-preview"
Response type
Available options:
chat.completion Example:
"chat.completion"
Creation timestamp
Example:
1760032810
List of chat completion choices
Token usage statistics