curl --request POST \
--url https://api.dreamto.ai/api/v1/jobs/createTask \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "ai-music-api/boost-music-style",
"callBackUrl": "https://your-domain.com/api/callback",
"input": {
"content": "Pop, Mysterious"
}
}
'{
"code": 200,
"data": {
"createTime": 1795015848000,
"errorCode": null,
"errorMsg": null,
"param": "Pop, Mysterious",
"result": "Mysterious pop with a restrained, late-night pulse: muted electronic kick, crisp rim-click snare, and syncopated sub-bass beneath glassy synth plucks and a detuned piano motif. Close, breathy vocals sit in a narrow, dry space, then gain doubled harmonies and short reverse-reverb tails. Sparse verses open into a wider chorus with pulsing pads and filtered percussion.",
"successFlag": "1",
"taskId": "7d3f0a9c41e85b2f6a1c9e04b8d27f53"
},
"msg": "success"
}提升音乐风格
提升音乐风格:创建任务
同步接口:model 选择接口,参数放在 input 中,结果直接在响应的 data 中返回,无需轮询。所有响应的 HTTP 状态码都是 200,以 code 判断结果。
POST
/
api
/
v1
/
jobs
/
createTask
curl --request POST \
--url https://api.dreamto.ai/api/v1/jobs/createTask \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "ai-music-api/boost-music-style",
"callBackUrl": "https://your-domain.com/api/callback",
"input": {
"content": "Pop, Mysterious"
}
}
'{
"code": 200,
"data": {
"createTime": 1795015848000,
"errorCode": null,
"errorMsg": null,
"param": "Pop, Mysterious",
"result": "Mysterious pop with a restrained, late-night pulse: muted electronic kick, crisp rim-click snare, and syncopated sub-bass beneath glassy synth plucks and a detuned piano motif. Close, breathy vocals sit in a narrow, dry space, then gain doubled harmonies and short reverse-reverb tails. Sparse verses open into a wider chorus with pulsing pads and filtered percussion.",
"successFlag": "1",
"taskId": "7d3f0a9c41e85b2f6a1c9e04b8d27f53"
},
"msg": "success"
}请求体
application/json
创建任务的请求体。
响应
200 - application/json
HTTP 状态码始终为 200。code 为 200 时创建成功,data.taskId 为任务 ID;其他 code 为错误,msg 为原因,data 为 null。
同步接口创建任务的响应,data 即为结果。HTTP 状态码始终为 200。

