Gemini 4 Argon API

google/gemini-4-argon
1,048,576 tokens · Max output 65,536 tokens · 320 input / 1600 output credits / 1M tokens

Gemini 4 Argon turns code, documents, images, audio, and video into detailed written answers, with three thinking levels and a 1,048,576-token window. Set an output budget of 32K or more so deep reasoning still leaves room for the full reply.

Gemini 4 Argon

Google · chat-completions

Chat with Gemini 4 Argon

Provide a coding goal, relevant source files or documents, and the expected result. Return test feedback in later turns to investigate problems and refine the implementation.

Ctrl / ⌘ + Enter to send0 / 32,000

Continue with

Gemini 4 Argon

Gemini 4 Argon is the first flagship of Google DeepMind's Gemini 4 generation, built for long-horizon software engineering and enterprise knowledge work. It reads text, images, audio, video, and PDF files and answers in text. Input, thinking, and output draw on one 1,048,576-token budget, so large migrations, multi-file patches, and cross-document reviews can stay in a single conversation.

Why Choose Gemini 4 Argon?

  • Large-scale code migrationPlan and carry out module-by-module rewrites, such as moving C or C++ components to Rust, with the surrounding code kept in context. Google reports 77.9% on DeepSWE v1.1.

  • One budget for the whole taskPrompt, thinking, and answer share 1,048,576 tokens: a 100K-token prompt leaves roughly 948K tokens for reasoning and output.

  • Video, audio, and PDF understandingSend recordings, scanned reports, and screenshots through Gemini Native inlineData and ask for findings tied to the source. Google reports 91.7% on LVBench.

  • Selectable thinking depthChoose low, medium, or high thinking to balance response time against reasoning depth for each request.

  • Two request formatsCall the same model through OpenAI-compatible Chat Completions or Gemini Native generateContent and streamGenerateContent.

Parameters

ParameterRequirementDescription
modelChat Completions: required

Set to google/gemini-4-argon; Gemini Native uses the same ID in the request path.

messagesChat Completions: required

A non-empty ordered array with system, user, or assistant roles and text content.

max_tokensChat Completions: optional

An integer from 1 to 65,536 that caps thinking and answer tokens together. The Playground defaults to 32,768.

Default32768 (Playground)
contentsGemini Native: required

A non-empty ordered array with user or model roles and parts.

contents[].parts[].inlineDataGemini Native: media input

Base64 image, audio, video, or PDF data with its mimeType, placed alongside text parts.

systemInstructionGemini Native: optional

System guidance in parts[].text. The Playground starts with You are a helpful assistant.

generationConfig.maxOutputTokensGemini Native: optional

An integer from 1 to 65,536 covering thinking and answer tokens. The Playground defaults to 32,768.

Default32768 (Playground)
generationConfig.thinkingConfig.thinkingLevelGemini Native: optional

Thinking depth for the request.

Defaultmediumlowhigh
streamChat Completions: optional

false returns JSON; true returns SSE events. Gemini Native streams through streamGenerateContent?alt=sse.

Defaultfalsetrue

How to Use

  1. Scope the taskDescribe the migration, review, or analysis goal and the format you expect back, such as a patch, a table, or a findings list.

  2. Attach the source materialAdd the relevant code, document text, or media. Keep the prompt well inside the shared window so thinking and output have room.

  3. Pick a format and budgetChoose Chat Completions or Gemini Native, set an output budget of at least 32,768 tokens, and pick a thinking level in Gemini Native requests.

  4. Check and continueRun tests or compare the answer with the sources, then return the results in the next turn to refine the work.

Pricing

Input and output are metered per 1M tokens and settle in credits. Thinking tokens count as output.

UsageRateDetails
Input$1.60 · 320 credits / 1M tokensPrompt tokens, including text and media input.
Output (including thinking tokens)$8.00 · 1600 credits / 1M tokensGenerated answer tokens plus thinking tokens.

Best Use Cases

  • Legacy code modernizationMove a C++ module to Rust, refactor a large subsystem, or produce a complete multi-file patch with a test plan.

  • Meeting and lecture video reviewSummarize long recordings into decisions, action items, and timestamps that point back to the footage.

  • Specification drafting from many PDFsCombine contracts, manuals, and requirements documents into one structured specification with cited sections.

  • Financial and legal document comparisonCompare filings or agreements side by side and list the clauses or figures that changed.

Pro Tips

  • Budget output for thinking: 32,768 tokens or more keeps deep reasoning from crowding out the final answer.
  • Use low thinking for quick extraction and high thinking for migrations or multi-step proofs.
  • Give hard requests a client timeout of 15 minutes or more, since Google notes deep thinking can run for several minutes.
  • Steer length and format with explicit instructions and examples in the prompt.

Usage Notes

  • The 1,048,576-token window is shared by input, thinking, and output; a single response returns up to 65,536 tokens.
  • The Playground sends text conversations, starts with Chat Completions, and uses a 32,768-token output budget.
  • Gemini Native accepts image, audio, video, and PDF parts through inlineData; responses are text.
  • Output depth follows thinkingLevel and your instructions; the request examples carry only the fields shown in the Parameters table.

Related Models

Gemini 4 Argon API FAQ

What is the Gemini 4 Argon API?

Gemini 4 Argon is a Google DeepMind model that turns code, documents, images, audio, and video into detailed text answers, and it is the first flagship of the Gemini 4 generation. Google built it for long-horizon software engineering, such as large code migrations, and for enterprise document work. It reasons inside a 1,048,576-token budget with low, medium, or high thinking. Use the API tab for Chat Completions and Gemini Native examples, or test a text conversation in the Playground.

How does the Gemini 4 Argon context window work?

Gemini 4 Argon has one 1,048,576-token budget shared by your input, its thinking, and its output. A 100K-token prompt leaves about 948K tokens for reasoning and the reply. Each response returns up to 65,536 tokens, so split very long deliverables across turns.

How do I set the Gemini 4 Argon thinking level?

In a Gemini Native request, set generationConfig.thinkingConfig.thinkingLevel to low, medium, or high; medium is the default. Use low for quick extraction and high for migrations or multi-step analysis. Because thinking counts toward maxOutputTokens, raise the budget to 32,768 or more when you choose high.

Can Gemini 4 Argon analyze video and PDF files?

Yes. Gemini Native requests accept image, audio, video, and PDF data through contents[].parts[].inlineData, combined with text instructions in the same turn. The model replies in text, for example with a summary, a table of findings, or answers that cite timestamps or page sections.

What does Gemini 4 Argon cost on Vidgo?

Input costs $1.60 (320 credits) and output costs $8.00 (1600 credits) per 1M tokens. Thinking tokens are billed as output, so a high thinking level adds to output usage. Google lists $2 input and $10 output per 1M tokens as its introductory price through 30 November 2026.

Why does Gemini 4 Argon take longer on hard prompts?

At higher thinking levels, Gemini 4 Argon can reason for several minutes before it answers. Google recommends client timeouts of 15 minutes or more for demanding requests. Streaming with streamGenerateContent or stream: true shows the answer as it arrives.

How does Gemini 4 Argon compare with Gemini 3.8 Flash?

Gemini 4 Argon targets depth: long migrations, cross-document analysis, and high thinking budgets. Gemini 3.8 Flash costs less per token and suits faster everyday coding and chat. Both accept Chat Completions and Gemini Native requests, so you can test the same prompt on each.