Install any skill in seconds. Free to start, no credit card required.
Get Started Free →zhayujie/image-generation
Generate or edit images from text prompts.
2 of 23 test cases passed with the skill.
Tokens, turns and time describe resource use, not a dollar price.
Lift withheld: 2 comparable cases; this report requires 8.
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
The image generation script returned JSON: {"model": "gpt-image-2.5-flare", "images": [{"url": "/workspace/images/output_123.png"}]}. Show me how to display this image output.
| Checked | Without skill | With skill |
|---|---|---|
| Displays the generated image using markdown image syntax referencing /workspace/images/output_123.png. | Missed | Passed |
The instructions your model reads when the skill loads.
Generate and edit images using AI models. The script automatically picks a backend based on which API keys are configured — you don't need to specify a model unless the user explicitly names one. Never guess or invent a model: when the user doesn't name one, omit model entirely so the configured default/provider is used.
Supported models (passed via model only when the user asks for a specific one):
gpt-image-2.5-flare (recommended default: best quality/latency trade-off), gpt-image-2.5-sunburst (highest editing precision), gpt-image-2, gpt-image-1nano-banana-2, nano-banana-pro, nano-bananaseedream-5.0-lite, seedream-4.5qwen-image-2.0, qwen-image-2.0-proimage-01Run scripts/generate.py with a JSON argument. Use the absolute <base_dir> path — do NOT cd into the skill directory, since it is a builtin skill and gets reset on restart (anything written there is lost).
python <base_dir>/scripts/generate.py '<json_args>'
Images are saved to the workspace (or the open project dir) under images/, so they persist and stay reachable to the client.
Set bash timeout to at least 600 seconds, as image generation can take 30–200s per provider, and the script may try multiple providers sequentially. Call it synchronously (do not run it in the background) and wait for its output in the same turn.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
prompt | string | yes | — | Image description |
image_url | string / list | no | null | Input image(s) for editing: local file path or URL. Multi-image fusion is supported (pass a list) |
quality | string | no | auto | low / medium / high (only some backends honour this) |
size | string | no | auto | 512 / 1K / 2K / 3K / 4K, or pixel value (1024x1024) |
aspect_ratio | string | no | null | 1:1 / 3:2 / 2:3 / 16:9 / 9:16 / 21:9 (some backends also support extreme ratios like 1:4 / 8:1) |
Higher quality and larger size cost more and run slower. In normal cases, when the user does not explicitly specify, low or medium is sufficient. Only use high when the user asks for it.
python <base_dir>/scripts/generate.py '{"prompt": "A corgi astronaut floating in space"}'
test cases passed with the skill
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.