APICover (7/7)
POST /v2/cover/generate
Generate AI cover images for your music tracks. Consumes 1 credit per request.
POSThttps://altrix.udioapi.pro/api/v2/cover/generate
tips
How it works:
- Step 1: Call
/v2/cover/generatewith your music task ID to start cover generation - Step 2: Use the returned
taskIdto poll/v2/cover/statusfor results - Step 3: When status is
SUCCESS, get the generated cover images fromimagesarray
Credit Cost: 1 credit per cover generation request.
📡 Status Endpoint: GET https://altrix.udioapi.pro/api/v2/cover/status
Check the status of a cover generation task.
Query Parameters:
task_id(required) - The cover task ID returned from /v2/cover/generate
Example Request:
GET https://altrix.udioapi.pro/api/v2/cover/status?task_id=cover123123213213b880d2
Authorization: Bearer YOUR_API_KEY
Success Response (status: SUCCESS):
{
"code": 200,
"msg": "success",
"data": {
"taskId": "cover123123213213b880d2",
"status": "SUCCESS",
"images": [
"https://tempcover.storage.com/s/123.png",
"https://tempcover.storage.com/s/456.png"
],
"created_at": "2026-01-01 00:00:30"
}
}
In Progress Response:
{
"code": 200,
"msg": "success",
"data": {
"taskId": "cover123123213213b880d2",
"status": "IN_PROGRESS",
"images": null,
"created_at": "2026-01-01 00:00:00"
}
}
Failed Response:
{
"code": 200,
"msg": "success",
"data": {
"taskId": "cover123123213213b880d2",
"status": "FAILED",
"error": "Cover generation failed",
"images": null,
"created_at": "2026-01-01 00:00:00"
}
}
requestHeaders
| name | required | description |
|---|---|---|
| Authorization | yes | Bearer token for authentication (your API key) |
| Content-Type | yes | application/json |
Authorizationrequired
Bearer token for authentication (your API key)
Content-Typerequired
application/json
Request Body
Request body for generating music cover
Common Parameters
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
| taskId | string | Yes | The task ID of the original music generation. This is the workId returned from the /v2/generate endpoint. | gen123213213213123bksv |
responses
{
"code": 200,
"msg": "success",
"data": {
"taskId": "cover123123213213b880d2"
}
}codeExamples
curl -X POST "https://altrix.udioapi.pro/api/v2/cover/generate" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"taskId": "gen123213213213123bksv"
}'