Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Create images from a text description, or edit photos and graphics the user provides (remove backgrounds or watermarks, retouch, restyle, in-paint). Can produce multiple variants when the user wants options to choose from.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-11 | ✗→✓ | ▲ Improved | 5% | 0% |
| case-15 | ✗→✓ | ▲ Improved | 18% | 0% |
| case-16 | ✗→✓ | ▲ Improved | -2% | 0% |
| case-06 | ✓→✗ | ▼ Worse | 47% | 0% |
| case-10 | ✓→✗ | ▼ Worse | 25% | 0% |
Use the media_generate_image tool via skill_execute to create or edit images.
source_paths.Do not pass the model parameter unless you need a specific tier. Omitting it uses the configured default, which is correct for most requests.
When you do need to choose, use an alias, not a concrete model ID. Aliases always resolve to the current model for that tier:
fast: quickest, good quality (default tier)quality: higher fidelity, sloweropenai: OpenAI's model; most permissive on photo editsPass a concrete model ID only if the user names one explicitly. If the tool rejects an unknown model ID, the error lists the currently available models and aliases.
Generate (no model parameter, default is correct):
json{ "tool": "media_generate_image", "input": { "prompt": "A sunset over the ocean, golden hour, soft haze, 35mm photo style", "variants": 2 } }
Edit:
json{ "tool": "media_generate_image", "input": { "prompt": "Remove the watermark text from the background. Keep the subject, framing, lighting, and colors exactly identical. Change nothing else.", "mode": "edit", "source_paths": ["conversations/<conv-id>/attachments/photo.jpeg"], "model": "openai" } }
source_paths is a flat array of file path strings. Do NOT pass objects:
"source_paths": [{ "path": "img.jpeg" }] → schema validation error"source_paths": ["img.jpeg"]conversations/<conversation-id>/attachments/; prefer that path for images the user attached.~/Desktop/photo.jpg) only work if the file arrived as an attachment; the tool falls back to the stored workspace copy. If the user references a host file that was never attached, pull it into the workspace first, then pass the workspace path.variants (1 to 4) when the user wants options. In edit mode always use variants: 1: edits run 60-90 seconds per variant, and two variants can exceed the tool execution timeout (timeouts.toolExecutionTimeoutSec, default 120s). If the user wants multiple edit options, make separate sequential calls.Edits on large photos are slow (1 to 2 minutes). If the tool reports a timeout ("timed out after Ns"), the result is lost; do not wait for it to appear. Retry with variants: 1, or if it already was 1, fall back to the CLI which writes files to disk: assistant image-generation generate --prompt "..." --mode edit --source <path> --model openai --output-dir <dir>.
Images return as inline content blocks in the tool result; they are not written to disk automatically.
Two kinds of failure. Treat them differently:
gemini-* model (or no model) → retry ONCE with model: "openai".gpt-image-2 or another gpt-* model → retry ONCE with model: "quality".Do NOT rephrase the prompt and retry on the same model, even if the error suggests checking the prompt. One provider switch, then stop.
The tool has returned at least one image and the user can see it: either the inline result in chat or an attached saved file. An error report counts as complete only after the retry path in Error handling has been exhausted.
Other measured skills in the registry, with their headline benchmark lift.