Boost Music Style
This page is generated from the upstream official OpenAPI documentation. Endpoints, parameters and examples match the official docs; brand and API domain are replaced with ModelFold.
Endpoint
POST /jobs/createTask
Full URL: https://ai.modelfold.online/v1/jobs/createTask
Authentication: every request must include the
Authorization: Bearer <API_KEY>header.
Document updated
If you have already completed the integration process previously, you can still access the old version document at: Old version address (https://ai.modelfold.online/docs/en/suno-api/boost-music-style)
Request Parameters
Body (application/json)
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | The model name to use for generation. Required field. 示例:ai-music-api/boost-music-style。 |
callBackUrl | string | No | The URL to receive generation task completion updates. Optional but recommended for production use. - System will POST task status and results to this URL when generation completes - Callback includes generated content URLs and task information - Your callback endpoint should accept POST requests with JSON payload containing results - Alternatively, poll GET /api/v1/jobs/recordInfo?taskId=... (see Get Task Details). - To ensure callback security, see Webhook Verification Guide for signature verification implementation |
input | object | Yes | Input parameters for the generation task |
input.content | string | Yes | Style description. Please describe in concise and clear language the music style you expect to generate. Example: 'Pop, Mysterious' 示例:Pop, Mysterious。 |
Request Example
bash
curl -X POST "https://ai.modelfold.online/v1/jobs/createTask" \
-H "Authorization: Bearer $MODELFOLD_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "ai-music-api/boost-music-style",
"callBackUrl": "https://api.example.com/callback",
"input": {
"content": "Pop, Mysterious"
}
}'json
{
"model": "ai-music-api/boost-music-style",
"callBackUrl": "https://api.example.com/callback",
"input": {
"content": "Pop, Mysterious"
}
}Response
200 — Request successful
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
code | integer | 否 | Status code of the request. The HTTP status is 200 even when the request fails, so always check this field: 200 means success; any other value means the request failed and msg describes the reason. Common values: 401 invalid or missing API key; 402 insufficient credits; 429 rate limit exceeded; 422 or 500 the request could not be processed (read msg and check your parameters before retrying). 可选值:200 / 401 / 402 / 404 / 409 / 422 / 429 / 451 / 455 / 500。 示例:200。 |
msg | string | 否 | Error message when code != 200 示例:success。 |
data | object | 否 | — |
data.taskId | string | 否 | Task ID |
data.param | string | 否 | Request parameters |
data.result | string | 否 | The final generated music style text result. |
data.creditsConsumed | number | 否 | Credits consumed, up to 5 digits, up to 2 decimal places |
data.creditsRemaining | number | 否 | Credits remaining after this task |
data.successFlag | string | 否 | Execution result: 0-pending, 1-success, 2-failed |
data.errorCode | integer | 否 | Error code - 400: Validation Error - Failed, The request parameters failed validation checks. 可选值: 400。 示例:400。 |
data.errorMsg | string | 否 | Error message 示例:``。 |
data.createTime | integer | 否 | Creation time (Unix timestamp in milliseconds) |
json
{
"code": 200,
"msg": "success",
"data": {
"taskId": "string",
"param": "string",
"result": "string",
"creditsConsumed": 0,
"creditsRemaining": 0,
"successFlag": "string",
"errorCode": 0,
"errorMsg": "string",
"createTime": 1791200596437
}
}500 — Server error.
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
code | integer | 是 | Response status code - 200: Success - Request has been processed successfully - 401: Unauthorized - Authentication credentials are missing or invalid - 402: Insufficient Credits - Account does not have enough credits to perform the operation - 404: Not Found - The requested resource or endpoint does not exist - 408: Timeout - No result has been returned for over 10 minutes. - 422: Validation Error - The request parameters failed validation checks - 429: Rate Limited - Request limit has been exceeded for this resource - 455: Service Unavailable - System is currently undergoing maintenance - 500: Server Error - An unexpected error occurred while processing the request - 501: Generation Failed - Content generation task failed - 505: Feature Disabled - The requested feature is currently disabled |
msg | string | 是 | Response message, error description when failed |
data | object | 是 | — |
json
{
"code": 500,
"msg": "Server Error - An unexpected error occurred while processing the request",
"data": null
}