generate_image
Create an image generation task (text-to-image, or image-to-image when image_urls are provided). Pro/Ultra flagship models (GPT Image 2, GPT Image 2.5, Nano Banana 2, Grok Imagine) and Ultra ViewMax C1 cost 0 credits within the shared daily fair-use pool; otherwise this consumes credits. Call wait_for_task with the task_id for the result URLs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | ||
| scene | No | ||
| prompt | Yes | ||
| quality | No | ||
| image_urls | No | ||
| aspect_ratio | No | ||
| idempotency_key | No | Optional, 1-200 visible ASCII characters without spaces. Reuse the same key when retrying after a timeout; a repeated key returns the original task and is not charged again. |