Introduction
Call gemini/3.8-flash/chat for fast multimodal chat and agent loops across text, images, video clips, and audio with minimal-to-high reasoning effort.
| Field | Value |
|---|---|
| Input | Text |
| Output | Text |
| Required | messages |
| Optional | Gemini 3.8 Flash: |
| Context window | 1,048,576 tokens |
| Reply ceiling | 65,535 tokens (default 16,384) |
| Modalities | Text, image, video, and audio input; text output |
| Metering | Gemini 3.8 Flash settles on measured input, cached input, and output tokens. |
Key features & highlights
Inspect video and audio in the same thread
Send video_url, audio_url, input_audio, and image_url parts directly to Gemini 3.8 Flash alongside conversation history so visual and spoken cues stay aligned.
Scale reasoning from minimal to high
Dial down to minimal for sub-second routing and short replies, then step up to medium or high when a turn requires multi-file debugging or cross-checking.
One-million-token working memory
Hold full module trees, transcripts, and tool traces inside a single 1,048,576-token window instead of trimming context every few turns.
Request parameters
| Parameter | Required | Description |
|---|---|---|
messages | Yes | Supply chronological Gemini 3.8 Flash turns containing text, |
max_tokens | No | Gemini 3.8 Flash shares |
reasoning_effort | No | Select minimal, low, medium, or high on Gemini 3.8 Flash (default medium) to trade latency against deeper verification. |
stop | No | Provide up to four stop strings for Gemini 3.8 Flash; generation halts before emitting the matched sequence and bills tokens generated up to that point. at least 1 characters · at least 1 items · at most 4 items |
seed | No | Set an integer seed on Gemini 3.8 Flash when comparing single-variable prompt edits; identical seeds do not guarantee bit-identical text. |
temperature | No | Gemini 3.8 Flash accepts temperature from 0 to 2 (default 1); keep values modest for deterministic extraction or tool arguments. |
top_p | No | Tune |
tools | No | Declare up to 128 OpenAI-format function tools per Gemini 3.8 Flash request; your host app executes returned calls. at most 128 items |
tool_choice | No | Use |
response_format | No | Request |
Pricing
Input $0.4875 / Output $2.4375 per 1 million tokens
Use cases
Triage video and audio clips at scale
Feed short screen recordings, ad cuts, or voice notes into Gemini 3.8 Flash to extract timestamps, spoken summaries, and structured review tags.
Run responsive coding and tool agents
Pair minimal or low effort with up to 128 tool definitions for quick edits, then switch to high effort only on tricky architectural checks.
Prompt guide & pro tips
Pick effort per step
Use minimal when you want immediate plain replies and reserve medium or high for multi-step verification that merits extra reasoning tokens.
Keep the output limit above reasoning spend
Because Gemini 3.8 Flash counts reasoning inside
max_tokens, raise the ceiling above 4,096 whenever medium or high effort is active.
Gemini 3.8 Flash is Google's rapid multimodal chat model designed for high-frequency agent loops, media inspection, and structured extraction across a 1,048,576-token window.
Four reasoning tiers per turn
Choose minimal for low-latency routing and simple lookups, low or medium for daily coding, and high when Gemini 3.8 Flash must verify multi-step logic before responding.
Native image, video, and audio input
Attach image_url, video_url, audio_url, or base64 input_audio parts directly inside messages so Gemini 3.8 Flash analyzes clips and recordings without external transcription.
Budgeting thinking inside max_tokens
Reasoning tokens draw from the same 1–65,535 max_tokens ceiling as the final text. Keep max_tokens roomy on medium or high effort, or drop to minimal for short replies.
Tool calls and JSON extraction
Register up to 128 function definitions and pair response_format with clear system instructions to produce schema-ready payloads inside automated pipelines.
SpicyAPI adds no extra moderation layer to Gemini 3.8 Flash; live checks passed adult text prompts, though lawful consensual use remains mandatory and minors are prohibited.
Verify source rights and review Gemini 3.8 Flash outputs before deploying code, media summaries, or automated actions in production.
API quick start
curl --fail-with-body -sN https://api.spicyapi.ai/v1/chat/completions \
-H "Authorization: Bearer $SPICY_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{
"model": "google/gemini-3.8-flash/chat",
"messages": [
{
"role": "user",
"content": "Summarise the following release notes into three bullet points."
}
],
"stream": true
}' \
| jq --unbuffered -Rrj 'select(startswith("data: ")) | .[6:] | select(. != "[DONE]") | fromjson | if .error then "\n[error] \(.error.message)\n" else (.choices[0].delta.content? // empty) end'
See the API reference for authentication, the complete schema, polling, and error handling.















