cURL
curl --request GET \ --url https://api.qhaigc.net/v1/music/tasks/{task_id} \ --header 'Authorization: Bearer <token>'
{ "created": 123, "data": [ {} ] }
根据任务 ID 查询音乐生成的进度和结果
GET /v1/music/tasks/{task_id}
import requests task_id = "task_123456789" url = f"https://api.qhaigc.net/v1/music/tasks/{task_id}" headers = { "Authorization": "Bearer sk-your-api-key-here" } response = requests.get(url, headers=headers) print(response.json())
{ "created": 1755616949, "data": [ { "id": "task_123456789", "url": "https://example.com/audio.mp3", "lyrics": "[00:00.00] 歌词内容...", "title": "春天的呼唤", "cover_url": "https://example.com/cover.jpg", "audio_url": "https://example.com/audio.mp3", "duration": 192.92, "tags": "J-Pop, anime, upbeat", "model": "suno-v4.5-plus" } ] }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
成功响应