Get a pre-rendered track
generate_track_instantTake a pre-rendered track from the store, or fail fast.
Use this when predictable latency matters more than exact parameters — a live demo, an interactive UI. It never falls back to rendering, so it either returns a finished track in one round trip or tells you nothing matched.
Still consumes quota. generate_track tries the store first anyway and
falls back to rendering; reach for this one only when waiting is worse
than failing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ||
| format | No | ||
| bitrate | No | ||
| duration | Yes | Must be one of: 5, 6, 8, 10, 15, 20, 30, 40, 60, 180, 240, 300. | |
| intensity | No | ||
| playlist_index | Yes | Channel from list_playlists. |
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 |