##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_KEYChat model name
gemini-3.1-flash-lite-preview "gemini-3.1-flash-lite-preview"
List of chat messages
1[
{
"role": "user",
"content": "Hello, introduce yourself"
}
]Chat completion generated successfully
Unique identifier for the chat completion
"chatcmpl-20251010015944503180122WJNB8Eid"
Model name actually used
"gemini-3.1-flash-lite-preview"
Response type
chat.completion "chat.completion"
Creation timestamp
1760032810
List of chat completion choices
Token usage statistics