Introduction
Gemini 2.5 Flash pairs a long document read with a concise answer, using hybrid reasoning for summaries and extraction.
| Field | Value |
|---|---|
| Input | Text |
| Output | Text |
| Required | messages |
| Optional | Gemini 2.5 Flash: |
| Input context | 1,048,576 tokens |
| Maximum output | 65,535 tokens (default 16,384) |
| Response | Gemini 2.5 Flash returns a chat.completion response, or SSE chunks when streaming is requested. |
| Settlement | Measured input, cached input and output tokens |
Key features & highlights
Long read, short answer
A contract, a log dump, a quarter of support tickets - the whole thing goes out in one message and comes back as three lines. That shape is what the 1,048,576-token window buys you, and it is why this id ended up in so many pipelines: the answer is short, so the expensive half of the bill stays small.
Three levels, one string
For Gemini 2.5 Flash, reasoning_effort accepts low, medium, high and defaults to medium; compare measured token usage when changing how much deliberation a request needs.
It does not know what came after
Google states a knowledge cutoff of January 2025 for this model, and it does not browse here. For anything newer - a library version, a price, a person's current job - put the facts in the prompt and ask it to work from those. A model that is asked about later events will still answer, and it will sound exactly as sure as when it is right.
Request parameters
| Parameter | Required | Description |
|---|---|---|
messages | Yes | Build the Gemini 2.5 Flash conversation in chronological messages using text, |
max_tokens | No | Gemini 2.5 Flash reserves |
reasoning_effort | No | For Gemini 2.5 Flash, |
stop | No | In Gemini 2.5 Flash, 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 2.5 Flash; identical seeds do not promise identical answers or alter token rates. |
temperature | No | 0 to 2, default 1. Push it towards 0 when the reply is parsed by code, raise it when the writing needs a looser voice. |
top_p | No | For Gemini 2.5 Flash sampling comparisons, adjust |
tools | No | Up to 128 function definitions per request. at most 128 items |
tool_choice | No | With Gemini 2.5 Flash, |
response_format | No | Ask for a JSON object and name every key in the system message - that is how a reply comes back parseable. |
Pricing
Input $0.285 / Output $2.375 per 1 million tokens
Use cases
One long document, one short answer
Contracts, logs, transcripts, a diff between two revisions. Hand the whole thing over in a single message and ask for three bullets; the window is large enough that you rarely have to split the input, and the short answer keeps the output side of the bill small.
Bulk labelling and cleanup
Tagging tickets, rewriting summaries, folding free text into fixed fields. These are jobs where the price per call decides whether they are worth running at all, and where a familiar id makes it easy to hand the pipeline to someone else.
Structured extraction
Ask for a JSON object with response_format, name every key in the system message and hold temperature low so the shape stays stable. Your application still validates what comes back.
A drop-in for an existing OpenAI client
If something already calls gemini-2.5-flash through an OpenAI-shaped client, pointing it here is a change of base URL, key and model string. That makes it a low-cost way to compare this endpoint against what you run today.
Prompt guide & pro tips
Send the document, keep the answer short
Put the material in one user message and say how long the answer may be.
max_tokensbetween 300 and 1,000 is usually right for a summary or a diff; the 65,535 ceiling is for the times you really do want a long passage.Switch effort per request, not per integration
Run the bulk of the traffic on low, then send the request that has to be right at high. Same endpoint, same body, one string different.
Supply anything newer than January 2025
Paste the release notes, the current price list, the changed policy - then ask the question against that text. Treat the model as a reader of what you gave it rather than as a source of current facts.
Point an existing OpenAI client at it
Base URL, key, model string. The SDK, the retry logic and the streaming loop stay as they are, which is what makes this a cheap thing to try before committing.
Gemini 2.5 Flash pairs a long document read with a concise answer, using hybrid reasoning for summaries and extraction.
Long read, short answer
A contract, a log dump, a quarter of support tickets - the whole thing goes out in one message and comes back as three lines. That shape is what the 1,048,576-token window buys you, and it is why this id ended up in so many pipelines: the answer is short, so the expensive half of the bill stays small.
Three levels, one string
For Gemini 2.5 Flash, reasoning_effort accepts low, medium, high and defaults to medium; compare measured token usage when changing how much deliberation a request needs.
It does not know what came after
Google states a knowledge cutoff of January 2025 for this model, and it does not browse here. For anything newer - a library version, a price, a person's current job - put the facts in the prompt and ask it to work from those. A model that is asked about later events will still answer, and it will sound exactly as sure as when it is right.
One long document, one short answer
Contracts, logs, transcripts, a diff between two revisions. Hand the whole thing over in a single message and ask for three bullets; the window is large enough that you rarely have to split the input, and the short answer keeps the output side of the bill small.
Bulk labelling and cleanup
Tagging tickets, rewriting summaries, folding free text into fixed fields. These are jobs where the price per call decides whether they are worth running at all, and where a familiar id makes it easy to hand the pipeline to someone else.
Structured extraction
Ask for a JSON object with response_format, name every key in the system message and hold temperature low so the shape stays stable. Your application still validates what comes back.
A drop-in for an existing OpenAI client
If something already calls gemini-2.5-flash through an OpenAI-shaped client, pointing it here is a change of base URL, key and model string. That makes it a low-cost way to compare this endpoint against what you run today.
Send the document, keep the answer short
Put the material in one user message and say how long the answer may be. max_tokens between 300 and 1,000 is usually right for a summary or a diff; the 65,535 ceiling is for the times you really do want a long passage.
Switch effort per request, not per integration
Run the bulk of the traffic on low, then send the request that has to be right at high. Same endpoint, same body, one string different.
Supply anything newer than January 2025
Paste the release notes, the current price list, the changed policy - then ask the question against that text. Treat the model as a reader of what you gave it rather than as a source of current facts.
Point an existing OpenAI client at it
Base URL, key, model string. The SDK, the retry logic and the streaming loop stay as they are, which is what makes this a cheap thing to try before committing.
Gemini 2.5 Flash reserves max_tokens for both thinking and the visible answer: default 16,384, ceiling 65,535, with reasoning counted as output usage.
Google publishes a knowledge cutoff of January 2025 for this model, and it does not browse on this endpoint. Anything later has to arrive in the prompt - if it does not, the answer is written from a January 2025 view of the world and carries no warning that it is out of date.
Gemini 2.5 Flash 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 2.5 Flash reserves max_tokens for both thinking and the visible answer: default 16,384, ceiling 65,535, with reasoning counted as output usage.
messages
Build the Gemini 2.5 Flash conversation in chronological messages using text, image_url, video_url, audio_url and input_audio; all messages share the 1,048,576-token input budget; inline video and audio together are limited to 14 MB.
reasoning_effort
For Gemini 2.5 Flash, reasoning_effort accepts 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 - that is how a reply comes back parseable.
seed
Use seed to compare one changed input at a time in Gemini 2.5 Flash; identical seeds do not promise identical answers or alter token rates.
stop
In Gemini 2.5 Flash, stop accepts up to four ending sequences; matching text is omitted and billing covers the tokens actually produced before termination.
temperature
0 to 2, default 1. Push it towards 0 when the reply is parsed by code, raise it when the writing needs a looser voice.
tool_choice
With Gemini 2.5 Flash, 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 2.5 Flash sampling comparisons, adjust top_p within 0.01–1 while keeping temperature fixed so the effect of one control remains visible.
Gemini 2.5 Flash 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 2.5 Flash only with lawful, consensual adult material; content involving minors is prohibited.
Gemini 2.5 Flash remains subject to its own content rules even though SpicyAPI adds no filter; use authorized material and respect privacy, consent and applicable terms.
Gemini 2.5 Flash 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 2.5 Flash only with lawful, consensual adult material; content involving minors is prohibited.
Gemini 2.5 Flash 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-2.5-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.



















