Claude Code image generation · Updated October 12, 2026
Claude Code image generation with AnyCap. Generate and edit images from the same terminal session.
Claude Code can use AnyCap to generate a raster image, revise it from a reference, and save the file in your project. The skill supplies workflow instructions; the CLI calls the selected image model. Claude can also write SVG or HTML directly, so start by deciding whether your task needs code-drawn graphics or a generated image asset.
A real generation and edit, with one small artifact
On September 22, 2026, we ran Seedream 5 through AnyCap CLI 0.6.2 against the production API. The first request generated the olive lamp; the second used that saved file as its image reference. Both returned 2848 × 1600 PNGs with the requested 2k setting. The CLI reported 2 credits per request and command wall times of 28.24 and 33.22 seconds, including transfer and download. These are single-run observations, not fixed prices or latency guarantees.


The yellow shade and top cap are visible in the revision, while the stem, base, and overall composition remain similar. Inspection also found a small purple mark where the stem meets the base. This matters: asking to change only the shade did not leave every other pixel untouched. Both outputs are retained here as resized JPEG previews. The original PNGs were inspected directly and compared with AnyCap image analysis; this is one CLI workflow trial, not a benchmark of Claude Code itself.
Install path
Step 1
npx -y skills add anycap-ai/anycap -a claude-code -yStep 2
curl -fsSL https://anycap.ai/install.sh | shStep 3
anycap loginFirst commands to try
Text to image
anycap image generate --model seedream-5 --mode text-to-image --prompt "A small olive-green desk lamp on an off-white background, soft studio light, no text" --param aspect_ratio=16:9 --param resolution=2k --param format=png -o claude-code-launch-visual.pngImage editing
anycap image generate --model seedream-5 --mode image-to-image --prompt "Change only the lamp shade to warm yellow. Keep the composition and background." --param images=./claude-code-launch-visual.png --param aspect_ratio=16:9 --param resolution=2k --param format=png -o claude-code-launch-visual-edited.pngFrom a project brief to an asset you can use
Try this request in Claude Code after setup: “Use AnyCap to create a 16:9 image of an olive desk lamp for this project. Show me the available models before generating, save the selected result locally, then make a second version with a yellow shade. Keep both files so I can compare them.” We ran the two CLI commands above for the sample; the surrounding Claude Code conversation is an example, not a recorded host test.
Define the destination
Specify the asset filename, aspect ratio, subject, and where it will appear. For exact interface labels or a simple diagram, SVG or HTML may be the more controllable choice.
Review before editing
Open the first file and inspect the subject, composition, unwanted text, and dimensions. Reference that saved image for the edit; a second text-only prompt does not preserve the first result.
Check before integrating
Compare both files. A request to change only one detail can still alter other areas. Keep the original and add the chosen asset to the project only after review.
Recover a failed image step before generating again
Authentication or model access fails
Run anycap status in the same terminal where Claude Code executes commands. Resolve login, balance or model access there before trying another generation; credentials in a different host session do not establish access here.
The reference image is rejected
Confirm the saved file exists and inspect the image-to-image schema. Pass it as --param images=./claude-code-launch-visual.png so the CLI can upload it. The Seedream 5 schema checked on October 12 accepts up to nine references; check the selected model instead of reusing another model's limits.
An output was returned but the local save failed
Keep the returned output URL and request or task ID. Retry that download to a writable path before creating another image. If the submission result is unknown, investigate the recorded request instead of automatically resubmitting a billed call.
anycap image models seedream-5 schema --operation generate --mode image-to-imageanycap download "<returned-output-url>" -o claude-code-launch-visual.pngAgent skill or direct CLI
Agent skill
Best when you want Claude Code to choose the appropriate AnyCap command from a natural-language request and keep the result inside the current task.
Direct CLI
Best when you want explicit control over the model, mode, input image, parameters, and output filename. Claude Code can run the same command for you.
Current image models Claude Code can call
- GPT Image 2
- OpenAI's image family for general generation and prompt-driven image edits.
- Seedream 5
- The model used in the examples below: text-to-image and image-to-image, with 2k or 4k output in the checked schema.
- Nano Banana Pro
- Supports generation and reference-image editing. Inspect its own schema before reusing parameters from another model.
- Nano Banana 2
- Another generation and editing option. Compare results and actual cost on your own brief before choosing for repeated runs.
Catalog and command check · September 22, 2026
Choose a model and inspect its input requirements before generating.
Claude Code supplies the planning and terminal orchestration; AnyCap supplies the image runtime. The catalog check exposes ten active image models and both text-to-image and image-to-image modes. Generated files can be downloaded directly into the working project with -o. This check confirms model discovery and request fields; it is not an end-to-end generation benchmark.
- CLI checked
- AnyCap CLI 0.6.2
- Live catalog
- 10 active image models
- Catalog modes
- text-to-image, image-to-image
- Delivery
- Local output path with -o
anycap image models seedream-5 schema --operation generate --mode image-to-imageCost and limits to check first
Generation uses your AnyCap account and is separate from a Claude subscription. Check AnyCap pricing for the chosen model and allow for additional revisions. The checked Seedream 5 image-editing schema accepts up to nine references; other models can have different limits. Local references are uploaded for processing, and the command needs permission to write the output file. An authentication error must be resolved before generation can succeed.
FAQ
Is this a Claude Code skill?
Yes. AnyCap ships an agent skill for Claude Code. The skill teaches Claude Code when and how to use the AnyCap CLI for image generation and editing.
How do I install the AnyCap image generation skill in Claude Code?
Three commands. Run npx -y skills add anycap-ai/anycap -a claude-code -y to add the skill, curl -fsSL https://anycap.ai/install.sh | sh to install the AnyCap CLI binary, then anycap login. After that the skill is ready inside any Claude Code session.
Can Claude Code generate images on its own?
Claude can write SVG and HTML visuals. For the raster-image workflow on this page, Claude Code invokes an external image model through AnyCap. Installing a skill supplies instructions; generation also requires the CLI, a valid AnyCap login, and access to the selected model.
Which image models does the skill expose?
The September 22, 2026 catalog check lists ten active image models. Examples include GPT Image 2, Seedream 5, and the Nano Banana family. Run anycap image models and inspect the selected model schema before production use; the catalog can change.
Do I need a different workflow for image editing?
No. The same anycap image command in the skill covers both text-to-image and image-to-image workflows depending on the model and flags you use.
Generate one image in Claude Code
One saved raster image. Review the example and edit workflow below before expanding into a batch.
Install the CLI and sign in once. If you are already configured, continue with the access and cost checks.
curl -fsSL https://anycap.ai/install.sh | sh
anycap loginAdd the skill, then reopen your agent session if needed.
npx -y skills add anycap-ai/anycap -a claude-code -yRun anycap status, inspect the current model schema, and check pricing and your balance. Generation is billed; model access and rates can change.
Paste this prompt into your configured agent. Inspect the delivered file and actual charge.
Use AnyCap to generate a small olive-green desk lamp on an off-white background, soft studio light, no text. Check my login, image catalog and Seedream 5 text-to-image schema. Save the result as ./desk-lamp.png. Explain the applicable pricing and ask for approval before the billed task. After success, report the saved file and actual charge; do not count a submitted or failed request as a delivered image.Success means the output file exists and can be opened. Compare it with your brief or reference, including dimensions, subject details and unwanted text. If generation returned an output URL but saving failed, retry downloading that output before requesting another image.
Read the related workflow. For setup help, see installation and login.