Lightweight, lower-cost sibling of Gemini 3.1 Flash Image with native image generation. Generates images directly in chat responses alongside text, with separate pricing for text and image output tokens: $0.25 input, $1.50 text output and $30 image output per million tokens.
Test this model instantly in the Console Playground โ no code required
Copy usage instructions for Claude, ChatGPT, or other AI
| Token Type | Credits | USD Equivalent |
|---|---|---|
| Input Tokens | 465 | $0.31 |
| Output Tokens | 2,787 | $1.86 |
| ๐ผImage Output Tokens | 55,740 | $37.16 |
* 1,500 credits โ $1 (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-image",
"messages": [
{
"role": "user",
"content": "Explain the concept of neural style transfer in simple terms."
}
],
"max_tokens": 1000,
"temperature": 0.7
}'| 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. Max: 65,536. Input limit: 65,536 tokens. |
stream | boolean | No | false | Enable Server-Sent Events streaming |
Standard text conversation
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-image",
"messages": [
{
"role": "user",
"content": "Explain the concept of neural style transfer in simple terms."
}
],
"max_tokens": 1000,
"temperature": 0.7
}'Generate an image through natural language conversation
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-image",
"messages": [
{
"role": "user",
"content": "Generate an image of a serene Japanese garden with a koi pond, cherry blossoms, and a small wooden bridge at sunset."
}
],
"max_tokens": 4096
}'POST /llm/gemini/v1beta/openai/chat/completions