Coze Image Gen
/install coze-image-gen
Coze Image Generation
Generate high-quality images from text prompts using coze-coding-dev-sdk. Returns image URLs directly.
Quick Start
Single Image
npx ts-node {baseDir}/scripts/gen.ts --prompt "A futuristic city at sunset"
Batch Generation (Random Prompts)
npx ts-node {baseDir}/scripts/gen.ts --count 4
With Custom Size
npx ts-node {baseDir}/scripts/gen.ts \
--prompt "A serene mountain landscape" \
--size 4K
Sequential Image Generation (Story Mode)
npx ts-node {baseDir}/scripts/gen.ts \
--prompt "A hero's journey through magical lands" \
--sequential \
--max-sequential 5
Script Options
| Option | Description |
|---|---|
--prompt \x3Ctext> |
Image prompt (random if omitted) |
--count \x3Cn> |
Number of images (default: 1) |
--size \x3Csize> |
2K, 4K, or WIDTHxHEIGHT (default: 2K) |
--sequential |
Enable sequential generation (story mode) |
--max-sequential \x3Cn> |
Max images for sequential (default: 5) |
Output
The script outputs image URLs directly to stdout:
[1/1] A futuristic city at sunset
https://example.com/generated-image.png
Text in Images
Wrap text in quotes for accurate rendering:
npx ts-node {baseDir}/scripts/gen.ts \
--prompt 'A poster with the text "Hello World" on it'
Notes
- Size range for custom dimensions: 2560x1440 to 4096x4096
- Image URLs have valid expiration - use directly when possible
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install coze-image-gen - After installation, invoke the skill by name or use
/coze-image-gen - Provide required inputs per the skill's parameter spec and get structured output
What is Coze Image Gen?
Create images from text prompts. Use when you need to generate/draw/create images based on descriptions. It is an AI Agent Skill for Claude Code / OpenClaw, with 384 downloads so far.
How do I install Coze Image Gen?
Run "/install coze-image-gen" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Coze Image Gen free?
Yes, Coze Image Gen is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Coze Image Gen support?
Coze Image Gen is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Coze Image Gen?
It is built and maintained by hanxueyuan (@hanxueyuan); the current version is v1.0.0.