APIMart
Back to all models

Gemini 4 Argon API

GoogleModel ID gemini-4-argonText modelReleased October 13, 2026

Use Gemini 4 Argon to find the root cause of a failure across a large codebase, compare the clauses of two contracts side by side, or locate the moment in an hour-long recording where a decision was made.

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 Argon 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 Argon.

Try Gemini 4 Argon with your own material

Root-cause investigations in a large codebase

Give Gemini 4 Argon the error, the logs and the modules on the call path, and have it work through the evidence over several turns until it can name the cause and the change that fixes it. Reproduce the failure and run the tests before and after the fix.

Example: Why do orders fail just after midnight UTC?

Material

Error log
2026-11-22 00:00:03 UTC order 8812 rejected: delivery_date 2026-11-21 is in the past.
orders.py
Same-day orders set delivery_date = date.today(), and date.today() uses the server’s local time zone (UTC−8).
validator.py
Rejects any delivery_date earlier than the current UTC date.

PromptWork out why these orders fail, point to the line responsible, and propose the smallest fix.

Sample answer · written by hand to show the reasoning

orders.py takes the date in UTC−8 while validator.py compares it in UTC. From 00:00 to 08:00 UTC the server’s local date is still the previous day, so delivery_date is one day behind the UTC date and the validator rejects the order. Take the date in UTC in orders.py so both files use the same clock, and add a test that creates a same-day order at 00:00:03 UTC.

About the Gemini 4 Argon API

  • The general-purpose frontier model in Gemini 4

    Google built Gemini 4 Argon as a new frontier model, not a fine-tune of an earlier one, for complex software engineering and enterprise knowledge work. Gemini 4 Carbon builds on it for tasks that need more reasoning.

  • Three thinking levels, medium by default

    Gemini 4 Argon supports low, medium and high. Thinking tokens are billed as output, so use low for simple steps and raise the level only where the task needs it.

  • Reads PDFs, audio and long video

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

  • Gemini 4 Argon API key and access

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

Gemini 4 Argon official benchmark results

Selected results Google published at launch.

  • DeepSWE v1.1

    77.9%

    Agentic coding. Ahead of Claude Opus 5.5 (74.2%) and GPT-6 Astra (74.1%).

  • AutomationBench

    51.3%

    Business process automation. Claude Opus 5.5 scores 42.5% and GPT-6 Astra 41.4%.

  • Vals Finance Agent v2

    65.4%

    Financial analysis tasks run by an agent. Claude Opus 5.5 scores 58.6% and GPT-6 Astra 53.5%.

  • GraphWalks

    84.2%

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

  • LVBench

    91.7%

    Understanding of long videos. GPT-6 Astra scores 87.5% and Claude Opus 5.5 83.7%.

  • FrontierSWE v2

    55.0%

    Agentic coding. Behind Claude Opus 5.5 (62.3%) and GPT-6 Astra (65.5%).

How to call the Gemini 4 Argon API

To call Gemini 4 Argon, 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-argon",
  "messages": [
    {
      "role": "user",
      "content": "Describe how to design a clear API in three sentences."
    }
  ],
  "stream": false
}'

Gemini 4 Argon access details

Model IDgemini-4-argon
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 Argon API request parameters

Gemini 4 Argon 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-argon 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 Argon API pricing

The Gemini 4 Argon 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
Input16Credits~$1.615.2Credits~$1.5214.4Credits~$1.4420Credits~$220%
Cached input0.8Credits~$0.080.76Credits~$0.0760.72Credits~$0.0721Credits~$0.120%
Output80Credits~$876Credits~$7.672Credits~$7.2100Credits~$1020%

Prices are for reference only. View full pricing

Why call Gemini 4 Argon API through APIMart

  • 20% below official pricing

    Gemini 4 Argon 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.08 per 1M tokens.

    See membership prices
  • One API key for 500+ models

    Gemini 4 Argon, 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 Argon 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 Argon API key works for every model in the table; just change the model parameter.

Differences between Google models
ComparisonGemini 4 Argon CurrentGemini 3.8 FlashGemini 4 HydrogenGemini 4 CarbonGemini 4 Neon
Best forSoftware engineering, Knowledge work, Long video and documentsLong-horizon coding, Video, audio & PDF input, Enterprise workflowsEveryday coding, Agentic tasks, Chat & questionsLong-horizon agents, Software engineering, Scientific reasoningComplex coding, Long-running agents, Analytical reasoning
Input typesText, Image, Audio, VideoText, Image, Video, Audio, FileText, Image, Audio, VideoText, Image, Audio, VideoText, Image, Audio, Video
Input price$1.6$0.6$1.2$1.6$2.4
Output price$8$3$6$8$12

Gemini 4 Argon FAQ

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

Argon is the general-purpose frontier model of the family. Carbon builds on it and spends more thinking tokens per turn, so it suits the hardest long-running tasks at the cost of slower responses. Neon was adapted from Carbon to balance depth and efficiency, and Google’s migration guide names it as the upgrade for general coding and enterprise reasoning workloads running on Argon. Hydrogen is the fast, lower-priced model for everyday coding and agent loops. On APIMart all of them share one endpoint and API key; you only change the model parameter.

What changes when moving to Gemini 4 Argon from an earlier Gemini model?

Google’s migration checklist says to change the model ID to gemini-4-argon, choose a thinking level of low, medium or high in place of a thinking budget, and remove temperature, top_p, top_k and explicit caching. It also recommends longer client timeouts, because hard requests take more time. 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 Argon?

According to Google’s developer guide, sending frequency_penalty or presence_penalty, asking for more than one candidate, setting the thinking level to minimal, or using a thinking budget returns a 400 error. A conversation that ends with a prefilled model turn is also rejected, and temperature, top_p and top_k are ignored. Use the three thinking levels instead: low, medium (the default) and high.

Why does Gemini 4 Argon time out or seem not to be working?

Most often the request is still thinking when the client gives up. Google’s model card notes occasional slowness and timeouts, and its migration checklist recommends raising client timeouts to at least 15 minutes. If a request keeps timing out, lower the thinking level or split the task into smaller steps, and remove parameters the model rejects, such as frequency_penalty and presence_penalty.

Does Gemini 4 Argon cache repeated prompt prefixes?

Yes. Gemini 4 Argon 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 Argon in the text category to start exploring.

Which model ID does the Gemini 4 Argon API use?

Set model to gemini-4-argon. 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 Argon?

On APIMart, Gemini 4 Argon 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 Argon 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 Argon API cost?

The Gemini 4 Argon API on APIMart is billed by token, and prices depend on your membership tier. Gold: $1.6 per million input tokens and $8 per million output tokens. Diamond: $1.44 per million input tokens and $7.2 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.