Gemini API CLI
by Google
An experimental, stateless command-line tool that lets any agent with shell access (Claude Code, Codex, Antigravity and others) call Gemini models: text and reasoning, file analysis, image, audio, music and video generation, and background managed agents.
What people use it for
Lets your existing coding agent generate a hero image, a voiceover or a transcript, or get a second opinion on a file, straight into the project with one shell command.
A self-describing CLI (--schema, --usage, --dry-run, JSON output) your agent can use to start Gemini managed agents in the background and fetch the result later.
Pricing
The CLI is Apache-2.0 open source and a single Go binary for macOS, Linux and Windows. It needs a Gemini API key, and API calls are priced by Google; see the Gemini API docs for current rates and any free tier.
Prices change often. Always confirm on the official site.