POST /v2/cover/generate
Generate AI cover images for your music tracks. Consumes 1 credit per request.
İpuçları
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
İstek Başlıkları
| Ad | Zorunlu | Açıklama |
|---|---|---|
| Authorization | Evet | Bearer token for authentication (your API key) |
| Content-Type | Evet | application/json |
Bearer token for authentication (your API key)
application/json
İstek Gövdesi
Request body for generating music cover
Ortak Parametreler
| Parametre | Tür | Zorunlu | Açıklama | Örnek |
|---|---|---|---|---|
| taskId | string | Evet | The task ID of the original music generation. This is the workId returned from the /v2/generate endpoint. | gen123213213213123bksv |
Yanıtlar
{
"code": 200,
"msg": "success",
"data": {
"taskId": "cover123123213213b880d2"
}
}Kod Örnekleri
curl -X POST "https://udioapi.pro/api/v2/cover/generate" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"taskId": "gen123213213213123bksv"
}'GET /v2/cover/status
Check the status of a cover generation task and retrieve generated cover images.
İstek Parametreleri
| Parametre | Tür | Zorunlu | Açıklama |
|---|---|---|---|
| task_id | string | Evet | The cover task ID returned from /v2/cover/generate |
The cover task ID returned from /v2/cover/generate
İstek Başlıkları
| Ad | Zorunlu | Açıklama |
|---|---|---|
| Authorization | Evet | Bearer token for authentication (your API key) |
Bearer token for authentication (your API key)
Yanıtlar
{
"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"
}
}Kod Örnekleri
curl -X GET "https://udioapi.pro/api/v2/cover/status?task_id=cover123123213213b880d2" \
-H "Authorization: Bearer YOUR_API_KEY"POST /v2/cover/generate
Generate AI cover images for your music tracks. Consumes 1 credit per request.
İpuçları
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
İstek Başlıkları
| Ad | Zorunlu | Açıklama |
|---|---|---|
| Authorization | Evet | Bearer token for authentication (your API key) |
| Content-Type | Evet | application/json |
Bearer token for authentication (your API key)
application/json
İstek Gövdesi
Request body for generating music cover
Ortak Parametreler
| Parametre | Tür | Zorunlu | Açıklama | Örnek |
|---|---|---|---|---|
| taskId | string | Evet | The task ID of the original music generation. This is the workId returned from the /v2/generate endpoint. | gen123213213213123bksv |
Yanıtlar
{
"code": 200,
"msg": "success",
"data": {
"taskId": "cover123123213213b880d2"
}
}Kod Örnekleri
curl -X POST "https://udioapi.pro/api/v2/cover/generate" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"taskId": "gen123213213213123bksv"
}'GET /v2/cover/status
Check the status of a cover generation task and retrieve generated cover images.
İstek Parametreleri
| Parametre | Tür | Zorunlu | Açıklama |
|---|---|---|---|
| task_id | string | Evet | The cover task ID returned from /v2/cover/generate |
The cover task ID returned from /v2/cover/generate
İstek Başlıkları
| Ad | Zorunlu | Açıklama |
|---|---|---|
| Authorization | Evet | Bearer token for authentication (your API key) |
Bearer token for authentication (your API key)
Yanıtlar
{
"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"
}
}Kod Örnekleri
curl -X GET "https://udioapi.pro/api/v2/cover/status?task_id=cover123123213213b880d2" \
-H "Authorization: Bearer YOUR_API_KEY"