Gemini 3.8 Flash
by google · family gemini
Facts
| Release date | 2026-09-03 |
|---|---|
| Retired date | — |
| Knowledge cutoff | — |
| Context (max) | 1,048,576 |
| Max output | — |
| Modalities | text, image, audio, video → text |
| Aliases | gemini-3.8-flash |
| Open weights | no |
| Description | Fourth Flash generation (Sep 3, 2026): 1M context, text+image+audio+video input, $0.75/$3.75 per Mtok on OpenRouter (Google list $1.50/$7.50, cache $0.15). thinking_level control like the 3.5+ Flash line. |
Unknown values are shown as —.
Offerings
| Provider | Wire ID | Variant | Endpoint | Protocol | Status | Price (USD / Mtok) | Reasoning |
|---|---|---|---|---|---|---|---|
| NEAR AI Cloud | google/gemini-3.8-flash | flash | chat | openai-chat | ga | 0.75 / 3.75 | effort · default on · returns reasoning_content |
| OpenCode Zen | gemini-3.8-flash | flash | chat-completions | openai-chat | ga | 1.50 / 7.50 | effort · default on · returns reasoning_content · round-trips reasoning_content |
| OpenRouter | google/gemini-3.8-flash | flash | chat-completions | openai-chat | ga | 0.75 / 3.75 | effort · default on · returns reasoning_content · round-trips reasoning_content |
Reasoning controls
NEAR AI Cloud· google/gemini-3.8-flash· chat effort
reasoning_effort minimallowmedium●high
effort · default on · returns reasoning_content
OpenCode Zen· gemini-3.8-flash· chat-completions effort
reasoning.effort nonelowmedium●highxhighmax
effort · default on · returns reasoning_content · round-trips reasoning_content
OpenRouter· google/gemini-3.8-flash· chat-completions effort
reasoning.effort nonelowmedium●highxhighmax
effort · default on · returns reasoning_content · round-trips reasoning_content
Example requests
NEAR AI Cloud · openai-chat · google/gemini-3.8-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.8-flash",
"messages": [
{
"role": "user",
"content": "Tell me about the weather."
}
],
"reasoning_effort": "medium"
}'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.8-flash",
"messages": [
{
"role": "user",
"content": "Tell me about the weather."
}
],
"reasoning_effort": "medium"
},
)
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.8-flash",
"messages": [
{
"role": "user",
"content": "Tell me about the weather."
}
],
"reasoning_effort": "medium"
}),
})
console.log(await resp.json())OpenCode Zen · openai-chat · gemini-3.8-flash
curl 'https://opencode.ai/zen/v1/chat/completions' \
-H 'Authorization: Bearer <YOUR_API_KEY>' \
-H 'Content-Type: application/json' \
-d '{
"model": "gemini-3.8-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.8-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.8-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).
OpenRouter · openai-chat · google/gemini-3.8-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.8-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.8-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.8-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).