UniAPI API Doc
首页全部OpenAI平台接口音乐模型图像模型视频模型
首页全部OpenAI平台接口音乐模型图像模型视频模型
  1. Udio
  • Suno
    • 声曲分离
      GET
    • 歌词、音频时间线
      GET
    • 获取 wav 格式文件
      GET
    • 生成 mp4 mv 视频
      GET
    • 创建音乐
      POST
    • 创建歌词
      POST
    • 批量获取任务
      POST
    • 查询单个任务
      GET
  • Udio
    • 创建音乐
      POST
    • 查询任务
      GET
  1. Udio

查询任务

开发中
GET
/udio/fetch/{task_id}
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.uniapi.io/udio/fetch/'
响应示例响应示例
{
    "code": "success",
    "message": "",
    "data": {
        "task_id": "8a3bcd6e-79ab-454a-ac66-797b91bbb2f5",
        "action": "udio-generate",
        "status": "SUCCESS",
        "fail_reason": "",
        "submit_time": 1732548161,
    "start_time": 1732548173,
    "finish_time": 1732548213,
        "progress": "100%",
        "songs": [
            {
                "id": "410e80f0-37c7-41ab-8760-9fb56ec747f3",
                "tags": [
                    "female vocalist",
                    "electronic",
                    "downtempo",
                    "chillout",
                    "nu jazz",
                    "rhythmic",
                    "instrumental"
                ],
                "liked": false,
                "likes": 0,
                "plays": 0,
                "title": "The Untitled",
                "artist": "DivingWaterphone0337",
                "lyrics": "",
                "prompt": "萨克斯,抒情,夜晚,城镇",
                "user_id": "649ae9a6-942c-4da7-9120-f61e117c641f",
                "disliked": false,
                "duration": 32.8106666666667,
                "error_id": null,
                "finished": true,
                "song_path": "https://storage.googleapis.com/udio-artifacts-c33fe3ba-3ffe-471f-92c8-5dfef90b3ea3/samples/6a80495adc1946a0ad3d847ae34ffd8c/2/The%2520Untitled.mp3",
                "user_tags": [],
                "created_at": "2024-11-25T15:22:39.439606+00:00",
                "error_code": null,
                "error_type": null,
                "image_path": "https://imagedelivery.net/C9yUr1FL21Q6JwfYYh2ozQ/ef15510a-b59b-43d9-cb9a-0e25d5365500/public",
                "video_path": null,
                "attribution": "",
                "description": "",
                "publishable": true,
                "artist_image": "https://lh3.googleusercontent.com/a/ACg8ocJ-IEVlpsgVE-quQSu1ChwaPXKU-eRjvd9zJ32Z0JbGykEIRw=s96-c",
                "error_detail": null,
                "published_at": null,
                "generation_id": "8a3bcd6e-79ab-454a-ac66-797b91bbb2f5",
                "replaced_tags": {
                    "melodic, jazz, chill-out, smooth, atmospheric, 抒情, 夜晚": {
                        "tags": [
                            "nu jazz",
                            "downtempo",
                            "chillout",
                            "electronic",
                            "lounge",
                            "vocal jazz",
                            "sensual",
                            "rhythmic",
                            "mellow",
                            "female vocalist",
                            "nocturnal",
                            "warm",
                            "peaceful",
                            "urban"
                        ],
                        "type": "tags"
                    },
                    "nu jazz, downtempo, chillout, electronic, lounge, vocal jazz, sensual, rhythmic, mellow, female vocalist, nocturnal, warm, peaceful, urban": {
                        "tags": [
                            "female vocalist",
                            "electronic",
                            "downtempo",
                            "chillout",
                            "nu jazz",
                            "rhythmic"
                        ],
                        "type": "tags"
                    }
                },
                "original_song_path": null,
                "audio_conditioning_type": null
            },
            {
                "id": "d1e73425-be5c-43d5-8ad0-67f057d7b8c4",
                "tags": [
                    "cool jazz",
                    "jazz",
                    "instrumental",
                    "acoustic",
                    "mellow",
                    "warm",
                    "soothing",
                    "nocturnal",
                    "improvisation",
                    "romantic",
                    "ballad",
                    "sentimental",
                    "love",
                    "sensual",
                    "melodic",
                    "calm"
                ],
                "liked": false,
                "likes": 0,
                "plays": 0,
                "title": "Silent Shadows",
                "artist": "DivingWaterphone0337",
                "lyrics": "",
                "prompt": "萨克斯,抒情,夜晚,城镇",
                "user_id": "649ae9a6-942c-4da7-9120-f61e117c641f",
                "disliked": false,
                "duration": 32.8106666666667,
                "error_id": null,
                "finished": true,
                "song_path": "https://storage.googleapis.com/udio-artifacts-c33fe3ba-3ffe-471f-92c8-5dfef90b3ea3/samples/6a80495adc1946a0ad3d847ae34ffd8c/1/Silent%2520Shadows.mp3",
                "user_tags": [],
                "created_at": "2024-11-25T15:22:39.439606+00:00",
                "error_code": null,
                "error_type": null,
                "image_path": "https://imagedelivery.net/C9yUr1FL21Q6JwfYYh2ozQ/ef15510a-b59b-43d9-cb9a-0e25d5365500/public",
                "video_path": null,
                "attribution": "",
                "description": "",
                "publishable": true,
                "artist_image": "https://lh3.googleusercontent.com/a/ACg8ocJ-IEVlpsgVE-quQSu1ChwaPXKU-eRjvd9zJ32Z0JbGykEIRw=s96-c",
                "error_detail": null,
                "published_at": null,
                "generation_id": "8a3bcd6e-79ab-454a-ac66-797b91bbb2f5",
                "replaced_tags": {
                    "romantic, night, soft, melodic, jazz, smooth jazz, town, lyrical": {
                        "tags": [
                            "cool jazz",
                            "jazz",
                            "instrumental",
                            "acoustic",
                            "mellow",
                            "warm",
                            "soothing",
                            "nocturnal",
                            "improvisation",
                            "romantic",
                            "ballad",
                            "sentimental",
                            "love",
                            "sensual",
                            "melodic",
                            "calm"
                        ],
                        "type": "tags"
                    },
                    "cool jazz, jazz, instrumental, acoustic, mellow, warm, soothing, nocturnal, improvisation, romantic, ballad, sentimental, love, sensual, melodic, calm": {
                        "tags": [
                            "cool jazz",
                            "jazz",
                            "instrumental",
                            "acoustic",
                            "mellow",
                            "warm",
                            "soothing",
                            "nocturnal",
                            "improvisation",
                            "romantic",
                            "ballad",
                            "sentimental",
                            "love",
                            "sensual",
                            "melodic",
                            "calm"
                        ],
                        "type": "tags"
                    }
                },
                "original_song_path": null,
                "audio_conditioning_type": null
            }
        ]
    }
}

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Path 参数
task_id
string 
任务ID
必需

返回响应

🟢200成功
application/json
Body
code
string 
必需
message
string 
必需
data
object 
必需
task_id
string 
必需
action
string 
必需
status
string 
必需
fail_reason
string 
必需
submit_time
integer 
必需
start_time
integer 
必需
finish_time
integer 
必需
progress
string 
必需
songs
array [object {31}] 
必需
修改于 2025-05-18 07:36:21
上一页
创建音乐
Built with