Generate image with AI
generate_imageGenerate image(s) with AI. Requires the project's AI image generation to be enabled (check get_project context.imageGeneration.enabled or get_imagegen_quota first); if generation is disabled, the monthly quota is exhausted, or too many jobs are running concurrently, the tool returns a clear error. START-ONLY: returns { status: 'pending', jobId } immediately; poll get_image_job(jobId) to retrieve the finished assets, then set an asset url as a section media.src. Use this for custom, branded, or illustrative imagery; prefer search_stock_images + upload_asset for real-world photos.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | How many images to generate (1-4) | |
| prompt | Yes | Description of the image to generate (max 2000 chars) | |
| quality | No | Generation quality | |
| projectId | Yes | The project ID | |
| aspectRatioOverride | No | Aspect ratio override |