How to Use Gemini 4 Neon: Access Options, API Quick Start, Thinking Levels and Limits
Use Gemini 4 Neon in the Gemini app, AI Studio or the API: Python and REST quick start, thinking levels, structured output, caching and the limits to know.
Table of contents
- Where you can use Gemini 4 Neon
- What you need to know before writing code
- Quick start with Python (Gemini API)
- Quick start with REST (curl)
- Choosing a thinking level
- Structured JSON output
- Breaking changes if you're migrating from older Gemini models
- Using Neon on Google Cloud (Agent Platform)
- Limits and caveats
You can use Gemini 4 Neon in four ways: in the Gemini app (Google AI Pro and Ultra plans), in Google AI Studio, through the Gemini API on the paid tier using the model ID gemini-4-neon, and through Google Cloud's Gemini Enterprise Agent Platform for business deployments. For developers, getting started means installing a recent google-genai SDK, setting an API key and choosing a thinking level, the one setting that most affects both quality and cost.
This guide covers the practical side: where to access Neon, a working Python and REST quick start, how thinking levels, structured output and caching behave, and the parameter changes that trip people up when moving from older Gemini models. If you want the launch background (pricing, positioning against Carbon and Hydrogen, and how to read Google's benchmark claims), start with our Gemini 4 Neon explainer. This article does not repeat that material.
Where you can use Gemini 4 Neon
According to Google's launch post, Neon rolled out on November 18, 2026 to these surfaces:
| Surface | Who it suits | Access |
|---|---|---|
| Gemini app | Everyday users who want deeper analysis | Google AI Pro and Ultra subscribers |
| Google AI Studio | Developers testing prompts before writing code | Gemini API paid tier |
| Gemini API | Developers building apps and agents | Paid tier, API key |
| Google Antigravity | Agentic coding | Paid AI Pro and Ultra subscribers |
| Gemini for business / Agent Platform | Companies needing Google Cloud controls | Via API and model dropdown; Cloud docs describe regional endpoints |
Google did not announce a free tier for Neon. The model card notes that access varies by channel and subscription tier, so check your own account before you build around it.
Fastest way to try it: Google AI Studio
If you just want to see how Neon handles your prompts, AI Studio is the quickest path. Google's announcement links directly to a new chat with model=gemini-4-neon selected. From there you can paste a prompt, change the thinking level, and use Get code to export the request once it works. Your project needs billing enabled, since Neon sits on the paid tier.
What you need to know before writing code
These are the specifications that shape how you call the model, taken from the model card and Google Cloud's developer guide:
- Model ID:
gemini-4-neon. - Inputs: text, images, audio, video and documents such as PDFs. The Cloud guide also lists Office and OpenDocument formats.
- Token limit: a combined input-plus-output window of up to 1,048,576 tokens (about 1M). This is a shared budget, so a huge prompt leaves less room for the answer.
- Output: up to roughly 64K tokens by default for a normal (synchronous) request. Google says up to 1M is possible through background "long decode", which the Cloud docs tie to the
v1beta1API on Agent Platform. - Knowledge cutoff: March 2026, per the model card. Use Google Search grounding when you need anything more recent.
- Thinking levels:
LOW,MEDIUM,HIGH(default) andXHIGH.
If tokens and context windows are new to you, our guide to how large language models work explains why thinking and output tokens count against the same budget.
Quick start with Python (Gemini API)
1. Install the SDK
Google's Gemini 4 documentation asks for google-genai version 2.34.0 or later. Install it in a virtual environment (see our venv guide if you hit an externally-managed-environment error):
python3 -m venv .venv
source .venv/bin/activate # Windows: .venv\Scripts\activate
pip install --upgrade "google-genai>=2.34.0"
2. Set your API key
Create a key in Google AI Studio, then export it. The SDK reads GEMINI_API_KEY (or GOOGLE_API_KEY) automatically:
export GEMINI_API_KEY="your-key-here" # PowerShell: $env:GEMINI_API_KEY="your-key-here"
Never commit the key to Git. Keep it in an environment variable or a secrets manager.
3. Make your first request
from google import genai
from google.genai import types
client = genai.Client() # picks up GEMINI_API_KEY
response = client.models.generate_content(
model="gemini-4-neon",
contents="Review this function for bugs and suggest a fix:\n\ndef avg(xs): return sum(xs) / len(xs)",
config=types.GenerateContentConfig(
thinking_config=types.ThinkingConfig(thinking_level="HIGH"),
),
)
print(response.text)
usage = response.usage_metadata
print("input:", usage.prompt_token_count,
"thinking:", usage.thoughts_token_count,
"output:", usage.candidates_token_count)
Printing usage_metadata is worth doing from day one. Thinking tokens are billed, and the thoughts_token_count field shows how much of each response went to reasoning rather than the visible answer.
Quick start with REST (curl)
The Gemini API's REST endpoint takes the same request in camelCase JSON. The API key goes in the x-goog-api-key header:
curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-4-neon:generateContent" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-H "Content-Type: application/json" \
-X POST \
-d '{
"contents": [{"parts": [{"text": "Explain the difference between a mutex and a semaphore in three sentences."}]}],
"generationConfig": {
"thinkingConfig": {"thinkingLevel": "LOW"}
}
}'
For JavaScript and TypeScript, Google's Gemini 4 page lists @google/genai 2.32.0 or later as the minimum SDK version.
Choosing a thinking level
Thinking level is Neon's main dial. Higher levels let the model reason longer before answering, which can improve results on hard problems but costs more output tokens and adds latency. Google says Neon's default HIGH setting is where its cost-per-task comparison with Carbon was measured, and that XHIGH produces its top benchmark scores.
A practical starting policy:
| Task | Suggested level |
|---|---|
| Classification, extraction, short rewrites | LOW |
| Summaries, routine code edits, Q&A over documents | MEDIUM |
| Multi-step analysis, debugging, agent planning (default) | HIGH |
| The hardest reasoning or coding tasks where accuracy beats cost | XHIGH |
Treat this as a starting point, not a rule. Run a small set of your real tasks at two adjacent levels and compare success rate and total tokens before you settle on one.
Structured JSON output
When your code needs to parse the answer, ask for JSON with a schema instead of instructions like "reply in JSON". The Cloud developer guide documents response_mime_type together with response_schema:
from pydantic import BaseModel
class BugReport(BaseModel):
severity: str
summary: str
fix: str
response = client.models.generate_content(
model="gemini-4-neon",
contents="def avg(xs): return sum(xs) / len(xs)",
config=types.GenerateContentConfig(
response_mime_type="application/json",
response_schema=BugReport,
thinking_config=types.ThinkingConfig(thinking_level="MEDIUM"),
),
)
report = BugReport.model_validate_json(response.text)
print(report.severity, "-", report.summary)
Breaking changes if you're migrating from older Gemini models
Google's Get started with Gemini 4 page lists several behaviour changes for the Gemini 4 family. These are the ones most likely to break existing code:
thinking_budgetis gone. Sending it, or the oldMINIMALlevel, returns HTTP 400. Replace token budgets withthinking_level. (The SDK still has these fields for older models, so your code will compile and then fail at runtime.)- Sampling settings are ignored.
temperature,top_pandtop_khave no effect. Google recommends steering behaviour with thinking level and response schemas instead. - Explicit caching is not supported. You can't pass
cached_content. Implicit caching applies automatically when requests share a prompt prefix of at least 4,096 tokens, so put stable content (system instructions, documents, codebase context) first and the changing question last. Thecached_content_token_countfield inusage_metadatashows whether a request hit the cache. - Stricter thought signatures in function calling. In multi-turn tool use, return the model's previous turns unchanged, including their
thought_signaturefields. Google warns that missing or duplicated signatures cause 400 errors orMALFORMED_FUNCTION_CALL. The official SDKs' chat helpers handle this for you, so use them instead of rebuilding message history by hand. - One shared token limit. Input and output now come out of a single ~1M budget, as described above.
Google's suggested migration paths are from Gemini 3.8 Flash to Neon or Hydrogen, and from Gemini 3.1 Pro Preview to Neon, Carbon or Argon.
Using Neon on Google Cloud (Agent Platform)
Teams that need Google Cloud IAM, regional controls or enterprise terms can call the same model through Gemini Enterprise Agent Platform. The Cloud developer guide lists global, us and eu locations and says access is currently limited to verified enterprise customers in select regions. The Python client changes only in how it's created:
client = genai.Client(enterprise=True, project="your-project-id", location="global")
Alternatively, set GOOGLE_GENAI_USE_ENTERPRISE=True, GOOGLE_CLOUD_PROJECT and GOOGLE_CLOUD_LOCATION=global, and authenticate with Application Default Credentials (gcloud auth application-default login). The generate_content calls above work unchanged.
Limits and caveats
- No announced free tier. Budget for paid usage from the start. The per-token prices are in our explainer.
- Thinking costs money. Every processed token is billed, including reasoning. Watch
thoughts_token_count, especially atXHIGH. - Long outputs need special handling. The 1M-token long decode is a background feature with its own API version requirements. Normal requests stop at around 64K output tokens.
- Benchmarks aren't your workload. Google's published results come from its own announcement. Test Neon on a sample of your real tasks before switching production traffic.
- Docs are moving. Neon launched days ago. Re-check Google's model and pricing pages before you commit to a design, because limits and availability can change after launch.
Frequently asked questions
+What is the model ID for Gemini 4 Neon?
Google uses gemini-4-neon. Its AI Studio launch link opens the model under that ID, and Google Cloud's developer guide uses the same string for Agent Platform.
+Can I use Gemini 4 Neon for free?
Google's launch post lists the Gemini API paid tier and paid Google AI Pro and Ultra subscriptions. It does not announce free-tier access, so plan on paying for API usage.
+Does Gemini 4 Neon support temperature and thinking_budget?
Google's Gemini 4 migration notes say temperature, top_p and top_k have no effect, and that thinking_budget and the MINIMAL thinking level return an HTTP 400 error. Use thinking_level instead.
+Which thinking level should I use with Gemini 4 Neon?
Start with the default, HIGH. Drop to LOW or MEDIUM for simple, latency-sensitive calls, and reserve XHIGH for the hardest tasks, because more thinking means more billed output tokens.
Sources & references
- Google — Introducing Gemini 4 Neon (Nov 18, 2026)
- Google DeepMind — Gemini 4 Neon model card (Nov 18, 2026)
- Google Cloud Documentation — Developer's guide to Gemini 4 Neon (Gemini Enterprise Agent Platform)
- Google Cloud Documentation — Get started with Gemini 4
- Google — Google Gen AI Python SDK (google-genai) on PyPI
Spotted an error? See our Corrections Policy.
- #gemini
- #gemini-api
- #llm
- #generative-ai
- #python
Dipak SuryawanshiFounder & Editor
Dipak Suryawanshi is a backend developer who works with Java and Spring Boot, focused on building APIs, clean architectures and developer tools. He founded KernelBrief, an independent technology publication based in India, sets its editorial direction and is responsible for everything published on it. Every KernelBrief article is researched and checked against primary sources such as official documentation, vendor advisories and release notes before it is published.
Related articles
Google Launches Gemini 4 Neon: Pricing, Availability and What Google Claims
Gemini 4 Neon costs $3/$15 per million tokens with a 1M-token context window. What Google confirmed, where to use it, and how to read its benchmarks.
· 6 min read
How to Generate and Use SSH Keys (Ed25519) on Windows, macOS and Linux
Create an Ed25519 SSH key, protect it with a passphrase, load it into ssh-agent on Windows, macOS or Linux, and add it to GitHub or a server.
· 6 min read
Prompt Engineering for Developers: Techniques That Work With Claude, GPT and Gemini
Practical prompt engineering for developers: clear instructions, examples, XML tags, long-context layout, reasoning and structured output, from vendor docs.
· 7 min read