Ultra-lightweight variant of Gemini 3.1 Flash. The most cost-effective Gemini model with support for cached input and audio input. Ideal for high-throughput, budget-conscious applications.
Copy usage instructions for Claude, ChatGPT, or other AI
| Token Type | Credits | USD Equivalent |
|---|---|---|
| Input Tokens | 250 | $0.25 |
| Output Tokens | 1,500 | $1.50 |
* 1 credit โ $0.001 (actual charges may vary based on usage)
curl -X POST "https://api.core.today/llm/gemini/v1beta/openai/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer cdt_your_api_key" \
-d '{
"model": "gemini-3.1-flash-lite-preview",
"messages": [
{
"role": "system",
"content": "Classify the following text as: spam, not_spam. Respond with only the label."
},
{
"role": "user",
"content": "Congratulations! You have been selected for a special prize. Click here to claim now!"
}
],
"max_tokens": 50,
"temperature": 0
}'| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
messages | array | Yes | - | Array of message objects (OpenAI format) |
temperature | float | No | 1 | Sampling temperature (0-2) |
top_p | float | No | 0.95 | Nucleus sampling parameter |
max_tokens | integer | No | - | Maximum output tokens |
stream | boolean | No | false | Enable Server-Sent Events streaming |
Lightweight text classification with Flash Lite
curl -X POST "https://api.core.today/llm/gemini/v1beta/openai/chat/completions" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer cdt_your_api_key" \
-d '{
"model": "gemini-3.1-flash-lite-preview",
"messages": [
{
"role": "system",
"content": "Classify the following text as: spam, not_spam. Respond with only the label."
},
{
"role": "user",
"content": "Congratulations! You have been selected for a special prize. Click here to claim now!"
}
],
"max_tokens": 50,
"temperature": 0
}'POST /llm/gemini/v1beta/openai/chat/completions