curl --fail-with-body -X GET "$RAWCHUNKS_API/api/generation/events/$(jq -nr --arg v "$TASK_ID" '$v|@uri')?songId=$(jq -nr --arg v "$SONG_ID" '$v|@uri')"
{
"result": "<string>"
}Generation
Generation events
Follow generation progress as newline-delimited JSON.
GET
/
api
/
generation
/
events
/
{taskId}
curl --fail-with-body -X GET "$RAWCHUNKS_API/api/generation/events/$(jq -nr --arg v "$TASK_ID" '$v|@uri')?songId=$(jq -nr --arg v "$SONG_ID" '$v|@uri')"
{
"result": "<string>"
}The content type is
application/x-ndjson. Each nonempty line is a JSON object. This is not an EventSource stream. Terminal states are ready and error. Reconnect with the same IDs or use status polling.
Headers and parameters
string
required
Resource ID.
string
required
Song ID returned by the same submission.
Response (200)
Success.string
One GenerationStatus object per line.
Errors
Failed JSON responses contain anerror string. Check the HTTP status before reading a successful result. See job handling for interrupted or uncertain submissions.
| Status | Meaning |
|---|---|
400 | Invalid request. |
500 | Request failed. |
curl --fail-with-body -X GET "$RAWCHUNKS_API/api/generation/events/$(jq -nr --arg v "$TASK_ID" '$v|@uri')?songId=$(jq -nr --arg v "$SONG_ID" '$v|@uri')"
⌘I