APIMart
Back to all models

Gemini 4 Neon API

GoogleModel ID gemini-4-neonText modelReleased November 18, 2026

Use Gemini 4 Neon to trace a bug that runs across several modules, run an agent task that calls many tools in a row, or reconcile the figures in a PDF report with the spreadsheet behind it.

Max input
1,048,576 tokens
Max output
65,536 tokens
Input → output
Text, Image, Audio, Video → Text
Knowledge cutoff
March 2026
  • Image input
  • Streaming
  • Cached input pricing
  • OpenAI SDK compatible

Gemini 4 Neon API use cases

Each use case comes with an illustrative example: source material, a prompt and a hand-written sample answer, not actual model output. Copy the prompt, swap in your own material and try it on Gemini 4 Neon.

Try Gemini 4 Neon with your own material

Bugs that span several modules

Send the failing behavior together with every file on the call path, and have Gemini 4 Neon trace where the value goes wrong and which module should own the fix. Run the full test suite after the change, not just the test that failed.

Example: Why is the discount applied twice?

Material

cart.py
cart_total() subtracts coupon.discount from the subtotal before returning it.
checkout.py
charge_amount() calls cart_total() and then subtracts coupon.discount again.
Bug report
A $10 coupon on a $50 order charged the customer $30.

PromptFind where the discount is applied, explain why it happens twice, and propose one fix that keeps a single place responsible for discounts.

Sample answer · written by hand to show the reasoning

cart_total() already returns $40, and charge_amount() takes the $10 off a second time. Remove the subtraction from charge_amount() so cart.py stays the only place that applies coupons, then add a test that a $10 coupon on $50 charges $40.

About the Gemini 4 Neon API

  • Between Hydrogen and Carbon in Gemini 4

    Google built Gemini 4 Neon from Gemini 4 Carbon to balance depth and efficiency: deeper than Hydrogen for complex coding and analysis, lighter than Carbon for production use. In Google Antigravity, it directs parallel Hydrogen sub-agents as an orchestrator.

  • Four thinking levels, including xhigh

    Gemini 4 Neon supports low, medium, high and xhigh, with high as the default. Use xhigh for the hardest reasoning, and medium when you are moving from Gemini 4 Argon and want similar response times.

  • Reads PDFs, spreadsheets, audio and video

    Input covers text, images, audio and video, and it reads PDFs and Office documents directly. Input and output share one context window, and the knowledge cutoff is March 2026.

  • Gemini 4 Neon API key and access

    You don’t need a separate Gemini 4 Neon API key: one APIMart key works for every model. Requests go through an OpenAI Chat Completions-compatible endpoint with the model ID gemini-4-neon.

Gemini 4 Neon official benchmark results

Selected results Google published at launch.

  • Agents' Last Exam v1.1

    75.8%

    Multi-step professional workflows. Ahead of GPT-6.2 Sol (73.0%) and Claude Opus 5.5 (71.6%).

  • CursorBench 4.1

    65.4%

    Cursor’s coding benchmark. Claude Opus 5.5 scores 58.1%.

  • SWE-sweep

    39.0%

    Development tasks completed in a code repository (provider harness). Claude Opus 5.5 scores 10.1% and GPT-6.2 Sol 8.3%.

  • AutomationBench

    56.3%

    Business process automation. Ahead of Claude Opus 5.5 (42.5%) and GPT-6.2 Sol (41.3%).

  • GraphWalks

    95.2%

    Graph traversal (BFS) across 256K–1M tokens of context, scored by F1. GPT-6.2 Sol scores 80.1% and Claude Opus 5.5 66.8%.

  • Terminal-Bench 4.1

    65.2%

    Coding tasks completed in a terminal. Close to Claude Opus 5.5 (65.8%) and ahead of GPT-6.2 Sol (61.5%).

How to call the Gemini 4 Neon API

To call Gemini 4 Neon, you only need an APIMart API key and your existing OpenAI SDK, or send plain HTTP requests.

POST /v1/chat/completions
curl https://api.apimart.ai/v1/chat/completions \
  -H "Authorization: Bearer $APIMART_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "gemini-4-neon",
  "messages": [
    {
      "role": "user",
      "content": "Describe how to design a clear API in three sentences."
    }
  ],
  "stream": false
}'

Gemini 4 Neon access details

Model IDgemini-4-neon
Base URLhttps://api.apimart.ai/v1
Endpoint/chat/completions

Common parameters

model
Required
messages
Required
stream
Optional
max_tokens
Optional
temperature
Optional
All request parameters, response fields and error codes

Gemini 4 Neon API request parameters

Gemini 4 Neon uses the general chat endpoint, POST /v1/chat/completions, with a JSON body. model and messages are required; every other parameter is optional.

ParameterTypeRequiredDescription
modelstringYesModel ID. Use gemini-4-neon for this model.
messagesarrayYesConversation messages. Each message has a role (system, user, or assistant) and content. Include earlier messages for multi-turn conversations.
streambooleanNoWhether to stream the output. true returns chunks over SSE, false returns the full response at once. Default: true.
temperaturenumberNoOutput randomness, 0–2. Default: 1.0. Lower values give more deterministic output.
top_pnumberNoNucleus sampling, 0–1. Default: 1.0. Adjust this or temperature, not both.
max_tokensintegerNoMaximum number of tokens to generate for the reply.
frequency_penaltynumberNoFrequency penalty, -2.0 to 2.0. Default: 0. Positive values reduce repeated wording.
presence_penaltynumberNoPresence penalty, -2.0 to 2.0. Default: 0. Positive values encourage new topics.
stopstring | arrayNoUp to 4 stop sequences. Generation stops when any of them appears.
nintegerNoNumber of replies to generate. Default: 1.

Response fields

The response contains the fields below. Token usage is returned in usage, which you can use to check costs.

FieldTypeDescription
idstringUnique identifier for the request.
modelstringThe model that handled the request.
choicesarrayList of replies. Each item contains message (role and content) and finish_reason.
usageobjectToken usage: prompt_tokens, completion_tokens, and total_tokens.

Error codes

Failed requests return an error object with code, message, and type.

StatusTypeMeaning
400invalid_request_errorInvalid request parameters.
401authentication_errorThe API key is invalid or missing.
402payment_requiredInsufficient account balance.
403permission_errorNo permission to access this resource.
429rate_limit_errorToo many requests. Retry later.
500server_errorInternal server error.
502bad_gatewayGateway error. The service is temporarily unavailable.

Gemini 4 Neon API pricing

The Gemini 4 Neon API is billed by token usage, and prices depend on your membership tier. Prices below are per million tokens; 1 US dollar = 10 credits.

ItemGoldCurrent pricePlatinumDiamondOfficial priceYou save
Input24Credits~$2.422.8Credits~$2.2821.6Credits~$2.1630Credits~$320%
Cached input1.2Credits~$0.121.14Credits~$0.1141.08Credits~$0.1081.5Credits~$0.1520%
Output120Credits~$12114Credits~$11.4108Credits~$10.8150Credits~$1520%

Prices are for reference only. View full pricing

Why call Gemini 4 Neon API through APIMart

  • 20% below official pricing

    Gemini 4 Neon API pricing is billed by token usage. Gold to Diamond member prices are 20%–28% below Google's official prices, and cached input costs just $0.12 per 1M tokens.

    See membership prices
  • One API key for 500+ models

    Gemini 4 Neon, the rest of its family and 500+ models from GPT, Claude, Gemini and more share one API key and one account balance. Switching models is just a change to the model parameter.

  • Change two lines of existing code

    If you already use the OpenAI SDK, point base_url at https://api.apimart.ai/v1 and swap in your APIMart API key. Requests and responses keep the same format.

  • Try it online before you code

    Try Gemini 4 Neon with your own material in the Playground, no code or setup needed, and integrate once you like the results.

    Open Playground

Which Google model should you choose?

Base prices per 1M tokens (USD). Your Gemini 4 Neon API key works for every model in the table; just change the model parameter.

Differences between Google models
ComparisonGemini 4 Neon CurrentGemini 3 Pro PreviewGemini 3 Flash PreviewGemini 3.1 Pro PreviewGemini 3.5 Flash-LiteGemini 3.6 FlashGemini 3.8 FlashGemini 4 HydrogenGemini 4 ArgonGemini 4 Carbon
Best forComplex coding, Long-running agents, Analytical reasoningMultimodal reasoning, Video and audio input, Two thinking levelsFast multimodal tasks, Agentic coding, Four thinking levelsAgentic coding, Long multimodal inputs, Three thinking levelsHigh-volume tasks, Data extraction, SubagentsAgentic tasks, Chart and screen reading, Long documentsLong-horizon coding, Video, audio & PDF input, Enterprise workflowsEveryday coding, Agentic tasks, Chat & questionsSoftware engineering, Knowledge work, Long video and documentsLong-horizon agents, Software engineering, Scientific reasoning
Input typesText, Image, Audio, VideoText, Image, Video, Audio, FileText, Image, Video, Audio, FileText, Image, Video, Audio, FileText, Image, Video, Audio, FileText, Image, Video, Audio, FileText, Image, Video, Audio, FileText, Image, Audio, VideoText, Image, Audio, VideoText, Image, Audio, Video
Knowledge cutoffMarch 2026———March 2026March 2026March 2026March 2026March 2026March 2026
Input price$2.4$1.6$0.4$1.6$0.24$0.6$0.6$1.2$1.6$3.2
Output price$12$9.6$2.4$9.6$2$3$3$6$8$16

Gemini 4 Neon FAQ

How is Gemini 4 Neon different from Gemini 4 Hydrogen and Carbon?

Google positions Carbon for the hardest long-horizon projects, Hydrogen for fast everyday execution, and Neon in between, balancing depth and efficiency. Neon is adapted from Carbon. Hydrogen costs less per token, and Google’s migration guide recommends keeping high-volume everyday agent loops on it. On APIMart all of them share one endpoint and API key; you only change the model parameter.

When was Gemini 4 Neon released?

Google released Gemini 4 Neon on November 18, 2026. It is available on APIMart under the model ID gemini-4-neon.

What changes when moving from Gemini 4 Argon to Gemini 4 Neon?

Google’s migration guide names gemini-4-neon as the upgrade for gemini-3.1-pro-preview, and for general coding and enterprise reasoning workloads on gemini-4-argon. The default thinking level becomes high, up from medium on Argon; if your workload relied on medium, set it explicitly to keep similar response times. On APIMart the base_url and API key stay the same: change the model parameter and rerun your own prompts to compare the output.

Which parameters cause errors with Gemini 4 Neon?

According to Google’s developer guide, sending frequency_penalty or presence_penalty, setting the thinking level to minimal, or using a thinking budget returns a 400 error, and temperature, top_p and top_k are ignored. Use the four thinking levels instead: low, medium, high (the default) and xhigh.

Does Gemini 4 Neon cache repeated prompt prefixes?

Yes. Gemini 4 Neon uses implicit caching: when requests share a prefix of at least 4,096 tokens, the cached part is billed at the cached-input rate shown in the pricing table. Put fixed content such as instructions and reference documents at the start of the prompt to benefit. Explicit caching is not supported.

How can I try this model online?

Click Start chatting or Open Playground to visit the existing APIMart Playground. Select Gemini 4 Neon in the text category to start exploring.

Which model ID does the Gemini 4 Neon API use?

Set model to gemini-4-neon. Copy the exact ID from the page heading or the integration details panel.

Is it compatible with the OpenAI SDK?

You can keep the OpenAI SDK. Set base_url to https://api.apimart.ai/v1, provide your APIMart API key, and use the model ID on this page.

What is the context window of Gemini 4 Neon?

On APIMart, Gemini 4 Neon accepts up to 1,048,576 input tokens per request. Your prompt, earlier messages, and file content all count toward it.

How many tokens can it output at once?

Gemini 4 Neon can output up to 65,536 tokens in a single reply. Use the max_tokens parameter to set a lower limit.

How much does the Gemini 4 Neon API cost?

The Gemini 4 Neon API on APIMart is billed by token, and prices depend on your membership tier. Gold: $2.4 per million input tokens and $12 per million output tokens. Diamond: $2.16 per million input tokens and $10.8 per million output tokens. Prices may change; the pricing page has the current rates.

Does it support streaming?

Yes. The general chat endpoint streams over SSE by default. Set stream to false to receive the complete response at once.

How do I get an API key?

Sign in to APIMart and create a key on the API Keys page, then send it in the Authorization: Bearer header. The same key also works for other models on the platform.