Wait briefly for a SpicyAPI task
spicyapi_task_waitWait for a media generation task for up to 300 seconds, polling until output is ready, then read asset URLs directly without a download-ticket call.
Instructions
Wait for a task for up to 300 seconds and read ready output.assets[].url directly without a download-ticket call. By default, polling backs off from about 2 to at most 10 seconds; an explicit intervalSeconds stays fixed. Prefer signed webhooks for production; a complete verified v2 callback needs no extra task_get. A local wait timeout does not cancel the task. Some models answer in words instead of a file: speech-to-text and other text results arrive in output.text with no assets, and a transcription may add output.transcript with word timings and the detected language. Layer decomposition returns one image asset per layer; stack them by ascending output.assets[].layer.zIndex.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taskId | Yes | ||
| timeoutSeconds | No | ||
| intervalSeconds | No | Fixed polling interval in seconds. Omit to use adaptive SDK backoff from about 2 to at most 10 seconds. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |