Gemini 3.5 Flash API
Gemini 3.5 Flash is deprecated upstream and official API calls redirect to 3.6 Flash. Platform supply versions must be checked independently.
Gemini 3.5 Flash capabilities
- Context window
- 128,000 tokens
- Max output
- 16,384 tokens
- Supports
- Tool calling
- Streaming
- Reasoning
- Endpoints
/v1beta/models/gemini-3.5-flash:generateContent/v1beta/models/gemini-3.5-flash:streamGenerateContent/v1/interactions/v1beta/interactions
API Usage Examples
API documentation ↗curl 'https://newrouters.com/v1beta/models/gemini-3.5-flash:generateContent' \
-H "Content-Type: application/json" \
-H "x-goog-api-key: $MODEL_API_KEY" \
--data '{
"contents": [
{
"role": "user",
"parts": [
{
"text": "Explain how an HTTP request works in three concise steps."
}
]
}
],
"generationConfig": {
"maxOutputTokens": 1024
}
}'const apiKey = process.env.MODEL_API_KEY;
const response = await fetch("https://newrouters.com/v1beta/models/gemini-3.5-flash:generateContent", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-goog-api-key": apiKey
},
body: JSON.stringify({
"contents": [
{
"role": "user",
"parts": [
{
"text": "Explain how an HTTP request works in three concise steps."
}
]
}
],
"generationConfig": {
"maxOutputTokens": 1024
}
})
});
if (!response.ok) throw new Error(await response.text());
console.log(await response.text());import os
import json
import requests
response = requests.post(
"https://newrouters.com/v1beta/models/gemini-3.5-flash:generateContent",
headers={
"Content-Type": "application/json",
"x-goog-api-key": os.environ["MODEL_API_KEY"]
},
json=json.loads("{\"contents\":[{\"role\":\"user\",\"parts\":[{\"text\":\"Explain how an HTTP request works in three concise steps.\"}]}],\"generationConfig\":{\"maxOutputTokens\":1024}}"),
timeout=300,
)
response.raise_for_status()
print(response.text)curl 'https://newrouters.com/v1beta/models/gemini-3.5-flash:streamGenerateContent?alt=sse' \
-H "Content-Type: application/json" \
-H "x-goog-api-key: $MODEL_API_KEY" \
--data '{
"contents": [
{
"role": "user",
"parts": [
{
"text": "Explain how an HTTP request works in three concise steps."
}
]
}
],
"generationConfig": {
"maxOutputTokens": 1024
}
}'const apiKey = process.env.MODEL_API_KEY;
const response = await fetch("https://newrouters.com/v1beta/models/gemini-3.5-flash:streamGenerateContent?alt=sse", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-goog-api-key": apiKey
},
body: JSON.stringify({
"contents": [
{
"role": "user",
"parts": [
{
"text": "Explain how an HTTP request works in three concise steps."
}
]
}
],
"generationConfig": {
"maxOutputTokens": 1024
}
})
});
if (!response.ok) throw new Error(await response.text());
console.log(await response.text());import os
import json
import requests
response = requests.post(
"https://newrouters.com/v1beta/models/gemini-3.5-flash:streamGenerateContent?alt=sse",
headers={
"Content-Type": "application/json",
"x-goog-api-key": os.environ["MODEL_API_KEY"]
},
json=json.loads("{\"contents\":[{\"role\":\"user\",\"parts\":[{\"text\":\"Explain how an HTTP request works in three concise steps.\"}]}],\"generationConfig\":{\"maxOutputTokens\":1024}}"),
timeout=300,
)
response.raise_for_status()
print(response.text)curl 'https://newrouters.com/v1/interactions' \
-H "Content-Type: application/json" \
-H "x-goog-api-key: $MODEL_API_KEY" \
--data '{
"model": "gemini-3.5-flash",
"input": "Explain how an HTTP request works in three concise steps.",
"stream": false
}'const apiKey = process.env.MODEL_API_KEY;
const response = await fetch("https://newrouters.com/v1/interactions", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-goog-api-key": apiKey
},
body: JSON.stringify({
"model": "gemini-3.5-flash",
"input": "Explain how an HTTP request works in three concise steps.",
"stream": false
})
});
if (!response.ok) throw new Error(await response.text());
console.log(await response.text());import os
import json
import requests
response = requests.post(
"https://newrouters.com/v1/interactions",
headers={
"Content-Type": "application/json",
"x-goog-api-key": os.environ["MODEL_API_KEY"]
},
json=json.loads("{\"model\":\"gemini-3.5-flash\",\"input\":\"Explain how an HTTP request works in three concise steps.\",\"stream\":false}"),
timeout=300,
)
response.raise_for_status()
print(response.text)curl 'https://newrouters.com/v1beta/interactions' \
-H "Content-Type: application/json" \
-H "x-goog-api-key: $MODEL_API_KEY" \
--data '{
"model": "gemini-3.5-flash",
"input": "Explain how an HTTP request works in three concise steps.",
"stream": false
}'const apiKey = process.env.MODEL_API_KEY;
const response = await fetch("https://newrouters.com/v1beta/interactions", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-goog-api-key": apiKey
},
body: JSON.stringify({
"model": "gemini-3.5-flash",
"input": "Explain how an HTTP request works in three concise steps.",
"stream": false
})
});
if (!response.ok) throw new Error(await response.text());
console.log(await response.text());import os
import json
import requests
response = requests.post(
"https://newrouters.com/v1beta/interactions",
headers={
"Content-Type": "application/json",
"x-goog-api-key": os.environ["MODEL_API_KEY"]
},
json=json.loads("{\"model\":\"gemini-3.5-flash\",\"input\":\"Explain how an HTTP request works in three concise steps.\",\"stream\":false}"),
timeout=300,
)
response.raise_for_status()
print(response.text)Set MODEL_API_KEY in your server environment. Requests use this model’s native API and your account pricing.
All parameters and combination rules
Protocol & capabilities
gemini · gemini-3.5-flash
- Context limit
- 128000
- Maximum output
- 16384
tools · stream · reasoning
Pricing
Gemini 3.5 Flash pricing
Estimate one request, then choose a budget for your workflow.
| Usage | Quantity | Rate | Cost |
|---|---|---|---|
| tokens | $1.2/ 1M | $0.0012 | |
| tokens | $0.12/ 1M | $0 | |
| tokens | $7.2/ 1M | $0.0036 | |
| tokens | $7.2/ 1M | $0 |
Public USD estimate. Your account rate and final recorded usage determine the actual charge.
All specifications and prices
| Specification | Our price | Official reference |
|---|---|---|
| Input | $1.2 / 1M tokens | $1.5 About 20% less than official |
| Cached input | $0.12 / 1M tokens | $0.15 About 20% less than official |
| Output | $7.2 / 1M tokens | $9 About 20% less than official |
| Reasoning | $7.2 / 1M tokens | $9 About 20% less than official |
Compare Gemini 3.5 Flash with related models
| Specification | Gemini 3.5 Flash | Gemini 3.1 Pro Preview | Gemini 4 Argon |
|---|---|---|---|
| Provider | |||
| Input → output | TextText | TextText | TextText |
| Selection basis | Current model | Same gemini protocol · Same billing units | Same gemini protocol · Same billing units |
| Context / max output | 128,000 / 16,384 | 128,000 / 16,384 | 1,048,576 / 65,536 |
| Starting price | $1.2 / 1M tokens | $1.6 / 1M tokens | $1.6 / 1M tokens |
Choose by the input types, output settings and billing unit your workflow needs. Try the same prompt across models to compare results for your own use case.
What Is Gemini 3.5 Flash?
Gemini 3.5 Flash is deprecated upstream and official API calls redirect to 3.6 Flash. Platform supply versions must be checked independently.
Official model information ↗ · 2026-10-14
Gemini 3.5 Flash Platform specifications
| Specification | Gemini 3.5 Flash |
|---|---|
| Model ID | gemini-3.5-flash |
| Provider | |
| API | /v1beta/models/{model}:generateContent · /v1beta/models/{model}:streamGenerateContent · /v1/interactions · /v1beta/interactions |
| Context window | 128,000 tokens |
| Maximum output | 16,384 tokens |
| Declared capabilities | Tools · Streaming · Reasoning |
Gemini 3.5 Flash API · Common Questions
Everything you need to know about API access, pricing and model capabilities.
How is Gemini 3.5 Flash billed?
Charges depend on the recorded token usage and your account rates. Input, output and supported cache or reasoning categories are listed separately in the pricing table. The calculator uses public USD prices; the final usage receipt determines the charge.
How do I get an API key?
Choose “Get API access” to open the integration guide. Sign in to your NewRouters account, prepare a key with access to this model and copy an API example.
Which API endpoints can I use?
Supported endpoints: /v1beta/models/{model}:generateContent、/v1beta/models/{model}:streamGenerateContent、/v1/interactions、/v1beta/interactions. Choose an endpoint in the API examples to see its native request format.
Does the model support streaming?
The current model route declares streaming support. Use the native endpoint’s streaming option and consume its events. Usage already completed may still be billed if the connection is interrupted.
Can I use tools or structured output?
Tools: supported. Structured output: not declared. Request fields follow the selected native endpoint.
Where can I check usage and charges?
Keep the request ID and open your account’s LLM usage records to inspect request status, token counts and charges. Prompt and answer content are not a conversation history in this view.