Google's latest Flash-tier workhorse model. Flat pricing across all input modalities (text, image, video, audio, PDF) at $1.50/$9 per million tokens with no long-context premium, a 1M token context window, and 65,536 max output tokens. Cached inputs get a 90% discount.
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 | 2,787 | $1.86 |
| Output Tokens | 16,722 | $11.15 |
| Cached Tokens | 279 | $0.19 |
* 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.5-flash",
"messages": [
{
"role": "user",
"content": "Summarize the attached contract PDF and list every deadline it mentions."
}
],
"max_tokens": 2000
}'| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
messages | array | Yes | - | Array of message objects (OpenAI format). Supports text, image, audio, video, and PDF inputs. |
temperature | float | No | 1 | Sampling temperature (0-2). Lower values produce more deterministic outputs. |
max_tokens | integer | No | - | Maximum output tokens. Max: 65,536. Context window (input + output): 1M tokens. |
response_format | object | No | - | Output format constraint. Use `{ type: 'json_object' }` for structured JSON output. |
stream | boolean | No | false | Enable Server-Sent Events streaming. |
Analyze a PDF at the same flat token rate as text
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.5-flash",
"messages": [
{
"role": "user",
"content": "Summarize the attached contract PDF and list every deadline it mentions."
}
],
"max_tokens": 2000
}'High-throughput assistant responses with streaming
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.5-flash",
"messages": [
{
"role": "user",
"content": "Explain the difference between ECS and EKS briefly."
}
],
"stream": true,
"max_tokens": 800
}'POST /llm/gemini/v1beta/openai/chat/completions