Gemini 4 Neon API Documentation: Model ID, Pricing, Context and Code Examples

A practical walkthrough of the Gemini 4 Neon API: model ID gemini-4-neon, 1,048,576-token context, $3/$15 pricing, reasoning levels, endpoints and sample code.

Gemini 4 Neon launched on November 18, 2026, and the first question most developers ask is not about benchmarks — it is about which numbers in the documentation are per-token API charges and which are consumer subscription prices. That distinction matters, because a $3 input rate and a Pro plan fee are different kinds of figures, and confusing them destroys a cost estimate before the first request goes out. This guide walks through the Gemini 4 Neon API documentation as it stands on 2026-11-24: the model ID, endpoint shapes, pricing tiers, context limits, reasoning controls, and the places where official docs stop and third-party listings take over.

Where the Gemini 4 Neon API documentation lives

Google splits the developer material across several pages rather than one manual, so it helps to know which page answers which question. The model ID and parameter list live in the AI Studio model docs; pricing lives on a separate page; the model card covers intended use and limitations; and the launch announcement covers positioning.

ResourceLinkWhat it settles
Model documentationGemini 4 Neon model documentationModel ID, inputs, outputs, context parameters
Developer docs hubGemini API documentationGetting started, SDKs, general API behavior
API pricingGemini API pricingPer-token rates for direct API access
Model cardGemini 4 Neon model cardIntended use, limitations, distribution channels
Launch announcementIntroducing Gemini 4 NeonRelease date and positioning
Product pageGemini — Google DeepMindFamily overview
Third-party listingGemini 4 Neon on OpenRouterAggregated pricing, providers, benchmarks, sample code

The canonical API model ID is gemini-4-neon. If you route through a gateway such as OpenRouter, the same model is addressed as google/gemini-4-neon — one string difference that causes a surprising number of 404s.

Model ID, release date and positioning in one place

Google announced Neon on November 18, 2026, as a fast, mid-priced member of the Gemini 4 family. It is aimed at coding and agentic work: repository and terminal coding, web builds, multi-turn tool use, and multimodal STEM problems. Google positions it as a step up from Gemini 4 Hydrogen that targets Gemini 4 Carbon quality at higher speed and lower cost — a marketing claim worth testing against your own workload rather than treating as a spec.

If you are coming from the consumer side, note that app access and API access are separate tracks. A third-party walkthrough video published around launch reports that Gemini app access is rolling out to Google AI Pro and Ultra subscribers rather than to every account. That is a creator report, not an official statement, and it says nothing about API quotas — those are a different system entirely.

Gemini 4 Neon API pricing per token

Every price below comes from the OpenRouter model listing, current as of 2026-11-24. Google's own pricing page may quote the same rates for direct AI Studio and Vertex access, so check it before you commit to a budget.

Line itemRate
Input$3.00 per 1M tokens
Output$15.00 per 1M tokens
Cache read$0.15 per 1M tokens
Cache write$0.08333 per 1M tokens
Image input$3.00 per 1M tokens
Input audio$3.00 per 1M tokens
Input audio cache$0.15 per 1M tokens
Web search$14.00 per 1K calls

Two details change how those numbers behave in practice. First, thinking tokens count as output, so a high reasoning setting costs more than the completion alone suggests. Second, the weighted average actually paid on OpenRouter at the time of writing was $0.5855 per million input tokens and $14.30 per million output tokens — caching pulls effective input cost well below list price, though output barely moves.

API rates are not subscription prices. A $15 output rate is a usage charge; a Gemini app subscription is a flat plan. The walkthrough video makes this point explicitly, and it is the single most common budgeting error with this model.

Context window, output length and thinking levels

The documented context window is 1,048,576 tokens. Input, thinking and output all draw from that shared budget, so a long agent transcript eats into the room available for the answer.

Output limits need careful reading. The OpenRouter listing states a maximum of 65,536 completion tokens per request in its FAQ, while also describing long decode of up to 1M output tokens through continuation. Treat 65,536 as the per-request ceiling and continuation as the mechanism for longer generations.

Thinking depth is controlled through four levels: low, medium, high and xhigh. High is the default according to the launch-period walkthrough. More thinking means more latency and more billed tokens, so the level is a cost dial as much as a quality dial. Note that context ceilings can differ by access surface, so confirm the limit for the channel you actually use in the model documentation.

Inputs, outputs and supported API parameters

Neon accepts audio, files such as PDFs, images, text and video as input, and returns text. Tool calling and structured outputs are both supported.

ParameterTypeDefaultWhat it does
reasoningmap—Enables thinking, sets effort, caps reasoning tokens, or excludes reasoning from the response
max_tokensinteger—Upper bound on generated tokens
temperaturefloat1Response variety
top_pfloat1Nucleus sampling cutoff
seedinteger—Deterministic sampling for repeatable requests
response_formatmap—Forces a specific output format, including JSON schema
toolsarray—Function calling definitions
tool_choicestring or object—Controls whether and which tool is called

A minimal request against the Gemini 4 Neon API

The gateway example below uses the OpenAI-compatible chat completions endpoint. Swap the model slug to gemini-4-neon if you are calling Google directly instead of a gateway.

curl -N https://openrouter.ai/api/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -d '{
  "model": "google/gemini-4-neon",
  "stream": true,
  "messages": [
    {"role": "user", "content": "Hello"}
  ]
}'

Three endpoint shapes are documented for this model: POST https://openrouter.ai/api/v1/chat/completions, POST https://openrouter.ai/api/v1/responses for the Responses API format, and POST https://openrouter.ai/api/v1/messages for the Anthropic Messages format with text, images, PDFs, tools and extended thinking. Streaming is enabled by adding "stream": true to the request body.

Handling reasoning tokens correctly in multi-turn work

Reasoning-enabled models expose a reasoning_details array in the response. The documented pattern is to preserve that array intact when you pass messages back for the next turn — it lets the model continue from where its reasoning stopped instead of starting cold. Dropping it is the quiet failure mode in agent loops: nothing errors, the quality just sags.

When streaming, usage information arrives in the final chunk. Read the reasoning token count from usage.completionTokensDetails.reasoningTokens there rather than estimating from text length, because visible output and billed output are not the same quantity.

Service tiers and providers that change the price

The same model is served at different rates depending on the tier you request through service_tier. All figures below are from the OpenRouter listing as of 2026-11-24.

TierInput per 1MOutput per 1MCache read per 1M
Google AI Studio / Vertex (standard)$3.00$15.00$0.15
Google AI Studio Flex$1.50$7.50$0.075
Google AI Studio Priority$5.40$27.00$0.27
Google Vertex Priority$5.40$27.00$0.27
Google Vertex EU in-region$3.30$16.50$0.165

Flex trades speed for cost; Priority buys throughput at roughly 1.8x standard rates. EU in-region routing runs through https://eu.openrouter.ai/api/v1, decrypts requests inside the EU, and routes only to European endpoints — and it fails closed rather than falling back outside the region. Access to that path requires a Business or Enterprise plan on the gateway.

Observed performance at the time of collection: median throughput of 85 tokens per second at the best provider, median latency around 4.06 seconds, 100% three-day uptime across providers, and 99.07% availability. Cache hit rates clustered between roughly 77% and 89% depending on provider.

Benchmarks as documented, not as promised

Third-party benchmark aggregates are useful context, not a guarantee for your project. The Artificial Analysis figures below were surfaced through the OpenRouter listing.

Reasoning effortIntelligence Index
Low44.1
Medium54.9
High59.6
Xhigh61.4

At the xhigh setting, the listing reports 63.6% on Terminal-Bench 4.0, 44.4% on FrontierCode-AA 2.0, 70.0% on Terminal-Bench-Science, 71.3% on HLE-Diamond, 79.3% on AutomationBench-AA and 66.8 on the Engineering Index, ranking third of 66 models on the Intelligence Index. Those are steep drops at lower effort levels — Terminal-Bench 4.0 falls to 32.8% at low. Treat the reasoning level as a real performance variable and benchmark your own tasks at the level you intend to ship.

What the Gemini 4 Neon API documentation does not tell you

Some things are simply not established in the available material, and guessing at them would be worse than leaving them blank:

  • Free tier and quotas: not disclosed. No supplied source states a free allowance, credit grant or rate limit for Neon.
  • Official repository or model weights: no Neon-specific GitHub repository or Hugging Face page was confirmed at the time of collection.
  • Independent quality testing: the launch-period walkthrough video states plainly that the model had not been independently tested at that point.
  • Consumer plan details: subscription eligibility varies by account and is not part of the API documentation.

For anything in that list, the AI Studio and DeepMind pages linked above are the places to check for updates rather than secondhand summaries.

FAQ

What is the Gemini 4 Neon model ID? gemini-4-neon in Google's own API documentation. Through a compatible gateway the slug is google/gemini-4-neon.

How much does an API call cost? $3.00 per million input tokens and $15.00 per million output tokens at standard tier, with cache reads at $0.15 per million, as of 2026-11-24 per the OpenRouter listing. Thinking tokens are billed as output.

How large is the context window? 1,048,576 tokens, shared across input, thinking and output. The per-request completion ceiling is documented as 65,536 tokens.

Does it support tools and structured output? Yes. It accepts tools and tool_choice for function calling, and a JSON schema in response_format for structured outputs.

How do I reduce thinking cost? Lower the reasoning effort through the reasoning parameter. The four levels are low, medium, high and xhigh, with high as the default.

Is there a free tier for the API? Not disclosed in the material reviewed for this guide. Check Google's official pricing page before assuming one exists.

This is an independent, unofficial guide to the Gemini 4 Neon API and is not affiliated with, endorsed by or sponsored by Google or Google DeepMind. Verify pricing, limits and parameters on the official AI Studio documentation before you build against them — those pages change, and they are always the source of record.