Google's fast and efficient model with built-in thinking capabilities. Great balance of speed, reasoning, and cost for high-volume applications.
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 | 300 | $0.30 |
| Output Tokens | 2,500 | $2.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-2.5-flash",
"messages": [
{
"role": "user",
"content": "A train leaves station A at 9 AM traveling at 60 mph. Another train leaves station B (300 miles away) at 10 AM traveling toward A at 80 mph. When and where will they meet?"
}
],
"max_tokens": 4000
}'| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
messages | array | Yes | - | Array of message objects (OpenAI format). Supports text, image, video, and audio inputs. |
temperature | float | No | 1.0 | Sampling temperature (0-2). |
top_p | float | No | 0.95 | Nucleus sampling parameter (0-1). |
max_tokens | integer | No | - | Maximum output tokens. Max: 65,536. Context window (input + output): 1,048,576 tokens. |
stop | string | array | No | - | Up to 4 sequences where the model stops generating. |
response_format | object | No | - | Output format constraint. Use `{ type: 'json_object' }` for structured JSON output. |
presence_penalty | float | No | 0 | Penalty (-2.0 to 2.0) for repeating tokens. |
frequency_penalty | float | No | 0 | Penalty (-2.0 to 2.0) by token frequency. |
seed | integer | No | - | Seed for deterministic sampling (best-effort). |
stream | boolean | No | false | Enable Server-Sent Events streaming. |
Solve with step-by-step reasoning
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-2.5-flash",
"messages": [
{
"role": "user",
"content": "A train leaves station A at 9 AM traveling at 60 mph. Another train leaves station B (300 miles away) at 10 AM traveling toward A at 80 mph. When and where will they meet?"
}
],
"max_tokens": 4000
}'POST /llm/gemini/v1beta/openai/chat/completions