The Gemini 4 Price (2026): Neon API Costs and Examples
Unicorn API Team · · 9 min read
The Gemini 4 price you pay depends on which Gemini 4 variant you call, where you call it from, and how many tokens go in and come out. This page covers Gemini 4 Neon, Google’s 1M-context reasoning model released on 20 November 2026. It gives exact per-token rates on Unicorn API, converts them to dollars, works through a real request, and shows code that reports the cost of every call.
What is the Gemini 4 price on Unicorn API?
Gemini 4 Neon is billed per token. A token is a chunk of text, roughly three quarters of an English word on average, and it is the unit every language model API uses for billing. You pay one rate for the tokens you send (input), a higher rate for the tokens the model writes back (output), and a much lower rate for input the system has already seen and cached.
Here is the Gemini 4 price on Unicorn API, in credits and in dollars:
| Token type | Credits per 1M tokens | Dollars on a monthly plan ($0.01/credit) | Dollars with top-ups ($0.015/credit) |
|---|---|---|---|
| Input | 240 | $2.40 | $3.60 |
| Output | 1,200 | $12.00 | $18.00 |
| Cached input | 12 | $0.12 | $0.18 |
The OpenAI-compatible version, Gemini 4 Neon OpenAI, has exactly the same rates. The only difference is the interface, covered further down.
Credits come from two places. Monthly plans give you credits at $0.01 each: Starter is $25, Creator $50, Studio $100 and Pro $200 per month. Top-ups cost $0.015 per credit and never expire, which suits bursty or unpredictable usage. Full details are on the pricing page.
How Gemini 4 token pricing works
Three things decide what a single request costs.
Input tokens
Everything you send counts as input: the system prompt, the conversation history, any documents you paste in, and tool definitions if you use function calling. With a 1M-token context window, Gemini 4 Neon lets you send a very large amount of text, and that is where input costs can grow without you noticing. A single request that fills half the window is 500,000 input tokens, or 120 credits, before the model writes a word.
Output tokens
Output is five times the input rate: 1,200 credits per million against 240. Long answers, generated code files and verbose JSON all count here. Reasoning models also tend to produce internal thinking, and Gemini 4 Neon offers four thinking levels up to xhigh through the reasoning_effort field. More thinking usually means more tokens in the usage the model reports, so a higher effort level raises the Gemini 4 price of a request even when the visible answer is the same length. Always check the usage the API returns rather than counting the words in the reply.
Cached input tokens
Caching means that when the beginning of your prompt matches something sent recently, those tokens are billed at the cached rate of 12 credits per million instead of 240. That is a 20x discount. It pays off when many requests share a long, identical prefix: the same system prompt, the same reference document, the same codebase snapshot.
Unicorn API debits the exact cost from the usage the model reports, so you pay for what was actually processed. If you want to know the cost before running anything, POST /v1/models/price returns the exact price of a request ahead of time. The request format is in the API documentation.

Worked example: what a real Gemini 4 request costs
Abstract per-million rates are hard to feel, so here is a concrete case. Say you are building a code review assistant. Each request sends a 2,000-token system prompt, 8,000 tokens of diff and file context, and gets back a 2,000-token review.
Without caching
- Input: 10,000 tokens × 240 / 1,000,000 = 2.4 credits
- Output: 2,000 tokens × 1,200 / 1,000,000 = 2.4 credits
- Total: 4.8 credits, or $0.048 on a monthly plan
Notice that output is only a fifth of the tokens but half the bill. That pattern holds for most chat workloads.
With caching
Now suppose the system prompt and 6,000 tokens of shared repository context are identical across requests and get cached, leaving 2,000 fresh input tokens.
- Fresh input: 2,000 × 240 / 1,000,000 = 0.48 credits
- Cached input: 8,000 × 12 / 1,000,000 = 0.096 credits
- Output: 2,000 × 1,200 / 1,000,000 = 2.4 credits
- Total: about 2.98 credits, or roughly $0.03
Caching cut this request by about 38%. The output line did not move, which is why output length is usually the next thing to control.
Scaling to a month
At 100 uncached reviews a day for 30 days, you make 3,000 requests at 4.8 credits each: 14,400 credits, or $144. The Pro plan’s 20,000 credits covers that with room to spare. The Starter plan’s 2,500 credits covers about 520 of these requests. If you run the cached version instead, 3,000 requests cost about 8,930 credits, which fits inside the Studio plan’s 10,000.
This is the right way to think about the Gemini 4 price: not per million tokens, but per task, multiplied by how often the task runs.
Gemini 4 price vs GPT 6.2, Claude Opus 5.5 and DeepSeek
Price only matters relative to the alternatives. Here is how Gemini 4 Neon sits against the other recent chat models on Unicorn API, all on the same credit system:
| Model | Input (credits/1M) | Output (credits/1M) | Cached input (credits/1M) | Code review example (credits, uncached) |
|---|---|---|---|---|
| DeepSeek V4.1 Flash | 24 | 95 | 0.5 | 0.43 |
| GPT 6.2 Sol | 120 | 600 | 6 | 2.4 |
| Gemini 4 Neon | 240 | 1,200 | 12 | 4.8 |
| Claude Opus 5.5 | 320 | 1,600 | 32 | 6.4 |
| GPT 6.2 Astra | 480 | 2,400 | 24 | 9.6 |
Some plain ratios from that table:
- Gemini 4 Neon costs half as much per token as GPT 6.2 Astra.
- It costs 75% of Claude Opus 5.5 per token, and its cached rate is well below Opus’s 32 credits.
- GPT 6.2 Sol is half the Gemini 4 price per token.
- DeepSeek V4.1 Flash is 10x cheaper on input and about 12.6x cheaper on output.
Two of these models also charge for cache writes (GPT 6.2 Astra at 600 credits per million and GPT 6.2 Sol at 150, Claude Opus 5.5 at 32). Gemini 4 Neon lists no cache write charge on Unicorn API, which makes its caching maths simpler.
A cheaper model is not automatically a cheaper result. If a lower-priced model needs two attempts where Gemini 4 Neon needs one, or produces answers your team has to fix by hand, the per-token saving disappears. Treat the table as the cost side of the decision and run your own prompts for the quality side.

Which Gemini 4 version is this, and when was it released?
Search results for Google Gemini 4 mention several names: Neon, Carbon, Argon, Hydrogen and others. They are different variants in the Gemini 4 family, and articles that quote a Gemini 4 price often mix them up, or quote a figure from a launch period that has since changed. Before comparing any two numbers, check that they refer to the same variant and the same date.
On Unicorn API, the Gemini 4 model available today is Gemini 4 Neon, released on 20 November 2026, in two forms:
gemini-4-neon: the native API version. Google’s 1M-context reasoning model for complex coding, analysis and science, with four thinking levels up toxhigh.gemini-4-neon-openai: the OpenAI-compatible version, run through chat completions with streaming, tools and Google Search grounding. Grounding means the model can look up current information on the web and base its answer on it.
Both accept the same fields: model, messages, tools, tool_choice, stream, max_tokens, temperature, top_p, stop, response_format and reasoning_effort. Both cost the same. Choose based on whether you want Google Search grounding and how your existing code is written. If you are looking for the lighter variants, the Gemini 4 Flash overview covers Neon and Hydrogen access. For everything else that is live, browse the full model catalog.
How to call Gemini 4 Neon and see the cost of each request
Gemini 4 Neon is a chat model, so you call it with POST /v1/chat/completions, which follows the OpenAI request format. Create a key on the API keys page and export it as UNICORN_API_KEY.
curl
curl https://api.unicornapi.net/v1/chat/completions \
-H "Authorization: Bearer $UNICORN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-4-neon",
"messages": [
{"role": "user", "content": "Write one sentence about unicorns."}
],
"max_tokens": 200
}'
Python, with a cost estimate per call
This script sends a request, reads the token usage the model reports, and converts it to credits and dollars using the Gemini 4 Neon rates. Cached token reporting can vary, so the script reads it defensively.
import os
import requests
API_URL = "https://api.unicornapi.net/v1/chat/completions"
API_KEY = os.environ["UNICORN_API_KEY"]
# Gemini 4 Neon rates, credits per 1M tokens
INPUT_RATE = 240
OUTPUT_RATE = 1200
CACHED_RATE = 12
DOLLARS_PER_CREDIT = 0.01 # monthly plan credits; use 0.015 for top-ups
def ask(prompt, model="gemini-4-neon", max_tokens=800, effort=None):
body = {
"model": model,
"messages": [{"role": "user", "content": prompt}],
"max_tokens": max_tokens,
}
if effort:
body["reasoning_effort"] = effort
resp = requests.post(
API_URL,
headers={
"Authorization": f"Bearer {API_KEY}",
"Content-Type": "application/json",
},
json=body,
timeout=300,
)
resp.raise_for_status()
data = resp.json()
usage = data.get("usage", {})
prompt_tokens = usage.get("prompt_tokens", 0)
output_tokens = usage.get("completion_tokens", 0)
details = usage.get("prompt_tokens_details") or {}
cached = details.get("cached_tokens", 0)
fresh = prompt_tokens - cached
credits = (
fresh * INPUT_RATE
+ cached * CACHED_RATE
+ output_tokens * OUTPUT_RATE
) / 1_000_000
answer = data["choices"][0]["message"]["content"]
print(f"input={fresh} cached={cached} output={output_tokens}")
print(f"estimated cost: {credits:.4f} credits (${credits * DOLLARS_PER_CREDIT:.5f})")
return answer
if __name__ == "__main__":
print(ask("Explain the difference between a mutex and a semaphore in 3 sentences."))
To use the OpenAI-compatible version, change model to "gemini-4-neon-openai". To compare models on the same prompt, swap in "gpt-6-2-sol" or "claude-opus-5-5" and update the three rate constants from the table above. The amount actually debited is always based on reported usage, so treat the script’s number as a check, not the bill.
If you would rather test prompts before writing code, the browser playground runs the same models. If you work in Cursor or Claude Code, the agents setup connects them to the API over MCP.
How to keep your Gemini 4 bill down
Most of the savings come from a handful of habits.
- Cap output with
max_tokens. Output is the expensive side. Set a limit that fits the task: a classification needs 20 tokens, a summary a few hundred. - Put stable content first. Caching works on prefixes, so keep the system prompt and shared documents at the start of the prompt, unchanged between calls, and put the variable part at the end. The cached rate is 20x cheaper than fresh input.
- Match reasoning effort to the task. Reserve
xhighfor hard problems such as multi-file refactors or tricky analysis. Routine extraction and formatting rarely need deep thinking. - Trim conversation history. Chat apps often resend the entire conversation every turn. Summarise older turns or drop them once they stop mattering.
- Route by difficulty. Send easy requests to GPT 6.2 Sol or DeepSeek V4.1 Flash and escalate to Gemini 4 Neon only when needed. With one key and one bill, routing is a change to the
modelstring. - Ask for compact formats. JSON with short keys, or a
response_formatschema, cuts output compared with prose. - Price before you scale. Run
POST /v1/models/priceon a representative request before launching a batch job, so a large run never surprises you.
Common mistakes when estimating the Gemini 4 price
These are the errors that make real bills differ from the spreadsheet.
- Using only the input rate. People see 240 credits per million and stop there. Output is 1,200. In the worked example above, output was 20% of the tokens and 50% of the cost.
- Forgetting reasoning tokens. Higher thinking levels can add tokens you never see in the reply. Measure from the reported usage at the effort level you will run in production.
- Comparing different variants. A Gemini 4 Carbon or Argon figure from a review is not the Gemini 4 Neon price. Neither is a promotional launch figure that has since expired.
- Assuming the context window is free. A 1M-token window is useful, but filling it costs 240 credits per full window of fresh input. Retrieval, which sends only the relevant chunks, is often cheaper and more accurate.
- Breaking the cache by accident. Putting a timestamp or user ID at the top of the system prompt changes the prefix on every call, so nothing gets cached.
- Mixing plan and top-up rates. Monthly plan credits are $0.01 each; top-ups are $0.015. The same request costs 50% more in dollars when it draws on top-up credits, so budget with the rate you will actually use.
- Testing on toy prompts. “Write one sentence” costs almost nothing. Estimate with your real system prompt, real documents and real output length.
Get these right and the Gemini 4 price becomes predictable: measure a few real requests, multiply by volume, and pick the plan that covers it. Then check the usage numbers each week, because prompts tend to grow over time.
Frequently asked questions
Is Gemini free or does it cost money?
It depends on how you use it. Google's consumer Gemini app has offered limited free use, but plans and limits change, so check Google directly. Using Gemini 4 through an API is paid per token. On Unicorn API, Gemini 4 Neon costs 240 credits per million input tokens and 1,200 credits per million output tokens. That works out to $2.40 and $12 per million on a monthly plan, where a credit costs $0.01.
How much does Gemini 4 cost per million tokens?
On Unicorn API, Gemini 4 Neon is 240 credits per million input tokens, 1,200 credits per million output tokens and 12 credits per million cached input tokens. With monthly plan credits at $0.01 each, that is $2.40 input, $12 output and $0.12 cached per million. With top-up credits at $0.015 each, the same rates are $3.60, $18 and $0.18.
When was Gemini 4 Neon released?
Gemini 4 Neon was released on 20 November 2026. It is available on Unicorn API in two forms on the same day and at the same price: the native API version (gemini-4-neon) and an OpenAI-compatible version (gemini-4-neon-openai). Google uses other names in the Gemini 4 family as well, so check which variant a price or review refers to before comparing numbers.
Is Gemini 4 better than GPT 6.2?
There is no single answer, because it depends on your task. Gemini 4 Neon is a 1M-context reasoning model aimed at complex coding, analysis and science. GPT 6.2 Astra costs twice as much per token and GPT 6.2 Sol costs half as much. The reliable way to decide is to run 20 to 50 of your real prompts through each model and compare the quality against the cost per request.
What is the difference between Gemini 4 Neon and Gemini 4 Neon OpenAI?
Both run Google's Gemini 4 Neon model at the same price: 240 credits per million input tokens and 1,200 per million output. The native version follows Google's API behaviour and supports four thinking levels up to xhigh. The OpenAI-compatible version is built for existing chat completions code, with streaming, tools and Google Search grounding. Pick the one that fits your codebase; cost does not change.