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"
}
Boost music style
Boost music style: Create task
Synchronous endpoint: model picks the endpoint and the parameters go in input; the result comes back in data of the response, with nothing to poll. Every response has HTTP status 200; check 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"
}
Authorizations
Body
application/json
Request body of createTask.
Response
200 - application/json
Always HTTP 200. With code 200 the task was created and data.taskId is its ID; any other code is an error with the reason in msg and data null.
Response of createTask for a synchronous endpoint; data is the result. Always HTTP 200.
Result code:
200: success401: missing or invalid API Key402: insufficient balance404: the model does not exist or is not enabled405: wrong HTTP method422: invalid request, with the reason inmsg; no task is created or charged429: too many requests; retry later455: service under maintenance500: server error; retry later501: generation failed505: feature disabled

