image
Generate images from text prompts or edit existing images using AI models, supporting multiple aspect ratios and resolutions, with results saved as files.
Instructions
Generate images via OpenRouter-compatible or OpenAI-compatible endpoints.
CAPABILITIES:
Text-to-image generation with multiple providers
Image editing and transformation with reference images
Multiple aspect ratios and resolutions (1K/2K/4K)
RESPONSE FORMAT:
Returns XML with file paths to generated images
Images saved to disk (no base64 in response)
Includes text descriptions when available
BEST PRACTICES:
Be descriptive: describe scenes, lighting, style, composition
Use negative constraints in prompt: "no text", "no watermark", "no blur"
For editing: provide reference image and specify what to keep
Supports: reference images for editing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | Image generation prompt. Structure: <goal>what you want to generate (can be a statement)</goal> <context>detailed background info - the more the better</context> <hope>desired visual outcome, can be abstract</hope>. Example: <goal>Create a 4-panel comic about debugging</goal> <context>Developer finds a bug at 3am, tries multiple fixes, finally discovers it was a typo, comedic relief for tech blog</context> <hope>simple black-white line art, speech bubbles, exaggerated tired expressions</hope> | |
| images | No | Reference images for editing or style transfer. | |
| model | No | Model to use (default: from IMAGE_MODEL env). | |
| aspect_ratio | No | Output image aspect ratio. Default: 1:1 (square). | 1:1 |
| resolution | No | Output resolution. 1K (1024px), 2K (2048px), 4K (4096px). Default: 1K. | 1K |
| quality | No | Image quality (OpenAI generations API). Options: standard, hd. | standard |
| save_path | Yes | Base directory for saving images. Files saved to {save_path}/{task_note}/. | |
| api_type | No | API type to use. Default: from IMAGE_API_TYPE env var (openrouter_chat). | openrouter_chat |
| task_note | Yes | Subdirectory name for saving images (English recommended, e.g., 'hero-banner', 'product-shot'). Also shown in GUI. |