Top.Mail.Ru
General icon
General
Галерея icon
Галерея
Unitool Labs icon
Unitool Labs
Блог icon
Блог
MCP icon
MCP
← All models

Gemini 3.8 Flash

gemini-3.8-flash
Vendor
google
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

Inputinput260.3175
Cached inputcached_input26.0318
Cache write, 1 hourcache_write_1h260.3175
Outputoutput1,301.5877

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.8-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.8-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.8-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 ?? "");

We use cookies

By continuing to use the site you agree to our Privacy Policy.