Get Job Status
GET /api/v1/music/jobs/{job_id}/status
Get the current status of a music generation job.
- Python
- Node.js
- cURL
MusicGenerationJob object (see response format).
List Jobs
GET /api/v1/music/jobs
List music generation jobs with filtering, search, and sorting.
- Python
- Node.js
- cURL
Response Headers:
X-Total-Count: Total number of matching records (for pagination)
Library categories
Every job belongs to exactly one of four categories, sosong + instrumental + edits + scores always adds up to your whole library. The same rule drives song_type here, on /liked and /jobs/counts, and the counts in /filters/stats.
song used to mean “every text2music job”, and instrumental meant only prompt2instrumental. A text2music track generated as an instrumental is now in instrumental, rap tracks with vocals are in song, and edits and scores have their own categories. Filter by task to get the old task-only behaviour.Delete Job
DELETE /api/v1/music/jobs/{job_id}
Delete a music generation job and its associated audio files.
- Python
- Node.js
- cURL
Update Job Metadata
PATCH /api/v1/music/jobs/{job_id}
Update a job’s display name or thumbnail URL.
- cURL
Retry Failed Job
POST /api/v1/music/jobs/{job_id}/retry
Retry a failed music generation job without consuming additional credits. The original credit reservation is reused.
- cURL
- Only works on jobs with
status: "FAILED" - Original credit reservation is reused (no additional charge)
- Returns a
MusicGenerationResponsewith the re-queued job
Job Counts
GET /api/v1/music/jobs/counts
Get aggregated counts of your music generation jobs, broken down by task type and song category.
- cURL
Response:
by_song_type has one count per library category. songs + instrumental + edits + scores equals total; rap is the part of songs made with text2rap.
Liked Tracks
GET /api/v1/music/liked
Get all tracks you’ve liked.
- cURL
Filter Statistics
GET /api/v1/music/filters/stats
Get statistics for building filter UI dropdowns — total tracks, liked count, task distribution, and available filter values.
- cURL
song_types counts each library category: songs + instrumental + edits + scores equals total_tracks, and each count matches what GET /api/v1/music/jobs?song_type=... returns (songs is the song filter). rap is the part of songs made with text2rap.
Genre Presets
GET /api/v1/music/presets
Get available genre presets with their pre-configured parameters.
- Python
- Node.js
- cURL
Model Status
GET /api/v1/music/model/status
Get AudioMusic V2 model health and status information.
- cURL
Sample Data
GET /api/v1/music/sample-data
Get sample/test data for development and testing purposes.
- cURL
