Generate images from Claude Code

Claude Code cannot generate images on its own — it has no image model. With the Actionway Skill installed, the same session can generate images from Claude Code: GPT Image 2 at $0.15 per run or a Seedream 5 LTE draft at $0.10 per run, saved as a file in your project about a minute later.

連接你的 Agent

你說

Make a clean minimalist poster of a small robot assistant holding a paint palette — soft studio light, warm beige background.

AGENT 回覆

Image generation. Three options from the catalog, priced per run:

  • GPT Image 2$0.15 per rungeneration and precise edit instructions
  • Seedream 5 LTE$0.10 per runfast drafts
  • Banana 2$0.20 per rungeneration and reference-based edits

你選定: GPT Image 2

  • Calls the image service with the GPT Image 2 variant — the run is accepted as a job
  • Waits on the job; this one finished in about 75 seconds
  • Downloads the image into the project's outputs/ folder and hands you the file

結果

The poster GPT Image 2 generated from the prompt: a small robot assistant holding a paint palette

1 run · GPT Image 2 · $0.15 per run · charged from the wallet after completion

That is the entire loop, unedited, from a real session: one sentence in, a file out, one line on the bill. Claude Code itself does not ship an image model — the work goes through Actionway's image generation capability, and the Skill installed with the CLI is what teaches the agent to plan, price, run, and deliver it.

What happened in between

Before answering, the agent checked the capability catalog it keeps locally, so the first reply already carried the plan: which capability, which models, what each costs per run. It presents those options neutrally — no default, no recommendation; say "you pick" and it takes the best-quality tier. Picking one is the approval: the call runs at the shown price, and Actionway checks the wallet on its side. Only runs the platform flags for extra confirmation pause for another question first.

Image generation runs as a job, so the agent waits on it rather than polling by hand, then downloads the finished asset into an outputs/ folder in your project with a descriptive filename. You get a local file, not a link. If the wallet cannot cover a run, the agent stops before anything is charged and gives you a top-up link with the amount prefilled.

Pick a model, pay per run

Three families cover most image work, at fixed catalog prices: GPT Image 2 ($0.15 per run) for generation and precise edits, Seedream (from $0.10 per run) for fast drafts and final renders, and the Banana models ($0.20 per run for Banana 2, $0.30 per run for Banana Pro) for reference-based edits. The prices are rendered from the same registry the models library shows, so they match what your agent quotes.

Draft-tier render of the same robot poster prompt, generated with Seedream 5 LTE
Same prompt on the draft tier — Seedream 5 LTE ($0.10 per run). Iterate here, then spend the premium run on the final frame.

Editing works like generation: hand the agent an existing image plus the change you want, and it routes the job to a variant that accepts reference input. Every attempt is one catalog-priced run, and there is no subscription — a balance you top up once covers every capability in the catalog.

Writing a brief the model can follow

The prompt in the case is short on purpose: one subject, one style, one light, one background. Image models do best with that shape. Say what the picture is of before you say how it should look, name the surface it will live on if that matters (a square social tile, a wide banner, a portrait poster), and keep any text you want in the image to a few words in quotation marks — long sentences come back misspelled. Leave out what you do not care about; every extra adjective is a constraint the model may satisfy at the expense of the one you did care about.

Iterate on the draft tier. A Seedream 5 LTE run costs $0.10 per run, so trying five phrasings of the same brief is cheaper than one premium run, and the agent keeps every file, so nothing is lost when you go back to a version from three attempts ago. When a draft is close, send the same sentence to GPT Image 2 for the final; if it is close but one detail is wrong, hand the draft back as a reference and describe only the change.

你這樣問

Same poster, but make the palette bright coral and add the word "ATELIER" at the bottom in small capitals.

A follow-up like this reuses the file already in outputs/ as the reference. The agent lists the models that accept one, with prices, and runs the one you pick.

Set it up once

npm install --global @actionway/cli@latest
actionway init
mkdir -p "$HOME/.claude/skills"
cp -R "$HOME/.actionway/skill/actionway" "$HOME/.claude/skills/actionway"
init shows a short code and a verification URL — approve it in any browser — then stages the Actionway Skill at ~/.actionway/skill/actionway. The last two lines copy it to ~/.claude/skills/actionway, where Claude Code loads Skills; restart Claude Code or open a new session afterwards. Windows paths are on the get started page.

You need Node.js 20 or newer and an Actionway account; after sign-in the agent reports your wallet balance and, if it is empty, links you straight to top-up. Prefer a plugin or a Remote MCP server instead of a CLI? Both routes end at the same catalog and the same wallet — the get started page lists the steps per client side by side.

常見問題

Can Claude Code generate images?Not by itself — Claude Code has no image model. Connect Actionway and the same session can call GPT Image 2, Seedream, or the Banana models, each priced per run, and save the image into your project.

How much does it cost to generate an image with Claude Code?One fixed catalog price per run: $0.15 per run for GPT Image 2, $0.10 per run for a Seedream 5 LTE draft, $0.20 per run for Banana 2. The agent shows those prices with the options before you pick; the models library lists every current price.

Does Claude Code ask me to approve every image run?No. Picking a model from the priced list is the approval and the run goes ahead at that price. Only runs the platform flags for extra confirmation stop for another question, and an empty wallet stops the run before anything is charged.

在你的 AGENT 裡試試

連接一次,整個目錄都能用。

連接 Actionway 後,Agent 自己找到合適的服務,每次執行前給出美元報價,按次從錢包扣款。

連接你的 Agent