POST
/v2/cover/generatePOST /v2/cover/generate
Generate AI cover images for your music tracks. Consumes 1 credit per request.
POST
https://udioapi.pro/api/v2/cover/generatetips
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.
Important Notes:
- Cover image file URLs will be retained for 14 days
- Each music task can only generate a Cover once; duplicate requests will return a 400 error
- It's recommended to call this interface after music generation is complete
- Usually generates 2 different style images for selection
requestHeaders
| name | required | description |
|---|---|---|
nameAuthorization | requiredyes | descriptionBearer token for authentication (your API key) |
nameContent-Type | requiredyes | descriptionapplication/json |
requestBody
Request body for generating music cover
commonParams
| paramName | paramType | required | description | example |
|---|---|---|---|---|
paramNametaskId | paramTypestring | requiredyes | descriptionThe task ID of the original music generation. This is the workId returned from the /v2/generate endpoint. | examplegen123213213213123bksv |
responses
json
{
"code": 200,
"msg": "success",
"data": {
"taskId": "cover123123213213b880d2"
}
}codeExamples
curl
curl -X POST "https://udioapi.pro/api/v2/cover/generate" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"taskId": "gen123213213213123bksv"
}'