← Tracker · Model API

Gemini API CLI

Updated

TL;DR: Gemini API CLI (by Google; category: Model API). A free, open-source command-line tool (gemini-api) that lets a coding agent you already use, such as Claude Code, Codex, Cursor or Antigravity, call Gemini models from the shell. One command can generate an image, voiceover or video into your project folder, analyze a file, transcribe audio, or start a Gemini managed agent such as Deep Research in the background and fetch the result later. It ships as a single Go binary for macOS, Linux and Windows, with a bundled agent skill that teaches your agent when and how to use it. It is a stateless API client, not a coding agent like Google's separate Gemini CLI. Pricing: The CLI is free under Apache 2.0. Every call it makes is billed at normal Gemini API rates for the model or managed agent used, on your own API key; see Google's Gemini API pricing page, which also says free-tier inputs may be used to improve Google's products (checked Nov 26, 2026).. Best for: Builders using Claude Code, Codex or Cursor who want Gemini media models.

BuildersModel APIGoogle

A free, open-source command-line tool (gemini-api) that lets a coding agent you already use, such as Claude Code, Codex, Cursor or Antigravity, call Gemini models from the shell. One command can generate an image, voiceover or video into your project folder, analyze a file, transcribe audio, or start a Gemini managed agent such as Deep Research in the background and fetch the result later. It ships as a single Go binary for macOS, Linux and Windows, with a bundled agent skill that teaches your agent when and how to use it. It is a stateless API client, not a coding agent like Google's separate Gemini CLI.

Features and pricing are based on Google's official site and docs (vendor claims), not our own testing. Our take is labeled separately below.

The Builder Brief Take

Who it's for

  • Builders using Claude Code, Codex or Cursor who want Gemini media models
  • Scripts and CI jobs that need Gemini without SDK code
  • Anyone trying Gemini Deep Research from a terminal

Who should skip it

  • People who want an interactive coding agent (use Gemini CLI)
  • Teams on a single non-Google model provider
  • Non-technical users

Where it works

  1. Product images: Have your agent generate or edit images straight into the project folder.
  2. Transcripts: Transcribe a recorded call or video from the shell.
  3. Background research: Start a Deep Research run and collect it later.

Pros and cons

Pros

  • Free, Apache 2.0
  • One binary for macOS, Linux and Windows
  • Dry-run and self-describing commands for agents
  • Works with agents from other vendors

Cons

  • Beta, breaking changes possible
  • Usage billed at Gemini API rates
  • Free-tier inputs may be used by Google
  • We have not tested it

The move: getting started with Gemini API CLI

  1. Use a billed key for client files
  2. Install and pin a release
  3. Run install-skill for your agent
  4. Try one media or transcript job
  5. Watch the bill for a week

How it helps

Who: A builder who already works with Claude Code, Codex or another shell agent and wants Gemini's image, video, audio or research models available inside the same session without writing SDK code.

  1. Create a Gemini API key in a billed Google AI Studio project if the files involve client work, since free-tier inputs may be used by Google.
  2. Install the binary from the official GitHub releases and pin the version in anything automated.
  3. Run gemini-api install-skill for your agent so it knows when to call the tool.
  4. Have the agent try one job you'd otherwise do by hand, such as generating product images or transcribing a recorded call, and check the output file.
  5. Use --dry-run first on anything that would run a long managed agent, and watch the API bill for the first week.

Result: Gemini's media and research models on call from the agent you already trust, with outputs landing as files in your project.

Why it matters

Editorial assessment: this is a small tool with a clear idea behind it. Agents work best with simple shell commands that describe themselves, and this gives them one for a whole model family instead of throwaway scripts. It's most useful if you want Gemini's media generation or Deep Research alongside a non-Google coding agent. If you only use one model provider, you probably don't need it. It's beta, so expect changes.

Gemini API CLI alternatives

Recent changes

Putting it to work? Get a starter stack for your job in about a minute with the Stack Picker, or see how done-with-you setup works if you want help.

Get changes in your inbox

New AI tools, honest reviews and playbooks. One email a week.

Free. Unsubscribe anytime.

Make an AI tool? List your tool on Builder Brief. Free listings get the same editorial review as paid ones.