Generate Image
generate_imageGenerate images from text prompts using multiple AI providers, with control over model, size, aspect ratio, and seed for reproducible results or targeted image creation.
Instructions
Generate an image from a text prompt. Uses OpenRouter by default. Supports multiple providers: openrouter, together, replicate, fal.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Random seed for reproducibility | |
| model | No | Model ID (e.g. 'google/gemini-2.5-flash-image', 'black-forest-labs/flux-schnell') | |
| prompt | Yes | Text description of the image to generate | |
| save_to | No | Custom file path to save the image. Defaults to ~/generated-images/ | |
| provider | No | Provider to use: openrouter (default), together, replicate, fal | |
| image_size | No | Image resolution: 1K (default), 2K, 4K | |
| aspect_ratio | No | Aspect ratio: 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3 | |
| negative_prompt | No | What to exclude from the image (not supported by all providers) |