Skip to content
AI & Automation

gemini 4 neon api: model ID gemini-4-neon, 3 settings fail

Dec 2, 2026

Key Takeaways

Call Gemini 4 Neon by setting the model ID to gemini-4-neon on a paid-tier key, and remove temperature, top_p and top_k from every request before you switch. If your code already calls another Gemini 4 model, the switch is mostly a model-ID change plus a check of the default thinking level, because Neon defaults to high.

Gemini 4 Neon is a text-output model in Google's Gemini 4 family, exposed in the Gemini API under one stable ID, gemini-4-neon.

TL;DR: change the model ID, drop the sampling and caching fields, avoid minimal thinking, and set long timeouts.

  • Model ID: gemini-4-neon is stable, has no preview suffix, and runs on the paid tier only.

  • Sampling: remove temperature, top_p and top_k; in-range values are ignored and out-of-range values fail.

  • Thinking: low, medium, high (default) and xhigh are accepted; minimal is rejected with an error.

  • Caching: explicit caching is not supported, and implicit caching runs by default.

  • Time: hard prompts can take several minutes, so plan timeouts in minutes, not seconds.

  • Cost: thinking tokens bill at the output rate, so a higher thinking level raises spend.

How we evaluated these API settings

We scored the request settings that decide whether a call works, what it costs and how long it takes. The sources are Google's own API pages, which we opened on December 2, 2026, plus two independent measurements. We did not run API calls for this article, and every setting below is read from a page, not from a live request.

CriterionWeight (%)
Request compatibility: what breaks or gets dropped30
Thinking control: levels, default, rejected values25
Timeouts and output limits15
Caching and feature support15
Cost and migration effort15

Request compatibility carries the most weight because a dropped field fails silently in production, and a rejected field fails in a way that stops a job. Thinking control comes next because thinking tokens bill at the output rate and set the wait time. The weights are our judgment for a small B2B team, not a vendor score. Price and rival comparisons belong to other posts on this blog, so the head-to-head below is limited to the sibling model that Google's own API docs compare on the same features, Gemini 4 Carbon.

Neon against Carbon on the settings that matter

The table below carries facts from Google's docs. The notes after it are our analysis.

Setting or featuregemini-4-carbongemini-4-neon
Thinking levels acceptedlow, medium, highlow, medium, high, xhigh
Default thinking levelmediumhigh
minimal thinkingnot supportedrejected with an error
Explicit cachingnot supportednot supported
Implicit cachingsupportedsupported
Live APInot supportednot supported
Context window (shared input and output)1,048,576 tokens1,048,576 tokens

Both columns draw on Google's Carbon model page and Neon model page, with thinking defaults and minimal behavior taken from Google's release notes and thinking docs. Google's release notes say Neon defaults to high rather than medium, so a request that inherited a medium setting now spends more thinking tokens unless you set the level yourself. And xhigh is not among Carbon's listed levels, so do not copy an xhigh setting from Neon code to Carbon.

On price, 9to5Google reports Neon at $3 input and $15 output per 1M tokens, 25% cheaper than Carbon's post-promotion rate of $4 input and $20 output according to 9to5Google (2026).

Choose Neon for new API work where the xhigh level or the lower input rate matters. Keep Carbon if your code already pins gemini-4-carbon and the change would cost more engineering time than the input saving returns. Neither model fits live voice, because the Live API is unsupported on both.

Settings that fail or get ignored

SettingWhat Neon doesWhat to send instead
temperature, top_p, top_kIn-range values are ignored; out-of-range values return a 400 validation errorRemove the fields
thinking_level set to minimalRejected with an errorlow, medium, high or xhigh
cachedContents, caches.create, cached_contentExplicit caching is not supportedRemove the fields; implicit caching runs by default
Live APINot supportedUse standard request and response calls
Image or audio generationNot supported; output is text onlyGenerate text, and call a separate image tool if you need pictures

The 400 error is the one to check first. An out-of-range value is rejected loudly, but an in-range value is dropped without a message, so a request can succeed while the setting you think you set does nothing. Delete the three sampling fields rather than tuning them.

Implicit caching runs by default on prompts of at least 4,096 tokens and discounts cached input by 95% on hits, according to Google AI Studio docs (2026). Our read: put the long, stable part of your prompt first in each call so it can match the cache; this is analysis, not a Google instruction.

For multi-turn work, the Interactions API takes previous_interaction_id, and in generateContent histories you return prior model turns unchanged, per Google's release notes. Do not ask the model through system instructions to write raw-text JSON tool calls when you declare no tools, because that can return MALFORMED_FUNCTION_CALL; declare tools natively or use structured outputs.

Thinking levels and what they cost in time

Neon has four levels. Artificial Analysis timed each one on its Intelligence Index, and the table shows the trade-off. Speed figures are at the time of writing (December 2, 2026).

Neon thinking levelAA Intelligence IndexTime per task (min)Output speed (tokens/s)Time to first answer token (s)
low443.89515.34
medium558.69624.35
high (default)6015.89529.21
xhigh6224.59765.22

Artificial Analysis time per task at xhigh: 24.5 minutes according to Artificial Analysis (2026), against a comparable-model median of 11.7 minutes. The same page calls xhigh "very verbose," with 283M output tokens on its index run against a comparable median of 67.7M.

VKTR reports a 1 million-token context window and four thinking levels, and Google's own claim that high costs 32% less per task than Carbon, according to VKTR (2026). The 32% is the maker's claim; treat it as unverified until your own runs confirm it.

On cost per task, Artificial Analysis lists Neon at xhigh at $6.44 against $7.76 for Carbon at high, according to Artificial Analysis (2026). Those are different settings on the same index, so use the gap as a budgeting input, not a like-for-like price.

Google's release notes say hard prompts can take several minutes, so set HTTP client timeouts to at least 15 minutes or use background execution. With background set to true and no max_output_tokens, the server stops after 65,536 tokens. max_output_tokens caps thinking and answer tokens together, so a high thinking level leaves less room for the answer.

Step-by-step: a working request

  1. Create the key in a paid-tier project. Neon is not available on the Free tier.

  2. Set model to gemini-4-neon.

  3. Delete temperature, top_p, top_k, and any cached_content or cachedContents fields.

  4. Set generation_config.thinking_level to high, or to xhigh for hard multi-step work. Never send minimal.

  5. Set the client timeout to at least 15 minutes, or move long jobs to background mode with max_output_tokens above 65,536.

  6. For follow-up turns, pass previous_interaction_id instead of resending the whole history.

  7. Read the answer as text; Neon's output is text only.

curl "https://generativelanguage.googleapis.com/v1beta/interactions" \
  -H "x-goog-api-key: $GEMINI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"gemini-4-neon","input":"Audit this payment retry queue for race conditions.","generation_config":{"thinking_level":"high"}}'

How to check the switch before production

Before you move a production route, run the new request beside your current one on a saved set of real prompts, and have a person who knows the task compare the answers. Google's thinking docs show two usage fields on an Interactions API response, usage.total_thought_tokens and usage.total_output_tokens, and say response pricing is the sum of output tokens and thinking tokens. Log both for every test call, along with the thinking level you sent and the time the call took.

Then repeat the same set at other levels. Google's release notes advise starting with high for most complex tasks, reserving xhigh for hard, multi-step problems where high falls short, and then picking the lowest thinking_level that meets your quality bar. Write that quality bar down before the test, such as which fields must be correct and which errors a reviewer will not accept, so the choice does not drift toward whichever answer reads best.

Check output limits in the same pass. The Neon model page lists a default maximum output of 65,536 tokens, and up to 1,048,576 with long decode. Google's release notes advise removing hardcoded low caps (such as 8,192) or raising max_output_tokens to 65,536. If you manage generateContent history yourself, confirm that your code also returns thought signatures unchanged on every turn.

Finally, match the job to the supported features. The model page lists text, image, video, audio and PDF as inputs, with text as the only output. It also lists function calling, structured outputs, code execution, file search and URL context as supported, so test each one your current request relies on instead of assuming it behaves as it did on your old model.

What a call costs

Pricing checked December 2, 2026.

The Standard mode costs $3.00 per 1M input tokens and $15.00 per 1M output tokens, with thinking tokens billed at the output rate, according to Google AI Studio pricing (2026). Cached input is $0.15 under Standard. Batch and Flex are each $1.50 input and $7.50 output, and Priority is $5.40 and $27.00, on the same page. If you turn on Google Search grounding, the page lists 5,000 free requests a month, then $14 per 1,000 requests.

Worked example (assumed numbers, not measured usage): a support-triage call with 20,000 input tokens, none cached, and 4,000 output tokens including thinking costs $0.12 at Standard rates, because 20,000 ÷ 1,000,000 × $3.00 = $0.06 for input and 4,000 ÷ 1,000,000 × $15.00 = $0.06 for output. The same call at Batch rates costs $0.06, since $0.03 input plus $0.03 output halves both sides. If 15,000 of those input tokens hit the cache at $0.15, the Standard total falls to $0.07725: 5,000 × $3.00 ÷ 1,000,000 = $0.015, 15,000 × $0.15 ÷ 1,000,000 = $0.00225, plus the $0.06 output, and the thinking level you set through thinking_level decides how many of those 4,000 output tokens are thinking.

Who this is for

This is for teams that already call a Gemini model from code, can move a request to a new model ID, and can wait minutes for hard prompts.

Red flags: you need the Live API, image or audio output, or explicit caching, and Neon supports none of the three.

Common mistakes

  • Copying temperature or top_p from older code, which is ignored in range or rejected out of range.

  • Sending thinking_level as minimal to get a faster reply; Neon rejects it.

  • Leaving cached_content fields in place after a move, when Neon has no explicit cache to attach them to.

  • Setting background to true without max_output_tokens, which stops the answer at 65,536 tokens.

  • Keeping a short default client timeout on a hard prompt that needs several minutes.

  • Assuming a free-tier key can call Neon.

Where DIY stitching and US Tech Automations differ

The usual alternative is a Zapier, Make or n8n flow that calls the endpoint with an HTTP step. Those tools can keep run history, retries, error branches and audit logs when you configure them, but your team still designs idempotency, escalation, access controls and maintenance, and every model change means editing the flow.

A proposed US Tech Automations build would be a configurable design, not a live deployment. A new helpdesk ticket starts the flow, the flow sends the ticket text to gemini-4-neon with thinking_level set to high and no sampling fields, and the output is a JSON label and summary written back to the ticket for an agent to accept or change. Prerequisites are a paid-tier API key, read and write access to ticket fields through the helpdesk's API or export, and a named reviewer. The human review points are any customer-facing reply and any ticket the model labels as billing or legal.

US Tech Automations could also run a second configurable check on each pull request. The trigger is a PR opened against a service that calls the API. The action scans request bodies for temperature, top_p, top_k, cached_content and thinking_level set to minimal. The output is a review comment listing each flagged line. Prerequisites are read access to the repository and CI logs. The review point is an engineer deciding whether each flagged line is live code before merging, since the check does not run the model or judge answer quality.

When NOT to use US Tech Automations: a single developer making a few calls a month is better served by a short script that uses the Interactions API and logs errors, because there is no queue to manage. A one-off prompt in the Gemini app needs no API key or workflow at all. A live voice or audio-chat feature cannot run on Neon, since the Live API is not supported.

FAQs

Is the model ID gemini-4-neon or a preview name?

The model ID is gemini-4-neon, which Google lists as a stable version with no preview suffix.

Can Gemini 4 Neon run on the free tier?

No; Google's pricing page says Neon is not available on the Free tier, so the key has to belong to a paid-tier project.

Do thinking tokens count toward cost and the output cap?

Yes, thinking tokens bill at the output rate, and max_output_tokens caps thinking and answer together.

Does explicit caching work on Neon?

No; explicit caching is not supported, so remove cachedContents and rely on implicit caching.

Why does a long request stop or time out?

Hard prompts can take several minutes, so the client timeout must be long, and a background call without max_output_tokens stops at 65,536 tokens.

Which thinking level should I start with?

Start with high, the default, and reserve xhigh for hard, multi-step problems, as Google's release notes advise.

Decide this month

If you already run a Gemini 4 model, treat the Neon switch as a one-sprint change: update the model ID, remove the sampling and caching fields, check the default thinking level, and raise timeouts. The code change is small, but cost and wait time depend on your own prompts, so run a measured batch of real requests before you move production traffic.

Once the change is scoped, see how US Tech Automations configures this for a proposed helpdesk or CI check, with the review points written in before go-live. For the broader process of moving customers off a deprecated API, read the API deprecation migration workflow guide. Teams comparing AI tools for content can start with the AI writing tools roundup for SaaS, and teams whose docs feed AI answers can read how SaaS companies get cited in Google AI Overviews.

About the Author

Garrett Mullins
Garrett Mullins
Workflow Specialist

Helping businesses leverage automation for operational efficiency.