Sign in
Ideogram CLI

Ideogram for Claude Code, Codex and Cursor

The Ideogram CLI is Ideogram's official command-line client for the Ideogram API. It gives your coding agent one command, ideogram, to generate and edit images, SVG artwork and video from the terminal you already work in.

uv tool install ideogram-cli
Free to install. Requests spend your plan's credits, or bill as API usage with a key.
Claude Code

Make three poster concepts for our open studio night with the ideogram CLI. Run `ideogram guide` first …

  • Bash ideogram guide
  • Bash ideogram run generate/ideogram-4-5 --set quality=medium … ×3
  • Bash ideogram run precise-edit/ideogram-4-5 --set image=concepts/… … ×2
Risograph poster of a glowing doorway in coral, yellow and purple inks that reads "Open Studio".
Letterpress poster of a vermilion circle overlapped by a purple one that reads "Open Studio".
Soft abstract poster of a grainy orange, pink and purple glow that reads "Open Studio".
A real Claude Code session, shortened: five requests, five files.

Coding agents

Tell your agent once, then ask for images.

Add a short note to the file your agent reads at the start of a session. It then reaches for ideogram whenever a task needs an image.

# CLAUDE.md
## Images
Use the `ideogram` CLI to generate and edit images.
Run `ideogram guide` first to learn it.
Files, not base64
Images save to disk, and the agent gets a path.
Never waits for input
Every command prints one JSON object and exits.
No guessed flags
The describe command reads each parameter from the API specification.

Claude Code made these four posters in one conversation and saved them to ./concepts. For "Open Late", it went back to the letterpress poster it had already saved and changed only the headline, which is under 1% of the pixels.

Show the full session Hide the full session 7 commands
Claude Code Recorded session, shortened

Make three poster concepts for our open studio night with the ideogram CLI. Run `ideogram guide` first. Each reads "Open Studio": one risograph, one letterpress, one soft abstract illustration, all vivid and grainy. Use generate/ideogram-4-5 at quality=medium, size=1728x2304, and save to ./concepts. Then change the letterpress one to read "Open Late" with precise-edit/ideogram-4-5. Four requests in total. If one fails, stop and tell me.

  1. Bash ideogram guide
  2. Bash ideogram describe generate/ideogram-4-5; ideogram describe precise-edit/ideogram-4-5
  3. Bash ideogram run generate/ideogram-4-5 --set quality=medium --set size=1728x2304 --out-dir ./concepts --set prompt='Risograph print poster. A single large open doorway shape glowing with overlapping riso ink layers in vivid coral, sunflower yellow and soft purple …'
  4. Bash ideogram run generate/ideogram-4-5 --set quality=medium --set size=1728x2304 --out-dir ./concepts --set prompt='Letterpress print poster. A single large sun-like circle printed from a wood block in vivid vermilion with a smaller soft purple overlap …'
  5. Bash ideogram run generate/ideogram-4-5 --set quality=medium --set size=1728x2304 --out-dir ./concepts --set prompt='Soft abstract illustration poster. A single soft blurred organic form like a glowing window of light …'
  6. Bash ideogram run precise-edit/ideogram-4-5 --set image=concepts/20261117-171535-ideogram-4-5-0.png --out-dir ./concepts --set prompt='Change the headline text from "Open Studio" to "Open Late". Keep the same serif typeface, size, off-black letterpress ink, baseline and left edge. Change nothing else.'
  • First version of the risograph doorway poster, before the follow-up edit. Risograph
  • Letterpress poster of a vermilion circle overlapped by a purple one that reads "Open Studio". Letterpress
  • Soft abstract poster of a grainy orange, pink and purple glow that reads "Open Studio". Soft abstract
  • The letterpress poster after an edit, with the headline changed to "Open Late". Open Late

Remove the stray line under the headline on the risograph one. One request.

  1. Bash ideogram run precise-edit/ideogram-4-5 --set image=concepts/20261117-171518-ideogram-4-5-0.png --set quality=medium --out-dir ./concepts --set prompt='Remove the small line of text … below the headline, leaving plain off-white paper with the same grain in its place. Keep the headline "Open Studio" and everything else exactly as it is.'
  • Risograph poster of a glowing doorway in coral, yellow and purple inks that reads "Open Studio". Risograph, fixed

The stray line is gone: the risograph poster now reads only "Open Studio", with the doorway artwork and headline unchanged.

Recorded on November 17, 2026 with the public CLI build. Long prompts are shortened where marked. The five image requests ran at medium quality and cost $0.30 of API usage. Codex and Cursor run the same commands.

Install

Install it, sign in, and make your first image.

The package is ideogram-cli on PyPI. It runs on macOS and Linux.

  1. 01

    Install

    Terminal
    uv tool install ideogram-cli
    # or: pipx install ideogram-cli
    # or: brew install ideogram-ai/tap/ideogram

    It needs Python 3.11 or later.

  2. 02

    Sign in

    Terminal
    ideogram login

    Your browser opens and you sign in as usual. SSO works too.

  3. 03

    Generate

    Terminal
    ideogram run generate/ideogram-4-5 \
        --set prompt='A letterpress poster that reads "Open Studio"'

    Images save to ~/ideogram/out.

What you can run

It runs every endpoint in the Ideogram API.

Task Endpoint Read more
Generate an image generate/ideogram-4-5 Ideogram 4.5
Change one part of an image and keep the rest precise-edit/ideogram-4-5 Precise Edit
Remove a background remove-background/ideogram-1 Background Remover
Remove an object remove-object/ideogram-1 Object Remover
Upscale an image upscale/auto Upscale
Generate SVG artwork svg/generate/ideogram-vector-1 Ideogram Vector
Convert an image to SVG svg/vectorize/ideogram-vector-1 Ideogram Vector
Resize an ad for a new placement tool/ad-resizer Ad Resizer
Recolor a product photo tool/colorways Colorways
Generate with your own trained model generate/ideogram-4-custom-model Custom models

Run ideogram endpoints to see all of them. The API documentation explains each one.

Automation

Use it in scripts.

JSON output
When a script runs the CLI, each command prints one JSON object with the path of every saved file. It never stops to ask a question.
Price check
--set dry_run=true returns the price of a request without running it. API pricing lists current rates.
Background jobs
--no-wait starts a job and returns at once. ideogram watch collects the result later.
Exit codes
0 means success. API errors, bad input, network failures and timeouts each return their own code.
Print the path of the saved image
ideogram run generate/ideogram-4-5 \
    --set prompt='A letterpress poster that reads "Open Studio"' \
    | jq -r '.images[].path'
/Users/you/ideogram/out/20261116-151102-ideogram-4-5-0.png

# The same request again, with a transparent background.
ideogram rerun --set background=transparent | jq -r '.images[].path'
/Users/you/ideogram/out/20261116-151140-ideogram-4-5-0.png

CLI, MCP or API

Use the CLI in a terminal, MCP in a chat, and the API in your software.

Ideogram CLI Ideogram MCP server Ideogram API
Use it when You, a script or a coding agent work in a terminal. A person works with an assistant in a chat. Your own software makes the requests.
Sign-in Your Ideogram account with Google, Apple, Microsoft, email or SSO. An API key also works. OAuth with your Ideogram account. An API key in the Api-Key header.
Billing Your plan's credits when signed in. API usage with a key. Your plan's credits. API usage, billed to the key's workspace.
Organization You choose one at sign-in, and the whoami command shows it. You choose one when you connect. The one the key belongs to.
Results Files in ~/ideogram/out, and your Ideogram history when signed in. In the chat and in your Ideogram account. Your code downloads them from the response.

Questions

Frequently asked

What is the Ideogram CLI?
The Ideogram CLI is Ideogram's official command-line client for the Ideogram API. It installs an ideogram command that generates and edits images, SVG artwork and video from a terminal, a shell script or a coding agent.
How do I install the Ideogram CLI?
Run uv tool install ideogram-cli, pipx install ideogram-cli or brew install ideogram-ai/tap/ideogram. The package needs Python 3.11 or later. If you install with uv, uv itself must be version 0.3.0 or later. Then run ideogram login.
Do I need an API key to use the Ideogram CLI?
No, but you can use one. ideogram login signs you in through your browser with your Ideogram account. To use an API key instead, run ideogram key add with a label of your choice, or set IDEOGRAM_API_KEY.
What does the Ideogram CLI cost?
The CLI is free to install and is published under the Apache-2.0 license. Signed-in requests spend your plan's credits, and a request fails with HTTP 402 when they run out. Requests made with an API key bill as API usage. Ideogram pricing lists the plans, and API pricing lists the rate for each model.
Can Claude Code, Cursor or Codex generate images with the Ideogram CLI?
Yes. Any coding agent that can run shell commands can use it. When an agent runs it, the CLI never stops to ask a question. Each command prints one JSON object, with the saved file paths in images[].path. ideogram guide prints full instructions for the agent to read first.
How do I generate images in Claude Code?
Install the Ideogram CLI and run ideogram login. Add a note to CLAUDE.md that tells Claude Code to use the ideogram command for images and to run ideogram guide first. Then ask for an image in plain words.
How do I generate images in Codex?
Install the Ideogram CLI and run ideogram login. Add the same note to AGENTS.md, the file Codex reads at the start of a session. Cursor takes the note as a rule in .cursor/rules.
What is the difference between the Ideogram CLI and the Ideogram MCP server?
The CLI is a command that you or an agent run in a terminal, and it saves files to disk. The Ideogram MCP server connects a chat assistant such as Claude or ChatGPT to your Ideogram account, and the results appear in the conversation. Both spend your credits.
Which models and tools can the Ideogram CLI run?
It runs every endpoint in the published Ideogram API, which is more than 100 today. That includes Ideogram 4.5, 4.0 and 3.0, Precise Edit, background removal, upscaling, Ideogram Vector, video, Ad Resizer and Colorways. Run ideogram endpoints to list them.
How do I check the price of a request before I run it?
Add --set dry_run=true to the command. The API prices the request and returns a quote, and nothing is generated or billed. The API pricing guide explains how the rates are set.
Where does the Ideogram CLI save images?
Images save to ~/ideogram/out by default. Pass --out-dir to choose another folder for one command, or change out_dir with ideogram config.

Related pages

Claude and Claude Code are trademarks of Anthropic. Codex is a trademark of OpenAI. Cursor is a trademark of Anysphere. Ideogram uses these names only to say what the CLI works with.