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
| Parameter | Type | Default | Description |
|---|---|---|---|
skip | int | 0 | Number of records to skip |
limit | int | 50 | Number of records to return (max 100) |
task | string | null | Filter by task type (text2music, prompt2instrumental, etc.) |
status | string | null | Filter by status (PENDING, PROCESSING, COMPLETED, FAILED) |
song_type | string | null | Filter by category: rap, song, vocals, instrumental, samples |
liked | bool | null | Filter to liked (true) or not-liked (false) tracks |
search | string | null | Search across display name, prompt, and lyrics |
language | string | null | Filter by vocal language |
genre | string | null | Filter by genre |
emotion | string | null | Filter by emotion tag |
occasion | string | null | Filter by occasion tag |
sort_by | string | "created_at" | Sort field: created_at, display_name, audio_duration, status |
sort_order | string | "desc" | Sort direction: asc or desc |
include_interactions | bool | false | Include like/dislike status for each job |
X-Total-Count: Total number of matching records (for pagination)
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
| Parameter | Type | Description |
|---|---|---|
display_name | string | New display name |
thumbnail_url | string | New thumbnail image URL |
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
| Parameter | Type | Description |
|---|---|---|
status | string | Filter by status |
song_type | string | Filter by category: rap, song, vocals, instrumental, samples |
Liked Tracks
GET /api/v1/music/liked
Get all tracks you’ve liked.
- cURL
| Parameter | Type | Default | Description |
|---|---|---|---|
skip | int | 0 | Pagination offset |
limit | int | 50 | Number of records |
song_type | string | null | Filter by category |
status | string | null | Filter by status |
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
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
