Skip to content

Google Gemini

Gemini models are called through /v1/chat/completions; the same models are also available on /v1/responses. All of them accept text, image, video, audio, and PDF input, and produce text.

Model Context Max output Thinking levels
google/gemini-4-carbon 1,048,576 65,536 (non-streaming: 32,768) low, medium, high
google/gemini-4-argon 1,048,576 65,536 (non-streaming: 32,768) low, medium, high
google/gemini-4-neon 1,048,576 65,536 low, medium, high, xhigh
google/gemini-4-hydrogen 1,048,576 65,536 low, medium, high, xhigh
google/gemini-3.8-flash 1,048,576 65,536 low, medium, high
google/gemini-3.7-flash 1,048,576 65,536 low, medium, high
google/gemini-3.6-flash 1,048,576 65,536 minimal, low, medium, high
google/gemini-3.5-flash 1,048,576 65,536 minimal, low, medium, high
google/gemini-3.5-flash-lite 1,048,576 65,536 minimal, low, medium, high

Gemini 4 Carbon is Google's most capable reasoning model for the hardest coding, science, and long-horizon agent work. Gemini 4 Argon answers faster at the same unit prices and spends fewer tokens on the same task. Gemini 4 Hydrogen is the fast, lower-priced Gemini 4 model for everyday coding and agent work; its price is flat across the full 1M context. Gemini 4 Neon sits between Hydrogen and Carbon for complex coding, analysis, and science work; its price is also flat across the full 1M context. On the Gemini 4 models the context window is shared between input and output: a long input reduces how much output the same request can produce. Google caps a single response on Carbon and Argon at 65,536 tokens when streamed and 32,768 without streaming, and on Hydrogen and Neon at 65,536 tokens either way; for long output use stream: true and check finish_reason (length) to see whether the answer was cut. The message list cannot end with an assistant message; such a request returns an error.

On hard requests Carbon can think for several minutes before it answers. Use stream: true with this model, or raise your client timeout to at least 15 minutes. Neon can also take several minutes to answer; the same advice applies. Google ignores temperature and top_p on the Gemini 4 models; set the depth of the answer with the thinking level instead.

Terminal window
curl "$LLMTR_BASE_URL/v1/chat/completions" \
-H "Authorization: Bearer llmtr-your_key" \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemini-3.7-flash",
"messages": [
{ "role": "user", "content": "Find the bug in this function." }
],
"max_tokens": 2048
}'

The level can be set three ways. If more than one is present, precedence is reasoning_effort > reasoning.effort > suffix.

  1. Model slug suffix: google/gemini-3.7-flash:low
  2. Top-level field: { "reasoning_effort": "low" }
  3. Nested body field: { "reasoning": { "effort": "low" } }
Terminal window
curl "$LLMTR_BASE_URL/v1/chat/completions" \
-H "Authorization: Bearer llmtr-your_key" \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemini-3.7-flash",
"reasoning": { "effort": "high" },
"messages": [
{ "role": "user", "content": "Analyse the complexity of this algorithm." }
]
}'

Gemini 4 Carbon, Argon, Neon, Hydrogen, 3.8 and 3.7 Flash do not support minimal

Section titled “Gemini 4 Carbon, Argon, Neon, Hydrogen, 3.8 and 3.7 Flash do not support minimal”

This is their structural difference from the rest of the family. These models accept low, medium, and high, and Hydrogen and Neon also accept xhigh. The default is high on Hydrogen and Neon and medium on the others. Sending minimal is rejected by the gateway before the request reaches the upstream:

{
"error": {
"type": "invalid_request",
"message": "Model gemini-3.7-flash does not support reasoning effort \"minimal\". Supported: low, medium, high"
}
}

xhigh is the deepest thinking level of Hydrogen and Neon; it adds latency and token spend, so use it only for the hardest tasks. Sending max to either model applies xhigh. The other models in the table reject xhigh and max before the request reaches the upstream.

Terminal window
curl "$LLMTR_BASE_URL/v1/chat/completions" \
-H "Authorization: Bearer llmtr-your_key" \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemini-4-hydrogen",
"reasoning_effort": "xhigh",
"messages": [
{ "role": "user", "content": "Why do these two SQL queries return different results?" }
]
}'

For the general suffix rules see Reasoning Effort.

The figures below are Google's own list prices, in USD per 1M tokens. No LLMTR margin is added to model prices; the platform margin applies to credit top-ups only.

service_tier (priority, flex) is not applied on Gemini models: the request runs on the standard tier and bills at the standard rate. The field is reported in llmtr_dropped_parameters.

Gemini 4 Carbon and Argon introductory pricing

Section titled “Gemini 4 Carbon and Argon introductory pricing”

Google published the same time-limited introductory rate for these models. It ends at the close of 30 November 2026 and switches to standard pricing on 1 December 2026:

Item Through 2026-11-30 From 2026-12-01
Input (text, image, video, audio) $2.00 $4.00
Output (including thinking tokens) $10.00 $20.00
Context cache read $0.10 $0.20

These models only have Google's automatic cache; there is no separate cache creation and no cache storage charge. The switchover is automatic.

Gemini 3.8, 3.7 and 3.6 Flash introductory pricing

Section titled “Gemini 3.8, 3.7 and 3.6 Flash introductory pricing”

Google published the same time-limited introductory rate for these models. It ends at the close of 31 December 2026 and switches to standard pricing on 1 January 2027:

Item Through 2026-12-31 From 2027-01-01
Input (text, image, video, audio) $0.75 $1.50
Output (including thinking tokens) $3.75 $7.50
Context cache read $0.075 $0.15
Cache storage (1M token-hours) $0.50 $1.00

The switchover is automatic. The catalog holds both rates on record and applies whichever is in force, so the price page and billing change themselves on 1 January 2027.

Model Input Output Cache read
google/gemini-4-neon $3.00 $15.00 $0.15
google/gemini-4-hydrogen $1.50 $7.50 $0.075
google/gemini-3.5-flash $1.50 $9.00 $0.15
google/gemini-3.5-flash-lite $0.30 $2.50 $0.03

When the upstream serves part of a request from cache it reports that as cachedContentTokenCount. Those tokens are included in the total input count, not added on top. The gateway deducts them from the input line and bills them separately at the cache read rate; the same split is visible in the usage payload:

{
"usage": {
"prompt_tokens": 12809,
"prompt_tokens_details": { "cached_tokens": 12801 },
"completion_tokens": 16,
"total_tokens": 12825
}
}

cached_tokens is populated only when Google actually reports a cache hit. When it does not, the whole input is billed at the standard input price.

Every model in the table supports parallel function calling. Usage matches the OpenAI format; see Tool Calling for details.

JSON output is requested with OpenAI's response_format field, or with text.format on /v1/responses: {"type": "json_schema", ...} returns JSON that follows the schema, and {"type": "json_object"} returns free-form JSON; with json_object, ask for JSON in your prompt. Schemas with $defs/$ref, enum, additionalProperties: false, and nullable fields work. If the same request also sends Google's own fields (responseFormat, responseSchema, or responseJsonSchema inside extra_body.generationConfig), those take precedence.

Terminal window
curl "$LLMTR_BASE_URL/v1/chat/completions" \
-H "Authorization: Bearer llmtr-your_key" \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemini-4-argon",
"messages": [
{ "role": "user", "content": "What is the licence plate code and region of Ankara?" }
],
"response_format": {
"type": "json_schema",
"json_schema": {
"name": "plate",
"schema": {
"type": "object",
"properties": {
"plate": { "type": "integer" },
"region": { "type": "string" }
},
"required": ["plate", "region"],
"additionalProperties": false
}
}
}
}'

The models in the table can ground their answer in Google Search results. Search is requested inside extra_body.tools:

Terminal window
curl "$LLMTR_BASE_URL/v1/chat/completions" \
-H "Authorization: Bearer llmtr-your_key" \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemini-4-argon",
"messages": [
{ "role": "user", "content": "What is the weather forecast for Ankara today?" }
],
"extra_body": { "tools": [{ "googleSearch": {} }] }
}'

The OpenAI SDKs spread their extra_body parameter into the request body, so with an SDK use extra_body={"extra_body": {"tools": [{"googleSearch": {}}]}}. Search can be used in the same request as function tools in the tools field.

The model may run more than one search for a request. Each search query it runs bills at $14 per 1,000 queries on top of the tokens; no search charge applies when the answer comes back without a web source. The queries that ran appear in the response's grounding_metadata.webSearchQueries.

At most 10 search queries are billed per request; if the model runs more, the rest are not charged. A grounded request therefore needs enough balance for the tokens plus 10 queries ($0.14); only the queries that ran are billed.

The response carries a grounding_metadata field in addition to the OpenAI shape. It is in Google's format: the sources (groundingChunks), which part of the answer rests on which source (groundingSupports), and Google's Search Suggestions content (searchEntryPoint.renderedContent). When streaming, the field arrives on the final chunk. For the conditions on showing Search Suggestions, see Google's Grounding with Google Search terms.

Google Maps, code execution, URL context, and Google's other server-side tools are not available on these models. A request whose extra_body.tools carries anything other than function declarations and googleSearch is rejected with 400, with no charge.

Image, video, audio, and PDF input are sent as standard OpenAI content parts. For examples see Images, Audio, and Files.

google/gemini-decision-1 is a decision model that does not generate text: it evaluates the input against the yes/no, choice and score questions you define and returns a probability for each. It answers on /v1/systemone, not on the chat endpoints; for the request shape, media input and price see Structured Decisions.