Gemini 3.5 Flash
by google · family gemini
Facts
| Release date | 2026-05-19 |
|---|---|
| Retired date | — |
| Knowledge cutoff | — |
| Context (max) | 1,048,576 |
| Max output | 8,192 |
| Modalities | text, image, video, audio → text |
| Aliases | gemini-3.5-flash |
| Open weights | no |
| Description | GA Flash generation (migrated from gemini-3-flash-preview); 1M context, 65K output, text+image+video+audio+PDF input. $1.50/$9.00 per Mtok flat (output price includes thinking); caching $0.15. Controlled via thinking_level minimal/low/medium/high, default medium; thinking_budget is deprecated and sending both returns 400. |
Unknown values are shown as —.
Offerings
| Provider | Wire ID | Variant | Endpoint | Protocol | Status | Price (USD / Mtok) | Reasoning |
|---|---|---|---|---|---|---|---|
| NEAR AI Cloud | google/gemini-3.5-flash | flash | chat | openai-chat | ga | 1.50 / 9.00 | adaptive · default on · returns reasoning_content |
| OpenCode Zen | gemini-3.5-flash | flash | chat-completions | openai-chat | ga | 1.50 / 9.00 | effort · default on · returns reasoning_content |
| OpenRouter | google/gemini-3.5-flash | flash | chat-completions | openai-chat | ga | 1.50 / 9.00 | effort · default on · returns reasoning_content · round-trips reasoning_content |
Reasoning controls
NEAR AI Cloud· google/gemini-3.5-flash· chat adaptive
adaptive · default on · returns reasoning_content
OpenCode Zen· gemini-3.5-flash· chat-completions effort
reasoning.effort minimallowmedium●high
effort · default on · returns reasoning_content
OpenRouter· google/gemini-3.5-flash· chat-completions effort
reasoning.effort minimallowmedium●high
effort · default on · returns reasoning_content · round-trips reasoning_content
Example requests
NEAR AI Cloud · openai-chat · google/gemini-3.5-flash
curl 'https://cloud-api.near.ai/v1/chat/completions' \
-H 'Authorization: Bearer <YOUR_API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"model": "google/gemini-3.5-flash",
"messages": [
{
"role": "user",
"content": "Tell me about the weather."
}
]
}'Python (requests)
import requests
resp = requests.post(
"https://cloud-api.near.ai/v1/chat/completions",
headers={
"Authorization": "Bearer <YOUR_API_KEY>",
"Content-Type": "application/json"
},
json={
"model": "google/gemini-3.5-flash",
"messages": [
{
"role": "user",
"content": "Tell me about the weather."
}
]
},
)
print(resp.json())TypeScript (fetch)
const resp = await fetch("https://cloud-api.near.ai/v1/chat/completions", {
method: "POST",
headers: {
"Authorization": "Bearer <YOUR_API_KEY>",
"Content-Type": "application/json"
},
body: JSON.stringify({
"model": "google/gemini-3.5-flash",
"messages": [
{
"role": "user",
"content": "Tell me about the weather."
}
]
}),
})
console.log(await resp.json())OpenCode Zen · openai-chat · gemini-3.5-flash
curl 'https://opencode.ai/zen/v1/chat/completions' \
-H 'Authorization: Bearer <YOUR_API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"model": "gemini-3.5-flash",
"messages": [
{
"role": "user",
"content": "Tell me about the weather."
}
],
"reasoning": {
"effort": "medium"
}
}'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.5-flash",
"messages": [
{
"role": "user",
"content": "Tell me about the weather."
}
],
"reasoning": {
"effort": "medium"
}
},
)
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.5-flash",
"messages": [
{
"role": "user",
"content": "Tell me about the weather."
}
],
"reasoning": {
"effort": "medium"
}
}),
})
console.log(await resp.json())OpenRouter · openai-chat · google/gemini-3.5-flash
curl 'https://openrouter.ai/api/v1/chat/completions' \
-H 'Authorization: Bearer <YOUR_API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"model": "google/gemini-3.5-flash",
"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.5-flash",
"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.5-flash",
"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).