Gemini 3 Flash
by google · family gemini
Facts
| Release date | 2025-12-17 |
|---|---|
| Retired date | — |
| Knowledge cutoff | — |
| Context (max) | 1,048,576 |
| Max output | 65,536 |
| Modalities | text, image → text |
| Aliases | gemini-3-flash-preview |
| Open weights | no |
| Description | Preview-only on the Gemini API (gemini-3-flash-preview); superseded by 3.5+ Flash GA generations. |
Unknown values are shown as —.
Offerings
| Provider | Wire ID | Variant | Endpoint | Protocol | Status | Price (USD / Mtok) | Reasoning |
|---|---|---|---|---|---|---|---|
| Google Gemini API | gemini-3-flash-preview | flash | generate-content | google-generate-content | preview | 0.50 / 3.00 | effort · default on · mandatory · returns thought_parts · round-trips thought_signature |
| OpenCode Zen | gemini-3-flash | flash | chat-completions | openai-chat | ga | 0.50 / 3.00 | effort · default on · mandatory · returns thought_parts · round-trips thought_signature |
| OpenRouter | google/gemini-3-flash-preview | flash | chat-completions | openai-chat | ga | 0.50 / 3.00 | effort · default on · returns reasoning_content · round-trips reasoning_content |
Reasoning controls
Google Gemini API· gemini-3-flash-preview· generate-content effort
generationConfig.thinkingConfig.thinkingLevel minimallowmediumhigh●
effort · default on · mandatory · returns thought_parts · round-trips thought_signature
OpenCode Zen· gemini-3-flash· chat-completions effort
thinkingLevel minimallowmediumhigh●
effort · default on · mandatory · returns thought_parts · round-trips thought_signature
OpenRouter· google/gemini-3-flash-preview· chat-completions effort
reasoning.effort nonelowmedium●highxhighmax
effort · default on · returns reasoning_content · round-trips reasoning_content
Example requests
Google Gemini API · google-generate-content · gemini-3-flash-preview
curl 'https://generativelanguage.googleapis.com/v1beta/models/gemini-3-flash-preview:generateContent' \
-H 'Content-Type: application/json' \
-H 'x-goog-api-key: <YOUR_API_KEY>' \
-d '{
"contents": [
{
"parts": [
{
"text": "Tell me about the weather."
}
]
}
],
"generationConfig": {
"thinkingConfig": {
"thinkingLevel": "high"
}
}
}'Python (requests)
import requests
resp = requests.post(
"https://generativelanguage.googleapis.com/v1beta/models/gemini-3-flash-preview:generateContent",
headers={
"Content-Type": "application/json",
"x-goog-api-key": "<YOUR_API_KEY>"
},
json={
"contents": [
{
"parts": [
{
"text": "Tell me about the weather."
}
]
}
],
"generationConfig": {
"thinkingConfig": {
"thinkingLevel": "high"
}
}
},
)
print(resp.json())TypeScript (fetch)
const resp = await fetch("https://generativelanguage.googleapis.com/v1beta/models/gemini-3-flash-preview:generateContent", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-goog-api-key": "<YOUR_API_KEY>"
},
body: JSON.stringify({
"contents": [
{
"parts": [
{
"text": "Tell me about the weather."
}
]
}
],
"generationConfig": {
"thinkingConfig": {
"thinkingLevel": "high"
}
}
}),
})
console.log(await resp.json())- ⚠ Responses include
thought_signatureartifacts — pass them back unmodified on subsequent turns (dropping them triggers 400s or quality loss).
OpenCode Zen · openai-chat · gemini-3-flash
curl 'https://opencode.ai/zen/v1/chat/completions' \
-H 'Authorization: Bearer <YOUR_API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"model": "gemini-3-flash",
"messages": [
{
"role": "user",
"content": "Tell me about the weather."
}
],
"thinkingLevel": "high"
}'Python (requests)
import requests
resp = requests.post(
"https://opencode.ai/zen/v1/chat/completions",
headers={
"Authorization": "Bearer <YOUR_API_KEY>",
"Content-Type": "application/json"
},
json={
"model": "gemini-3-flash",
"messages": [
{
"role": "user",
"content": "Tell me about the weather."
}
],
"thinkingLevel": "high"
},
)
print(resp.json())TypeScript (fetch)
const resp = await fetch("https://opencode.ai/zen/v1/chat/completions", {
method: "POST",
headers: {
"Authorization": "Bearer <YOUR_API_KEY>",
"Content-Type": "application/json"
},
body: JSON.stringify({
"model": "gemini-3-flash",
"messages": [
{
"role": "user",
"content": "Tell me about the weather."
}
],
"thinkingLevel": "high"
}),
})
console.log(await resp.json())- ⚠ Responses include
thought_signatureartifacts — pass them back unmodified on subsequent turns (dropping them triggers 400s or quality loss).
OpenRouter · openai-chat · google/gemini-3-flash-preview
curl 'https://openrouter.ai/api/v1/chat/completions' \
-H 'Authorization: Bearer <YOUR_API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"model": "google/gemini-3-flash-preview",
"messages": [
{
"role": "user",
"content": "Tell me about the weather."
}
],
"reasoning": {
"effort": "medium"
}
}'Python (requests)
import requests
resp = requests.post(
"https://openrouter.ai/api/v1/chat/completions",
headers={
"Authorization": "Bearer <YOUR_API_KEY>",
"Content-Type": "application/json"
},
json={
"model": "google/gemini-3-flash-preview",
"messages": [
{
"role": "user",
"content": "Tell me about the weather."
}
],
"reasoning": {
"effort": "medium"
}
},
)
print(resp.json())TypeScript (fetch)
const resp = await fetch("https://openrouter.ai/api/v1/chat/completions", {
method: "POST",
headers: {
"Authorization": "Bearer <YOUR_API_KEY>",
"Content-Type": "application/json"
},
body: JSON.stringify({
"model": "google/gemini-3-flash-preview",
"messages": [
{
"role": "user",
"content": "Tell me about the weather."
}
],
"reasoning": {
"effort": "medium"
}
}),
})
console.log(await resp.json())- ⚠ Responses include
reasoning_contentartifacts — pass them back unmodified on subsequent turns (dropping them triggers 400s or quality loss).