Introduction
Gemini 3 Flash Preview handles interactive dialogue and branching stories through a preview chat interface with a 256,000-token input limit on SpicyAPI.
| Field | Value |
|---|---|
| Input | Text |
| Output | Text |
| Required | messages |
| Optional | Gemini 3 Flash Preview: |
| Input context | 256,000 tokens |
| Maximum output | 65,536 tokens (default 16,384) |
| Response | Gemini 3 Flash Preview returns a chat.completion response, or SSE chunks when streaming is requested. |
| Settlement | Measured input, cached input and output tokens |
Key features & highlights
The lane for high-frequency short turns
In a scene that runs hundreds of turns an hour, what people feel is the unit price and the time to first token, not the model's peak ability. That is the job this one is here for: cheap enough that every line from every player can go through a model, fast enough that the conversation never stalls on a spinner.
Decide per turn whether to think twice
For Gemini 3 Flash Preview, reasoning_effort accepts minimal, low, medium, high and defaults to medium; compare measured token usage when changing how much deliberation a request needs.
It can change under you
A preview model's lifecycle belongs to Google, and behaviour or availability can shift without notice. Decide which model this one falls back to before the day it is withdrawn.
Request parameters
| Parameter | Required | Description |
|---|---|---|
messages | Yes | Build the Gemini 3 Flash Preview conversation in chronological messages using text, |
max_tokens | No | Gemini 3 Flash Preview reserves |
reasoning_effort | No | For Gemini 3 Flash Preview, |
stop | No | In Gemini 3 Flash Preview, stop accepts up to four ending sequences; matching text is omitted and billing covers the tokens actually produced before termination. at least 1 characters · at least 1 items · at most 4 items |
seed | No | Use seed to compare one changed input at a time in Gemini 3 Flash Preview; identical seeds do not promise identical answers or alter token rates. |
temperature | No | Gemini 3 Flash Preview accepts temperature from 0 to 2, default 1; test changes against your own task rather than treating lower values as a correctness guarantee. |
top_p | No | For Gemini 3 Flash Preview sampling comparisons, adjust |
tools | No | Up to 128 function definitions per request. at most 128 items |
tool_choice | No | With Gemini 3 Flash Preview, |
response_format | No | Ask for a JSON object and name every key in the system message - this is how branching options come back parseable. |
Pricing
Input $0.45 / Output $2.70 per 1 million tokens
Use cases
Turn-by-turn roleplay
Keep the character sheet, the world rules and the tone in one system message and send only the new line each turn. At hundreds of turns an hour, the unit price and the time to first token decide how the scene feels far more than the model's ceiling does.
Narration and branching options
Ask for the next beat plus three choices, request a JSON object with response_format and name every key in the system message so the shape of the options stays stable. Every screen of a text adventure is this one call.
Tiering a long session
Send the routine exchanges here and send the turns that matter - a reveal, a confrontation, forty turns folded into a paragraph - to a more expensive model. Both are OpenAI-shaped, so only the model id changes.
Bulk labelling and cleanup
Tagging chat logs, rewriting summaries, folding free text into fixed fields. These are jobs where the price per call, not peak reasoning, decides whether they are worth running at all.
Prompt guide & pro tips
Character in system, scene in user
The character sheet, the world rules and the narration style belong in one system message; each turn only appends the new user line and the assistant's reply. Holding the system message steady is what lets you tell which line changed the voice.
Switch effort per turn, not per integration
Run the routine back-and-forth on low for a faster first token, then send the turn that resolves something at high. Same endpoint, same body, one string different.
Cap the output limit at the length of a turn
The default is 16,384. For turn-by-turn play, 300 to 800 keeps the model from answering with a whole chapter; the 65,536 ceiling is there for the times you actually want a long passage.
Decide how the history gets trimmed
256,000 tokens is plenty for one scene, but every turn re-sends the whole thread, so input tokens grow with the turn count. Fold older turns into a running summary and keep the recent ones verbatim.
Gemini 3 Flash Preview handles interactive dialogue and branching stories through a preview chat interface with a 256,000-token input limit on SpicyAPI.
The lane for high-frequency short turns
In a scene that runs hundreds of turns an hour, what people feel is the unit price and the time to first token, not the model's peak ability. That is the job this one is here for: cheap enough that every line from every player can go through a model, fast enough that the conversation never stalls on a spinner.
Decide per turn whether to think twice
For Gemini 3 Flash Preview, reasoning_effort accepts minimal, low, medium, high and defaults to medium; compare measured token usage when changing how much deliberation a request needs.
It can change under you
A preview model's lifecycle belongs to Google, and behaviour or availability can shift without notice. Decide which model this one falls back to before the day it is withdrawn.
Turn-by-turn roleplay
Keep the character sheet, the world rules and the tone in one system message and send only the new line each turn. At hundreds of turns an hour, the unit price and the time to first token decide how the scene feels far more than the model's ceiling does.
Narration and branching options
Ask for the next beat plus three choices, request a JSON object with response_format and name every key in the system message so the shape of the options stays stable. Every screen of a text adventure is this one call.
Tiering a long session
Send the routine exchanges here and send the turns that matter - a reveal, a confrontation, forty turns folded into a paragraph - to a more expensive model. Both are OpenAI-shaped, so only the model id changes.
Bulk labelling and cleanup
Tagging chat logs, rewriting summaries, folding free text into fixed fields. These are jobs where the price per call, not peak reasoning, decides whether they are worth running at all.
Character in system, scene in user
The character sheet, the world rules and the narration style belong in one system message; each turn only appends the new user line and the assistant's reply. Holding the system message steady is what lets you tell which line changed the voice.
Switch effort per turn, not per integration
Run the routine back-and-forth on low for a faster first token, then send the turn that resolves something at high. Same endpoint, same body, one string different.
Cap max_tokens to the length of a turn
The default is 16,384. For turn-by-turn play, 300 to 800 keeps the model from answering with a whole chapter; the 65,536 ceiling is there for the times you actually want a long passage.
Decide how the history gets trimmed
256,000 tokens is plenty for one scene, but every turn re-sends the whole thread, so input tokens grow with the turn count. Fold older turns into a running summary and keep the recent ones verbatim.
Gemini 3 Flash Preview reserves max_tokens for both thinking and the visible answer: default 16,384, ceiling 65,536, with reasoning counted as output usage.
Gemini 3 Flash Preview remains subject to its own content rules even though SpicyAPI adds no filter; use authorized material and respect privacy, consent and applicable terms.
max_tokens
Gemini 3 Flash Preview reserves max_tokens for both thinking and the visible answer: default 16,384, ceiling 65,536, with reasoning counted as output usage.
messages
Build the Gemini 3 Flash Preview conversation in chronological messages using text, image_url, video_url, audio_url and input_audio; all messages share the 256,000-token input budget; inline video and audio together are limited to 14 MB.
reasoning_effort
For Gemini 3 Flash Preview, reasoning_effort accepts minimal, low, medium, high and defaults to medium; compare measured token usage when changing how much deliberation a request needs.
response_format
Ask for a JSON object and name every key in the system message - this is how branching options come back parseable.
seed
Use seed to compare one changed input at a time in Gemini 3 Flash Preview; identical seeds do not promise identical answers or alter token rates.
stop
In Gemini 3 Flash Preview, stop accepts up to four ending sequences; matching text is omitted and billing covers the tokens actually produced before termination.
temperature
Gemini 3 Flash Preview accepts temperature from 0 to 2, default 1; test changes against your own task rather than treating lower values as a correctness guarantee.
tool_choice
With Gemini 3 Flash Preview, tool_choice can leave selection automatic, disable tools, require a call or name the function your workflow must invoke.
tools
Up to 128 function definitions per request.
top_p
For Gemini 3 Flash Preview sampling comparisons, adjust top_p within 0.01–1 while keeping temperature fixed so the effect of one control remains visible.
Gemini 3 Flash Preview remains subject to its own content rules even though SpicyAPI adds no filter; use authorized material and respect privacy, consent and applicable terms. Use Gemini 3 Flash Preview only with lawful, consensual adult material; content involving minors is prohibited.
Gemini 3 Flash Preview remains subject to its own content rules even though SpicyAPI adds no filter; use authorized material and respect privacy, consent and applicable terms.
Gemini 3 Flash Preview remains subject to its own content rules even though SpicyAPI adds no filter; use authorized material and respect privacy, consent and applicable terms. Use Gemini 3 Flash Preview only with lawful, consensual adult material; content involving minors is prohibited.
Gemini 3 Flash Preview remains subject to its own content rules even though SpicyAPI adds no filter; use authorized material and respect privacy, consent and applicable terms.
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-flash-preview/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.



















