# Ideogram CLI for Claude Code, Codex, and Cursor

Ideogram publishes a public search API over its indexed pages; the guide is at https://ideogram.toolspoint.net/agents/agent-access.

Source: https://ideogram.toolspoint.net/features/cli/
Source observed: 2026-12-03T22:03:13.271Z
Last checked: 2026-12-03T22:03:13.271+00:00
Indexed: 2026-12-03T22:34:20.773+00:00

---

# Ideogram CLI for Claude Code, Codex, and Cursor

We provide the official command-line client for the [Ideogram API](https://developer.ideogram.ai/ideogram-api/api-overview). The `ideogram` command lets you generate and edit images, SVG artwork, and video from a terminal, shell script, or coding agent such as Claude Code, Codex, or Cursor.

Install the CLI free of charge. Signed-in requests spend credits from your Ideogram plan; requests made with an API key are billed as API usage.

[Create an account](https://ideogram.toolspoint.net/signup?intent=app&source=cli-hero) · [See what it made](https://ideogram.toolspoint.net/features/cli/#gallery) · [Contact sales](https://ideogram.toolspoint.net/enterprise/?from=features-cli)

## Install, sign in, and generate

The `ideogram-cli` package is available on [PyPI](https://pypi.org/project/ideogram-cli/), and runs on macOS and Linux. Python 3.11 or later is required. If you install with `uv`, `uv` 0.3.0 or later is required.

### 1. Install

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

### 2. Sign in

```bash
ideogram login
```

A browser opens for normal account sign-in; SSO works too. An API key is optional: add one with `ideogram key add` or set `IDEOGRAM_API_KEY`.

### 3. Generate

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

By default, images are saved to `~/ideogram/out`. Use `--out-dir` for a one-command destination or change `out_dir` with `ideogram config`.

## Use a coding agent

Add a short instruction to the file your agent reads at the start of a session:

```markdown
# CLAUDE.md
## Images
Use the `ideogram` CLI to generate and edit images.
Run `ideogram guide` first to learn it.
```

For Codex, put the same note in `AGENTS.md`. For Cursor, add it as a rule in `.cursor/rules`.

The CLI is designed for automation:

- **Files, not base64:** images are saved to disk and the agent receives a path.
- **Never waits for input:** every command prints one JSON object and exits.
- **No guessed flags:** `ideogram describe` reads parameters from the API specification.
- A successful command returns exit code `0`; API errors, invalid input, network failures, and timeouts each return their own code.

### Example session

Claude Code created three demo poster concepts with `generate/ideogram-4-5`, saved them to `./concepts`, then edited the letterpress demo to change only “Open Studio” to “Open Late” with `precise-edit/ideogram-4-5`. The edit changed under 1% of the pixels. The five image requests in this recorded demo ran at medium quality and cost `$0.30` of API usage. The session was recorded on November 17, 2026 with the public CLI build.

![Risograph poster of a glowing doorway in coral, yellow and purple inks that reads “Open Studio”.](https://storage.googleapis.com/ideogram-static/website/images/d454a720fe468d39.webp)

*Demo: Risograph — `generate/ideogram-4-5`*

![Letterpress poster of a vermilion circle overlapped by a purple one that reads “Open Studio”.](https://storage.googleapis.com/ideogram-static/website/images/4e1c3358901650ba.webp)

*Demo: Letterpress — `generate/ideogram-4-5`*

![Soft abstract poster of a grainy orange, pink and purple glow that reads “Open Studio”.](https://storage.googleapis.com/ideogram-static/website/images/79ab4548601c4221.webp)

*Demo: Soft abstract — `generate/ideogram-4-5`*

![The letterpress poster after an edit, with the headline changed to “Open Late”.](https://storage.googleapis.com/ideogram-static/website/images/0746754241221342.webp)

*Demo: Letterpress, edited — `precise-edit/ideogram-4-5`*

The first version of the risograph demo is also available here:

![First version of the risograph doorway poster, before the follow-up edit.](https://storage.googleapis.com/ideogram-static/website/images/3f67432c4ce1d6c3.webp)

A follow-up demo removed a stray line below the headline while leaving the “Open Studio” headline and doorway artwork unchanged:

![Risograph poster of a glowing doorway in coral, yellow and purple inks that reads “Open Studio”.](https://storage.googleapis.com/ideogram-static/website/images/d454a720fe468d39.webp)

### Recorded demo commands

```text
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.'`
```

The long prompts above are shortened where marked. Codex and Cursor run the same commands.

## Available Ideogram API endpoints

Run `ideogram endpoints` to list all available endpoints. The [API documentation](https://developer.ideogram.ai/ideogram-api/api-overview) explains each one.

| Task | Endpoint | Documentation |
|---|---|---|
| Generate an image | `generate/ideogram-4-5` | [Ideogram 4.5](https://ideogram.toolspoint.net/models/4.5/) |
| Change one part of an image and keep the rest | `precise-edit/ideogram-4-5` | [Precise Edit](https://ideogram.toolspoint.net/tools/precise-edit/) |
| Remove a background | `remove-background/ideogram-1` | [Background Remover](https://ideogram.toolspoint.net/tools/background-remover/) |
| Remove an object | `remove-object/ideogram-1` | [Object Remover](https://ideogram.toolspoint.net/tools/object-remover/) |
| Upscale an image | `upscale/auto` | [Upscale](https://ideogram.toolspoint.net/features/upscale/) |
| Generate SVG artwork | `svg/generate/ideogram-vector-1` | [Ideogram Vector](https://ideogram.toolspoint.net/models/vector/) |
| Convert an image to SVG | `svg/vectorize/ideogram-vector-1` | [Ideogram Vector](https://ideogram.toolspoint.net/models/vector/) |
| Resize an ad for a new placement | `tool/ad-resizer` | [Ad Resizer](https://ideogram.toolspoint.net/tools/ad-resizer/) |
| Recolor a product photo | `tool/colorways` | [Colorways](https://ideogram.toolspoint.net/tools/colorways/) |
| Generate with your own trained model | `generate/ideogram-4-custom-model` | [Custom models](https://ideogram.toolspoint.net/features/custom-models/) |

The CLI runs every published Ideogram API endpoint, including more than 100 endpoints across image generation, video, editing, upscaling, and other tools.

## Partner models

We provide access to partner models through the same `ideogram run` command and sign-in. Requests bill to the same Ideogram account, so a separate account with each model maker is not required. Video models also include image-to-video and reference-to-video endpoints; `ideogram endpoints` lists every available endpoint.

| Model | Endpoint | Price information |
|---|---|---|
| GPT Image 2.5 | `generate/gpt-image-2-5-flare` | [GPT Image prices](https://ideogram.toolspoint.net/pricing/?pricing_tab=api) |
| GPT Image 2 | `generate/gpt-image-2` | [GPT Image prices](https://ideogram.toolspoint.net/pricing/?pricing_tab=api) |
| Nano Banana Pro | `generate/nano-banana-pro` | [Nano Banana prices](https://ideogram.toolspoint.net/pricing/?pricing_tab=api) |
| Nano Banana 2.1 | `generate/nano-banana-2-1` | Not on the price list yet |
| Nano Banana 2 | `generate/nano-banana-2` | [Nano Banana prices](https://ideogram.toolspoint.net/pricing/?pricing_tab=api) |
| Seedance 2.5 | `generate/seedance-2-5-text-to-video` | [Seedance prices](https://ideogram.toolspoint.net/pricing/?pricing_tab=api) |
| Seedance 2.0 | `generate/seedance-2-text-to-video` | [Seedance prices](https://ideogram.toolspoint.net/pricing/?pricing_tab=api) |
| Kling 4.0 | `generate/kling-4` | [Kling prices](https://ideogram.toolspoint.net/pricing/?pricing_tab=api) |
| Kling 3.0 Standard | `generate/kling-3-standard-text-to-video` | [Kling prices](https://ideogram.toolspoint.net/pricing/?pricing_tab=api) |
| MiniMax H3 | `generate/minimax-h3-text-to-video` | [MiniMax prices](https://ideogram.toolspoint.net/pricing/?pricing_tab=api) |
| Topaz Standard V2 | `upscale/topaz-standard-2` | [Topaz upscale prices](https://ideogram.toolspoint.net/pricing/?pricing_tab=api) |
| Topaz Text Refine | `upscale/topaz-text-refine` | [Topaz upscale prices](https://ideogram.toolspoint.net/pricing/?pricing_tab=api) |
| Topaz Wonder 3.5 | `upscale/topaz-wonder-3-5` | [Topaz upscale prices](https://ideogram.toolspoint.net/pricing/?pricing_tab=api) |
| Topaz Wonder 4 | `upscale/topaz-wonder-4` | [Topaz upscale prices](https://ideogram.toolspoint.net/pricing/?pricing_tab=api) |
| Topaz Bloom 2 | `upscale/topaz-bloom-2` | [Topaz upscale prices](https://ideogram.toolspoint.net/pricing/?pricing_tab=api) |
| Topaz Redefine | `upscale/topaz-redefine` | [Topaz upscale prices](https://ideogram.toolspoint.net/pricing/?pricing_tab=api) |

## Claude Code skill

Claude Code loads skills saved under `.claude/skills` in a project. Save this file as `.claude/skills/ideogram/SKILL.md` to make the CLI an image and video generation skill:

```markdown
---
name: ideogram
description: Generate and edit images and video with the Ideogram CLI, including Ideogram, Nano Banana, GPT Image, Seedance and Kling models.
---
Use the `ideogram` CLI to generate and edit images and video.
Run `ideogram guide` first to learn it.
```

Claude reads the description and runs `ideogram` when a task needs an image or video, from Ideogram 4.5 to Nano Banana Pro. For a chat-based connection instead of a terminal, use the [Ideogram MCP server](https://ideogram.toolspoint.net/features/mcp/).

## Automation and scripts

### JSON output

Each command prints one JSON object containing the path of every saved file. The CLI does not stop for questions.

### Check a price without running a request

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

`--set dry_run=true` returns the request price without generating or billing it. [API pricing](https://ideogram.toolspoint.net/pricing/?pricing_tab=api) lists current rates.

### Background jobs

`--no-wait` starts a job and returns immediately. Run `ideogram watch` later to collect the result.

### Print a saved-image path

```bash
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

| | 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 requests. |
| Sign-in | Ideogram account with Google, Apple, Microsoft, email, or SSO; an API key also works. | OAuth with your Ideogram account. | 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; `whoami` shows the active organization. | You choose one when connecting. | The organization belonging to the key. |
| Results | Files in `~/ideogram/out` and your Ideogram history when signed in. | In the chat and your Ideogram account. | Your code downloads them from the response. |

[Create an account](https://ideogram.toolspoint.net/signup?intent=app&source=cli-compare) · [See plans and credits](https://ideogram.toolspoint.net/pricing/) · [Talk to an expert](https://ideogram.toolspoint.net/enterprise/?from=features-cli)

## Frequently asked questions

### What is the Ideogram CLI?

It is our official command-line client for the Ideogram API. It installs an `ideogram` command for generating and editing images, SVG artwork, and video from a terminal, shell script, or coding agent.

### How do I install it?

Run `uv tool install ideogram-cli`, `pipx install ideogram-cli`, or `brew install ideogram-ai/tap/ideogram`, then run `ideogram login`. Python 3.11 or later is required; `uv` installations require `uv` 0.3.0 or later.

### Do I need an API key?

No. `ideogram login` signs you in through a browser with your Ideogram account. To use an API key, run `ideogram key add` with a label or set `IDEOGRAM_API_KEY`.

### What does it cost?

The CLI is free to install and is published under the Apache-2.0 license. Signed-in requests spend your plan's credits; when credits run out, the request fails with HTTP 402. API-key requests are billed as API usage. See [Ideogram pricing](https://ideogram.toolspoint.net/pricing/) and [API pricing](https://ideogram.toolspoint.net/pricing/?pricing_tab=api).

### Which workspace pays for requests?

With `ideogram login`, choose a workspace; `whoami` shows the active workspace. Signed-in requests use that workspace's credits. API-key requests are billed as API usage.

### Can Claude Code, Cursor, or Codex generate images?

Yes. Any coding agent that can run shell commands can use the CLI. Each command prints one JSON object, including saved paths in `images[].path`; `ideogram guide` prints full instructions for the agent.

### How do I use Claude Code?

Install the CLI, run `ideogram login`, and tell Claude Code in `CLAUDE.md` to use `ideogram` for images and to run `ideogram guide` first. Then request an image in ordinary language.

### How do I use Codex?

Install the CLI, run `ideogram login`, and add the same instruction to `AGENTS.md`, which Codex reads at the start of a session. Cursor accepts the instruction as a rule in `.cursor/rules`.

### What is the difference between the CLI and MCP server?

The CLI is a terminal command that saves files to disk. The [Ideogram MCP server](https://ideogram.toolspoint.net/features/mcp/) connects a chat assistant such as Claude or ChatGPT to your Ideogram account, with results appearing in the conversation. Both use your credits.

### Which models and tools can it run?

It runs every published Ideogram API endpoint, including 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 a request price first?

Add `--set dry_run=true`. The API returns a quote without generating or billing the request. The [API pricing guide](https://ideogram.toolspoint.net/blog/ideogram-api-pricing/) explains how rates are set.

### Where are images saved?

Images save to `~/ideogram/out` by default. Use `--out-dir` for a one-command alternative or change `out_dir` with `ideogram config`.

Claude and Claude Code are trademarks of Anthropic. Codex is a trademark of OpenAI. Cursor is a trademark of Anysphere. We use these names only to identify compatibility with the CLI.

[Ideogram home](https://ideogram.toolspoint.net/) · [Pricing](https://ideogram.toolspoint.net/pricing/) · [Enterprise](https://ideogram.toolspoint.net/enterprise/) · Terms of Service · Privacy Policy

---

[Read this page’s summary](https://ideogram.toolspoint.net/agents/api/public/v1/page-tldr?url=https%3A%2F%2Fideogram.ai%2Ffeatures%2Fcli%2F&trace=t_380edc68d53d)

## Ask a follow-up about this page

Need a more specific answer? Ask the exact question you have. It returns a fresh, cited answer from Ideogram’s knowledge base. No account or API key required.

Open this URL with your own question, URL-encoded. Include your question in q. All research inputs are optional; no account or setup.

`GET https://ideogram.toolspoint.net/agents/agent/faq?q={question}&trace=t_380edc68d53d`

[Tool guide and examples](https://ideogram.toolspoint.net/agents/agent-access) · [OpenAPI](https://ideogram.toolspoint.net/agents/api/public/v1/openapi.json) · [Page TLDR form](https://ideogram.toolspoint.net/agents/agent-tools/page-tldr?url=https%3A%2F%2Fideogram.ai%2Ffeatures%2Fcli%2F). Opening a form does not execute a tool.