Google's new gemini-api CLI lets Claude Code, Codex and Cursor make images, video and Deep Research reports
Google released the Gemini API CLI, a stateless, zero-dependency command-line client called gemini-api that any agent with shell access can use, including Antigravity, Claude Code, Codex, Cursor, OpenClaw and Hermes. Your coding agent can call Gemini to generate text, images, speech, music and video, analyze PDFs, audio and YouTube links, and launch Gemini managed agents such as Deep Research in the background. Every command describes itself offline with --help, --usage and --schema, and --dry-run lets an agent check a call without touching the network. Google calls it an experimental, open-source beta and says breaking changes can happen between minor versions.
Why it matters
You can keep the coding agent you already like and hand it Gemini's media and research tools with one shell command, without writing SDK code.
Who it's for
Developers using Claude Code, Codex, Cursor or Antigravity who want image, video, transcription or research help inside their agent workflow.
How to try it
- Install it with the script in Google's docs, then run gemini-api configure or export GEMINI_API_KEY with your AI Studio key.
- Paste Google's gemini-api snippet into your project's AGENTS.md or CLAUDE.md so your agent knows the tool exists.
- Ask your agent to preview calls with --dry-run -o json, then try one, such as generating a README hero image or a background Deep Research job.
Plan & availability: Experimental open-source beta (Apache 2.0) for macOS, Linux and Windows. It needs a Gemini API key from Google AI Studio, and calls follow normal Gemini API pricing and limits. Checked October 30, 2026.
Source: Google AI for Developers on ai.google.dev
Written by Sarah Mitchell from the original post. Checked Oct 30, 2026. Features, plans and availability can change, so confirm on the source before you rely on it.
gemini-apicliclaude-codecodexcursordeep-research
More Gemini tricks
- Antigravity 2.36.0 floats a live composer over your panels and lets Auto mode edit other repos · Nov 28
- Antigravity CLI 1.5.14 streams live thinking and plans remote work before it edits · Nov 21
- Antigravity CLI 1.5.13 brings Gemini 4 Neon to ADC sign-in and stops surprise swarms · Nov 20
- Gemini CLI 0.69 adds a /stats heatmap for your daily tokens and custom themes · Nov 19