Wait for a track to finish
wait_for_trackKeep waiting for a generation that had not finished yet.
Call this when a generation tool came back with status: pending. It
costs no quota — the track is already paid for. Never start a second
generation for the same brief instead of calling this.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track_id | Yes | Id returned by a generation tool. | |
| wait_seconds | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bpm | No | ||
| key | No | ||
| url | No | Download link once done. | |
| mode | No | ||
| format | No | ||
| prompt | No | ||
| status | Yes | done, failed or pending. | |
| bitrate | No | ||
| duration | No | ||
| track_id | No | ||
| important | No | ||
| expires_at | No | After this the audio is deleted and the URL stops working. | |
| session_id | No | ||
| edited_from | No | The track this one was derived from. Edits and variations never modify the original — they mint a new track, and this is the link back. | |
| playlist_index | No | ||
| how_it_was_served | Yes |