翻篇收录说明
翻篇网页快照

Ideogram CLI: Image Generation for Claude Code, Codex and Cursor

https://ideogram.ai/features/cli/

最近抓取:2026-12-03 04:17:17(北京时间)

最近内容变化:2026-12-03 04:17:17(北京时间)

这是最近一次有效抓取的文本快照,不含网页脚本、图片和动态交互内容。实际网页可能已更新。

访问原网页

页面简介

The Ideogram CLI lets Claude Code, Codex and Cursor generate and edit images from the terminal. Install it with uv, pipx or Homebrew and sign in with your Ideogram account.

正文摘录

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 pipx Homebrew uv tool install ideogram-cli Copy Create an account See what it made 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 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 Code Codex Cursor Copy # 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. Risograph generate/ideogram-4-5 Letterpress generate/ideogram-4-5 Soft abstract generate/ideogram-4-5 Letterpress, edited precise-edit/ideogram-4-5 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. Bash ideogram guide Bash ideogram describe generate/ideogram-4-5; ideogram describe precise-edit/ideogram-4-5 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 …' 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 …' 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 …' 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.' Risograph Letterpress Soft abstract Open Late Remove the stray line under the headline on the risograph one. One request. 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, 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. 01 Install Terminal Copy uv tool install ideogram-cli # or: pipx install ideogram-cli # or: brew install ideogram-ai/tap/ideogram It needs Python 3.11 or later. 02 Sign in Terminal Copy ideogram login Your browser opens and you sign in as usual. SSO works too. 03 Generate Terminal Copy 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. Partner models Which partner models can the Ideogram CLI call? The CLI calls the partner models in the Ideogram API with the same ideogram run command and the same sign-in. Requests bill to the same Ideogram account as every other request, so you do not need a separate account with each model's maker. The video models also have image-to-video and reference-to-video endpoints, and ideogram endpoints lists every one. Model Endpoint Prices GPT Image 2.5 generate/gpt-image-2-5-flare GPT Image prices GPT Image 2 generate/gpt-image-2 GPT Image prices Nano Banana Pro generate/nano-banana-pro Nano Banana prices 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 Seedance 2.5 generate/seedance-2-5-text-to-video Seedance prices Seedance 2.0 generate/seedance-2-text-to-video Seedance prices Kling 4.0 generate/kling-4 Kling prices Kling 3.0 Standard generate/kling-3-standard-text-to-video Kling prices MiniMax H3 generate/minimax-h3-text-to-video MiniMax prices Topaz Standard V2 upscale/topaz-standard-2 Topaz upscale prices Topaz Text Refine upscale/topaz-text-refine Topaz upscale prices Topaz Wonder 3.5 upscale/topaz-wonder-3-5 Topaz upscale prices Topaz Wonder 4 upscale/topaz-wonder-4 Topaz upscale prices Topaz Bloom 2 upscale/topaz-bloom-2 Topaz upscale prices Topaz Redefine upscale/topaz-redefine Topaz upscale prices Claude Code skill Can I use the Ideogram CLI as a Claude Code skill? Claude Code loads any skill saved under .claude/skills in your project, so saving this file turns the CLI into an image generation skill. Claude reads its description and runs ideogram when a task needs an image or video, from Ideogram 4.5 to Nano Banana Pro. To work with Ideogram in a chat instead of a terminal, connect the Ideogram MCP server. .claude/skills/ideogram/SKILL.md Copy --- 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. 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 Copy 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. Create an account See plans and credits 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 it