Gemini 3.5 Flash
gemini-3.5-flash- Vendor
- Context, tokens
- 1M
- Max output, tokens
- 64K
Capabilities
- Images in the input (image_url)
- PDF in the input (file)
- Tools (tools)
- Reasoning
- temperature and top_p
- Web search (web_search)
reasoning_effort levels: low, medium, high
Price, balance tokens per 1M tokens
Inputinput | 231.3934 |
Cached inputcached_input | 23.1393 |
Cache write, 1 hourcache_write_1h | 231.3934 |
Outputoutput | 1,388.3602 |
Parameters
The model takes a standard Chat Completions request. The full list of parameters and what happens to the rest: Chat (LLM)
Example request
curl
curl https://api.unitool.ai/v1/chat/completions \
-H "Authorization: Bearer $UNITOOL_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-3.5-flash",
"max_tokens": 1024,
"messages": [{"role": "user", "content": "Hello"}]
}'Python (openai)
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.unitool.ai/v1", api_key=os.environ["UNITOOL_API_KEY"])
stream = client.chat.completions.create(
model="gemini-3.5-flash",
max_tokens=1024,
messages=[{"role": "user", "content": "Hello"}],
stream=True,
)
for chunk in stream:
if chunk.choices and chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)JavaScript (openai)
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.unitool.ai/v1", apiKey: process.env.UNITOOL_API_KEY });
const stream = await client.chat.completions.create({
model: "gemini-3.5-flash",
max_tokens: 1024,
messages: [{ role: "user", content: "Hello" }],
stream: true,
});
for await (const chunk of stream) process.stdout.write(chunk.choices[0]?.delta?.content ?? "");