Response object | Non-streaming{
"output": {
"audio": {
"data": "",
"expires_at": 1774936147,
"id": "audio_46c51288-7ed6-95cc-a119-xxxxxxxxxxxx",
"url": "http://dashscope-result-bj.oss-cn-beijing.aliyuncs.com/pre/fun-music/20260330/xxxxxxxx/a8db24cc-d35f-961b-af81-a9e8d8b01f67.mp3?xxx"
},
"extra_info": {
"channels": 2,
"lyrics": "[verse]\nMorning sunlight slips through the curtain,\nCoffee aroma fills up the room.\nOpen the book left unfinished yesterday,\nTime quietly drifts by this way.\n\n[chorus]\nTake it slow, there's no hurry,\nLife should be this carefree.\nToss your worries into the wind,\nEmbrace every sunny day and rainy season.",
"sample_rate": 48000
},
"finish_reason": "stop"
},
"usage": {
"duration": 200
},
"request_id": "46c51288-7ed6-95cc-a119-xxxxxxxxxxxx"
}
Streaming (intermediate message){
"output": {
"audio": {
"data": "Base64-encoded audio data",
"expires_at": 1774937185,
"id": "audio_a8db24cc-d35f-961b-af81-xxxxxxxxxxxx"
},
"finish_reason": "null"
},
"request_id": "a8db24cc-d35f-961b-af81-xxxxxxxxxxxx"
}
Streaming (final message){
"output": {
"audio": {
"expires_at": 1774937185,
"id": "audio_a8db24cc-d35f-961b-af81-xxxxxxxxxxxx",
"data": "",
"url": "http://dashscope-result-bj.oss-cn-beijing.aliyuncs.com/pre/fun-music/20260330/xxxxxxxx/a8db24cc-d35f-961b-af81-a9e8d8b01f67.mp3?xxx"
},
"extra_info": {
"channels": 2,
"sample_rate": "48000",
"lyrics": "[verse]\nMorning sunlight slips through the curtain,\nCoffee aroma fills up the room.\nOpen the book left unfinished yesterday,\nTime quietly drifts by this way.\n\n[chorus]\nTake it slow, there's no hurry,\nLife should be this carefree.\nToss your worries into the wind,\nEmbrace every sunny day and rainy season."
},
"finish_reason": "stop"
},
"usage": {
"duration": 200
},
"request_id": "a8db24cc-d35f-961b-af81-xxxxxxxxxxxx"
}
|
request_id string The request ID, used for troubleshooting and tracing. |
output object The model output. Properties audio object Audio data returned by the model. Properties data string Base64-encoded audio data chunks in streaming mode. An empty string in non-streaming mode. url string The OSS URL of the full audio file, valid for 24 hours. Returned directly in non-streaming mode. In streaming mode, included only in the final message. id string The audio file ID. expires_at integer The Unix timestamp when the audio URL expires. extra_info object Additional information. Contains the following fields: Properties channels integer The number of audio channels. For example, 2 indicates stereo. sample_rate string The audio sample rate. For example, "48000". lyrics string The lyrics content. finish_reason string Indicates whether generation is complete: |
usage object Billing information for this request. Properties duration integer The music duration in seconds, used for billing. |