wait_for_song
Poll a song generation job until it finishes, then retrieve the audio. Returns current status if still rendering—safe to call again with the same job ID.
Instructions
Wait for a song job to finish and return the audio when ready. Polls server-side for up to ~45 seconds. If the song is ready, returns the clips with audio URLs. If it is still rendering, returns its status so you can call wait_for_song again with the same job_id. Safe to call repeatedly — it only reads status, never starts a new song.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | The job_id returned by generate_song. | |
| max_wait_seconds | No | How long to wait before returning (default 45, max 55). |