generate_image_lab
Start a paid Image Lab generation (ChatGPT Image 2.5, Nano Banana, Nano Banana 2, Nano Banana 2.1, Nano Banana Pro, FLUX 3 Image, FLUX.2 Pro, Ideogram V4.5, MAI Image 2.5, MAI Image 2.5 Pro, Seedream 5 Lite, Seedream 5 Flash, Muse Image, Grok Imagine Image 2.0, Qwen Image 3, Kling Omni 3, or Recraft V4.1 Flash). Uses this month’s generation allowance. Poll get_image_lab_generation until it finishes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | text_to_image or image_to_image. Must match the quote when quoteId is set. Same as inputMode. | |
| prompt | No | What to draw. Omit when quoteId is set. | |
| quoteId | No | Quote id from quote_image_lab. Optional; generate quotes first when omitted if modelSlug and prompt are set. | |
| inputMode | No | Same as mode: text_to_image or image_to_image. | |
| modelSlug | No | Image Lab model slug from list_image_lab_models. Required unless quoteId is set. | |
| aspectRatio | No | Still aspect from list_image_lab_models for that slug. Omit when quoteId is set. | |
| sourceAssetIds | No | Same source still asset ids used on the quote. Omit when quoteId is set. | |
| sourceImageAssetId | No | Source still generation-asset id for image_to_image. Omit when quoteId is set. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| status | No | Job status such as pending, queued, in_progress, completed, or failed. | |
| videoId | No | Library clip id for this job, when one exists. | |
| idempotent | No | True when this call reused an in-flight or finished job with the same idempotency key. | |
| generationId | Yes | Generation id. Poll the matching get_* tool until status is completed or failed. | |
| creditsCharged | No | Usage already consumed from this month’s generation allowance (internal units). |