wait_generation
Poll and wait for an AI generation task to complete. Returns current status or final output URLs with preview when finished.
Instructions
Wait for a generation to finish (long-poll up to wait_seconds, then returns current status). Call repeatedly until status is COMPLETED, FAILED or CANCELED. Returns output URLs (and an inline image preview) when done.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| request_id | Yes | ||
| wait_seconds | No | ||
| include_preview | No |