Real AI agent use cases, with sources and setup prompts
How to build with Gemini 4 Argon (API, Antigravity CLI, and the Dec 1 2026 price change)
Short answer: Gemini 4 Argon is Google's frontier reasoning model for long coding and agent tasks (model ID gemini-4-argon, 1M-token context, thinking levels low/medium/high). Use it three ways: the Gemini API paid tier with the google-genai SDK and the Interactions API; the Antigravity app or CLI (agy --model gemini-4-argon-high); or your own coding agent with Google's gemini-api-dev skill. Two dates matter: Google's Antigravity pricing page says Argon will be removed from Google AI Pro and Ultra plans on November 30, 2026, and the API price doubles on December 1, 2026, from $2/$10 to $4/$20 per million input/output tokens. There is no free API tier for Argon. After Nov 30 you can keep using it in Antigravity CLI with your own API key, or switch to Gemini 4 Carbon, Neon or Hydrogen.
Three setups with exact commands: call gemini-4-argon from Python or JavaScript with the Interactions API, run it in the Antigravity CLI with headless agy -p, or teach Claude Code, Codex or Cursor the current Gemini API with Google's skill and docs MCP. Plus the Nov 30 and Dec 1 changes, a cost calculator we ran, 10 prompts and 16 real builds. 24 matching use cases below, each with a public source.
The model. ID gemini-4-argon, 1M-token context, up to 65,536 output tokens by default and up to 1M with background long decode. Text, image, video, audio and PDF in; text out.
Paid tier only: $2 in / $10 out per 1M tokens through Nov 30, 2026; $4 / $20 from Dec 1, 2026
Prices are from each official page, checked 2026-11-27; they exclude tax and can change. Swipe the table sideways on a phone.
Gemini API: call gemini-4-argon from Python or JavaScript
About 10 minutes. Needs a Gemini API key on the paid tier (Argon has no free tier). Code is from Google's Gemini 4 Argon developer guide and uses the Interactions API.
Create a key and set it. Create a key in Google AI Studio and enable billing on its project. The SDKs read GEMINI_API_KEY (or GOOGLE_API_KEY). Add the export line to ~/.zshrc or ~/.bashrc to keep it.
bash
# macOS / Linux
export GEMINI_API_KEY="YOUR_API_KEY"
# Windows PowerShell (current session)
$env:GEMINI_API_KEY="YOUR_API_KEY"
Install the SDK. google-genai needs Python 3.11 or later; @google/genai needs Node 22 or later. The old google-generativeai package is deprecated, so don't let an agent install it.
First call (Python). thinking_level controls reasoning depth and cost. Leave sampling settings out; Argon ignores temperature, top_p and top_k.
python
# argon_hello.py (pip install -U google-genai ; export GEMINI_API_KEY=...)
from google import genai
client = genai.Client() # reads GEMINI_API_KEY
interaction = client.interactions.create(
model="gemini-4-argon",
input=(
"Build a single-file HTML drum machine and synth using the "
"Web Audio API with a 16-step sequencer, tempo slider, and "
"a live waveform visualizer."
),
generation_config={
"thinking_level": "medium" # "low" | "medium" (default) | "high"
},
)
print(interaction.output_text)
print(interaction.usage) # token counts, including thinking
Same call in JavaScript.
javascript
// argon_hello.mjs (npm install @google/genai ; Node 22+)
import { GoogleGenAI } from "@google/genai";
const client = new GoogleGenAI({}); // reads GEMINI_API_KEY
const interaction = await client.interactions.create({
model: "gemini-4-argon",
input:
"Build a single-file HTML drum machine and synth using the " +
"Web Audio API with a 16-step sequencer, tempo slider, and " +
"a live waveform visualizer.",
generation_config: {
thinking_level: "medium", // "low" | "medium" (default) | "high"
},
});
console.log(interaction.output_text);
Long outputs: run in the background. Default output is capped at 65,536 tokens. For bigger multi-file diffs or test suites, set background=True and max_output_tokens above 65,536, then poll. max_output_tokens is also your spend cap: at Dec 1 prices, 262,144 output tokens cost up to $5.24 per call.
python
# argon_long.py - outputs past 64K tokens run in the background
import time
from google import genai
client = genai.Client()
interaction = client.interactions.create(
model="gemini-4-argon",
input="Write the full test suite for the module pasted below ...",
background=True,
generation_config={
"max_output_tokens": 262144, # cap spend: thinking counts toward this
"thinking_level": "high",
},
)
while interaction.status in ("in_progress", "queued"):
time.sleep(5)
interaction = client.interactions.get(id=interaction.id)
text = "".join(
content.text
for step in interaction.steps
if step.type == "model_output"
for content in step.content
if content.type == "text"
)
print(text)
print("Status:", interaction.status)
print("Usage:", interaction.usage)
Optional: a hosted agent with Argon. Managed Agents run the Antigravity harness in Google's sandbox: it can search, write and run code and call MCP tools in one API call. Agent name from Google's guide; check the current name in the Managed Agents docs.
python
# argon_agent.py - hosted Antigravity agent with Argon as the model
from google import genai
client = genai.Client()
interaction = client.interactions.create(
agent="antigravity-preview-09-2026",
agent_config={
"type": "antigravity",
"model": "gemini-4-argon",
},
input=(
"Audit https://example.com for performance, Core Web Vitals, and SEO. "
"Query Google's PageSpeed Insights API for Mobile and Desktop. "
"Format the output as a scorecard table with prioritized fixes."
),
environment="remote",
)
print(interaction.output_text)
Antigravity CLI: Argon as your terminal coding agent
Commands from Antigravity's getting-started, headless and authentication docs. Google AI Pro and Ultra sign-ins include Argon until November 30, 2026 (footnote on antigravity.google/pricing). After that, API-key mode keeps working and bills your Gemini API project.
Install agy. Installs to ~/.local/bin/agy on macOS/Linux. On first launch, pick colors and confirm you trust the folder.
bash
# macOS / Linux
curl -fsSL https://antigravity.google/cli/install.sh | bash
# Windows PowerShell
irm https://antigravity.google/cli/install.ps1 | iex
agy --version
Pick Argon. Inside a session, /model persists across sessions. Slugs come from agy models.
Run one task headless. agy -p runs a single prompt and prints the result. In headless mode an unknown --model exits non-zero instead of silently using another model, so scripts fail loudly once Argon disappears from your plan.
bash
cd ~/projects/my-app
agy -p "Run the test suite, fix the first failing test, rerun until green, then summarize the diff." \
--model gemini-4-argon-high --mode plan
After Nov 30: use your own API key. Only setting GEMINI_API_KEY does nothing; you also set modelProvider. Requests then go straight to the Gemini API at API prices ($4/$20 per 1M from Dec 1).
Coding agents trained before October 2026 tend to write Gemini 1.5 / google-generativeai code. Google's skill and docs MCP fix that. Then estimate what your workload costs at the new price. The cost script ran on the box on Nov 27, 2026.
Give your agent current Gemini docs. One skill install plus the docs MCP server for whichever agent you use (commands from aistudio.google.com/docs/coding-agents).
Migrate existing Gemini code. Paste the 'Migrate my Gemini code to Argon' prompt below. Google's checklist: change the model ID, raise max_output_tokens to at least 32,768, replace thinking_budget with thinking_level, remove temperature/top_p/top_k and explicit cached_content, raise timeouts to 15+ minutes.
Estimate the Dec 1 price change. Save as argon_cost.py. Use token counts from interaction.usage of a typical run (thinking counts as output).
python
#!/usr/bin/env python3
"""argon_cost.py - what a Gemini API job costs on Gemini 4 Argon before and after Dec 1 2026,
and on the other current Gemini models. Prices: aistudio.google.com/docs/pricing (checked Nov 27 2026).
Usage: python3 argon_cost.py INPUT_TOKENS OUTPUT_TOKENS [CACHED_INPUT_TOKENS] [RUNS_PER_MONTH]
Output tokens must include thinking tokens (print interaction.usage after a run to see them)."""
import sys
# USD per 1M tokens: (input, cached input, output incl. thinking)
PRICES = {
"gemini-4-argon (to Nov 30)": (2.00, 0.10, 10.00),
"gemini-4-argon (from Dec 1)": (4.00, 0.20, 20.00),
"gemini-4-argon batch (Dec 1)": (2.00, 0.10, 10.00),
"gemini-4-neon": (3.00, 0.15, 15.00),
"gemini-4-hydrogen": (1.50, 0.075, 7.50),
"gemini-3.8-flash (to Dec 31)": (0.75, 0.075, 3.75),
}
def cost(p, inp, out, cached):
fresh = max(inp - cached, 0)
return (fresh * p[0] + cached * p[1] + out * p[2]) / 1e6
def main(a):
if len(a) < 2:
print(__doc__); return 1
inp, out = int(a[0]), int(a[1])
cached = int(a[2]) if len(a) > 2 else 0
runs = int(a[3]) if len(a) > 3 else 1
print(f"{inp:,} input ({cached:,} cached) + {out:,} output tokens, x{runs} runs")
print(f"{'model':32} {'per run':>10} {'total':>10}")
for name, p in PRICES.items():
c = cost(p, inp, out, cached)
print(f"{name:32} ${c:>9.4f} ${c*runs:>9.2f}")
return 0
if __name__ == "__main__":
sys.exit(main(sys.argv[1:]))
Example run. A job with 120K input tokens (80K of them cached), 18K output tokens, run 200 times a month: $53.60 at the intro price, $107.20 from Dec 1, or $53.60 via the Batch API if results can wait.
text
python3 argon_cost.py 120000 18000 80000 200
120,000 input (80,000 cached) + 18,000 output tokens, x200 runs
model per run total
gemini-4-argon (to Nov 30) $ 0.2680 $ 53.60
gemini-4-argon (from Dec 1) $ 0.5360 $ 107.20
gemini-4-argon batch (Dec 1) $ 0.2680 $ 53.60
gemini-4-neon $ 0.4020 $ 80.40
gemini-4-hydrogen $ 0.2010 $ 40.20
gemini-3.8-flash (to Dec 31) $ 0.1035 $ 20.70
Written for this setup. Replace anything in [brackets] before you send it.
1. Align on the goal before a long run
First message of any big Argon task (Google's tip 1).
Here is my goal: [GOAL]. Before you write any code:
1. Ask me up to 5 questions about edge cases and what 'done' means.
2. Propose a measurable success check (tests, a benchmark score, screenshots) and how you will run it.
3. List the tools, files and docs you need and confirm you can access them.
4. Give me a milestone plan. Pause and ask before anything irreversible (deleting data, pushing, deploying, spending money).
Then wait for my OK and run the whole plan without stopping for each step.
2. Build your own verification loop
When the project has no tests yet.
We don't have automated checks for [AREA, e.g. accessibility and layout]. First write a script that checks [WHAT] across [ROUTES/FILES] and records a baseline score. Group failures by root cause. Fix one cluster at a time, rerunning the script after each change to confirm the cluster is fixed with zero regressions. Keep going until the score reaches [TARGET]. Show the baseline and final scores.
3. Migrate my Gemini code to Argon
In a repo that already calls Gemini.
Migrate this codebase to gemini-4-argon using the gemini-api-dev skill and the Gemini Docs MCP (don't rely on memory).
- Use the google-genai SDK and the Interactions API; remove google-generativeai.
- Replace thinking_budget with thinking_level (default medium); remove temperature, top_p, top_k and explicit cached_content.
- Set max_output_tokens to at least 32768 and HTTP timeouts to 15 minutes, or use background=True for long outputs.
- Keep behavior the same; run the tests after each file.
List every change with file and line at the end.
4. Pick a thinking level per call
Before you ship, to control cost.
Here are the [N] places my app calls gemini-4-argon: [PASTE FUNCTION NAMES + WHAT EACH DOES]. For each, recommend thinking_level low, medium or high with one sentence why, and an estimate of output tokens. Then write a small test that runs 5 sample inputs per call at two levels and prints quality notes and interaction.usage so I can compare.
5. Plan the Nov 30 / Dec 1 switch
If you rely on Argon in Antigravity or the API.
I use Gemini 4 Argon for [TASKS] via [Antigravity plan / Gemini API]. Antigravity plans drop Argon on Nov 30, 2026 and the API price doubles on Dec 1 to $4/$20 per 1M tokens. Using my typical usage ([INPUT] input, [OUTPUT] output tokens, [RUNS] runs/month), compare: (a) Argon via my own API key in agy, (b) Argon via the Batch API, (c) Gemini 4 Carbon, (d) Gemini 4 Neon, (e) Gemini 4 Hydrogen, (f) Gemini 3.8 Flash for the easy parts. Give monthly cost for each and the exact config change for the option you recommend.
6. Argon plans, Flash builds
Big tasks you can split.
Act as lead engineer on gemini-4-argon (thinking_level high). Break [TASK] into well-scoped subtasks with clear interfaces. Send exploration, boilerplate tests and leaf modules to gemini-3.8-flash subagents; keep architecture, tricky logic and the final review for yourself. After all subtasks return, review every diff, run [TEST COMMAND] and fix failures. Report which subtasks needed rework.
7. One-shot a single-file web toy
First test of the model (the kind of build in the examples below).
Build a single self-contained HTML file (no external libraries, no build step) that [IDEA, e.g. a WebGL calming scene with rain sounds / a 16-step drum machine]. Requirements: works offline, under [SIZE] KB, keyboard and touch controls, 60 fps on a mid-range phone. Before writing, list the features and any risks. After writing, describe how to test each feature in the browser.
8. Find bugs from a screen recording
You have a video of the bug (Argon reads video).
Attached is a [LENGTH] screen recording of my app with me narrating. Find every moment where something looks wrong or I get stuck: give the timestamp, what happens on screen and in the console, and the likely cause in the code. Then fix the top 3 issues in [REPO/FOLDER] and tell me how to verify each fix.
9. Security pass on a codebase
Before you ship, with thinking_level high.
Review [REPO/FOLDER] for security vulnerabilities as a defender. For each finding give severity, file and line, how an attacker would reach it, and a minimal patch. Write a failing test that proves each issue, apply the patch, and show the test passing. Don't touch code outside the fix and don't run anything that sends network traffic outside localhost.
10. Learn from this session
End of a long run (Google's tip 5).
Look back over this session: where did things stall or take extra steps, and why? Propose additions to AGENTS.md (test flags, lint rules, gotchas) or a reusable skill so the next session takes the direct path. Show the exact text to add, but don't commit it until I approve.
Safety checklist
Argon has no free tier: every call bills your Google Cloud project, including thinking tokens. Set a budget alert in Google Cloud Billing before running loops or background jobs.
Always set max_output_tokens on background long-decode jobs. One 1M-token output costs up to $20 at Dec 1 prices.
Keep GEMINI_API_KEY out of code and git; use environment variables or the OS keychain (gemini-api configure). Restrict the key to the Generative Language API in Cloud Console.
Don't run agy with --dangerously-skip-permissions outside a throwaway sandbox; Google's own codelab warns against it in production.
Paid-tier Gemini API data is not used to improve Google's products (per the pricing page), but managed agents run code and fetch the web in Google's sandbox. Don't pass production credentials into them.
Pin model slugs in scripts and check exit codes: after Nov 30, headless agy runs that name gemini-4-argon on a plan without it will fail with an error rather than switching models.
What it costs
Gemini 4 Argon (API, standard): $2 in / $10 out per 1M tokens through Nov 30, 2026; $4 / $20 from Dec 1. Thinking counts as output; cached input $0.10, then $0.20 per 1M
Gemini 4 Argon (Batch or Flex): $1 / $5 now; $2 / $10 from Dec 1. For jobs that can wait
Google AI Pro / Ultra (Antigravity): $19.99/mo / $99.99/mo (Ultra 20x $199.99). Argon included until Nov 30, 2026
Alternatives (API): Neon $3/$15; Hydrogen $1.50/$7.50; 3.8 Flash $0.75/$3.75 per 1M. Carbon follows Argon's price: $2/$10, then $4/$20
Grounding with Google Search: 5,000 free searches/month, then $14 per 1,000. Shared across Gemini 3 and newer models
SDKs, agy, gemini-api, skills, docs MCP: Free.
The Daily 5
Get five new use cases like these tomorrow morning
Five new real AI use cases every morning. Free. Unsubscribe any time.
Over a weekend he built Roadster Jump, a WebGPU simulation in three.js and Blender where you launch a car across a 250 m canyon with thrusters, including custom shaders, fixed 120 Hz physics and a rigged 7-part car.
A builder plugged in a Thermal Master P3 thermal camera and asked Gemini 4 Argon for a custom live-streaming app with over-the-air updates. It wrote a working app in one shot.
He asked Gemini 4 Argon for an app idea and it built a cabin planner that sources the bill of materials from Depo, his local hardware supplier, with prices and rough dimensions.
He used Gemini 4 Argon in VS Code to drive Blender and build a horror corridor with red emergency light, pipes, cables and a glowing orb at the end of the hall.
$2 in / $10 out per 1M tokensA few hoursIntermediate
Wiz's researchers used Gemini 4 Argon and GPT-5.6 Sol, with their Wiz Atlas platform, to find a remote code execution bug in PHP, build the exploit, detect attacks and validate the patch. They note models let them adapt the exploit across PHP versions and memory layouts.
A tester ran identical 3D and game-dev prompts through Gemini 4 Argon, Opus 5.5 and GPT-6 Astra on OpenRouter with a 32K token cap and logged time and cost. On a one-shot 3D kart game, Gemini finished first in 220.6s for $0.306.
Same prompt, one shot, four models: Opus 5.5 max spent $55.59 over 2h09m, GPT-6 Astra max $7.48 in 35m, Grok 4.7 xhigh about $5 in 1h35m and Gemini 4 Argon high about $3 in 41m.
A Google developer built an Unread Messages Brief with Gemini 4 and Antigravity using Workspace Studio and Apps Script. It runs at 7:45 AM and on a /briefnow command, summarizing top-level and followed threads without marking them read.
After experimenting with worldbuilding in Gemini, the author waited until Argon was creative enough, then launched Fakeipedia: describe a world and it writes a full wiki you explore by clicking red links, with choose-your-own-adventure steering.
$2 in / $10 out per 1M tokensSeveral monthsIntermediate
A creator built X-Wave, a synth with granular controls that runs in the browser, from scratch in Antigravity with Gemini 4 Argon, only by describing what he wanted in plain language.
A builder asked six top models, including Gemini 4 Argon, Claude Opus 5.5, Qwen 3.8-Max, Muse and GPT 6 Astra, to design and engineer a 3D-printed capsule that protects an egg from the tallest possible drop, then printed and tested them.
A builder made a dynamic Remotion video template in Cerevisor with Gemini 4 Argon: input a topic, audience and style, and agents storyboard, code the animation and call ElevenLabs for voiceover before rendering the MP4.
StarSkirmish Bench has LLMs play StarCraft: Brood War by writing code, now refreshed with results from the flagship OpenAI, Anthropic, Google and Muse models including Gemini 4 Argon.
$2 in / $10 out per 1M tokens1-2 hoursIntermediate
DNSathvara had an agent write each carousel slide in HTML and CSS, then convert them to high-resolution PNGs, because image models were not reliable at rendering slide text.
ArcticMusicP had Gemini build a Jupiter-8-style synth clone, then Claude fine-tuned it, created presets from the original manual and compared the result against authentic samples it found, for the Noteahead tracker.
saiitoshii points to gemini-api, a single binary that lets Claude Code, Codex or any shell agent generate images, video, TTS and music, saving files to disk and returning only the path.
erzenkk built Overseer, a free MIT-licensed browser view of Claude Code, Codex and Gemini CLI sessions on all his computers, with approvals from his phone.
Rate-limited across tools, he built Quotchi, a free Mac menu bar app that shows which of Claude Code, Codex and Gemini still has room. It needs no account and never reads your prompts.
How do you build with Gemini 4 Argon (API, Antigravity CLI, and the Dec 1 2026 price change)?
Gemini 4 Argon is Google's frontier reasoning model for long coding and agent tasks (model ID gemini-4-argon, 1M-token context, thinking levels low/medium/high). Use it three ways: the Gemini API paid tier with the google-genai SDK and the Interactions API; the Antigravity app or CLI (agy --model gemini-4-argon-high); or your own coding agent with Google's gemini-api-dev skill. Two dates matter: Google's Antigravity pricing page says Argon will be removed from Google AI Pro and Ultra plans on November 30, 2026, and the API price doubles on December 1, 2026, from $2/$10 to $4/$20 per million input/output tokens. There is no free API tier for Argon. After Nov 30 you can keep using it in Antigravity CLI with your own API key, or switch to Gemini 4 Carbon, Neon or Hydrogen.
What is Gemini 4 Argon?
Google's frontier reasoning model for long software engineering, knowledge work and security tasks, released October 13, 2026. Model ID gemini-4-argon, a 1M-token unified context window, thinking levels low/medium/high, and long decode up to 1M output tokens.
Is Gemini 4 Argon free?
No. It isn't on the Gemini API free tier. You need a paid API project, or (until November 30, 2026) a Google AI Pro or Ultra plan to use it in Antigravity.
What changes on December 1, 2026?
The introductory API price ends. Standard input goes from $2 to $4 and output from $10 to $20 per million tokens; cached input from $0.10 to $0.20. Batch and Flex double too, to $2/$10.
Is Argon leaving Antigravity?
Google's Antigravity pricing page marks Gemini 4 Argon (and Gemini 3.8 Flash and some other models) on the Pro and Ultra plans 'Will be removed on November 30, 2026'. You can still use Argon in the Antigravity CLI with your own Gemini API key.
Is the gemini-4-argon API model being shut down?
As of November 27, 2026, the model page lists gemini-4-argon as stable with prices set beyond December 1 and no shutdown date. Check Google's deprecations page before you build anything long-lived on it.
Can I use Argon in Gemini CLI?
Not really. Gemini CLI's README says it is now for Gemini Code Assist enterprise customers and isn't tuned for Gemini 4 models; Google points people to Antigravity CLI (agy) instead.
Which thinking level should I use?
Medium (the default) for most coding and agent work, high for multi-file debugging, security fixes, math and architecture, low for fast classification and extraction. Higher levels use more output tokens, which you pay for.
Argon, Carbon, Neon or Hydrogen?
On the API, Carbon costs the same as Argon; Google describes Argon as faster with lower token spend per turn than Carbon. Neon is $3/$15 and Hydrogen $1.50/$7.50, and Hydrogen has a free tier. Run the same task on two of them with your own check before committing.
How do I get outputs longer than 64K tokens?
Set background=True and max_output_tokens above 65,536 in the Interactions API, then poll interaction status. Join the text from all model_output steps.
Which versions does this guide use?
Checked November 27, 2026 against Google's Gemini 4 Argon model page, pricing page, developer guide, migration checklist, coding-agent and gemini-api CLI docs, and Antigravity's pricing, getting-started, headless and authentication docs. SDKs: google-genai 3.6.1 and @google/genai 3.6.1. argon_cost.py ran on Python 3.
Which AI tools do people use to build with Gemini 4 Argon (API, Antigravity CLI, and the Dec 1 2026 price change)?
Across the 24 sourced use cases in this guide, the most used tools are Gemini 4 Argon, Antigravity, Claude Code, Claude Opus 5.5, Claude.
How much does it cost to get started?
0 of the 24 use cases can start on a free plan. The most common paid starting price is $2 in / $10 out per 1M tokens (14 use cases). Prices come from each tool's official pricing page.
How long does setup take?
5 of the 24 use cases list a setup time of an hour or less. Each card shows the setup time the builder reported.
Are these real examples?
Yes. Every use case links to its public source (an X post, a Hacker News thread or a GitHub repo) with the author and date, so you can check it yourself.
The Daily 5
Liked this guide? Get five new use cases tomorrow morning
Five new real AI use cases every morning. Free. Unsubscribe any time.