Skip to content

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) ​

ParameterTypeRequiredDescription
modelstringYesThe model name to use for generation. Required field. 示例:ai-music-api/boost-music-style。
callBackUrlstringNoThe 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
inputobjectYesInput parameters for the generation task
  input.contentstringYesStyle 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 ​

参数类型必填说明
codeinteger否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。
msgstring否Error message when code != 200 示例:success。
dataobject否—
  data.taskIdstring否Task ID
  data.paramstring否Request parameters
  data.resultstring否The final generated music style text result.
  data.creditsConsumednumber否Credits consumed, up to 5 digits, up to 2 decimal places
  data.creditsRemainingnumber否Credits remaining after this task
  data.successFlagstring否Execution result: 0-pending, 1-success, 2-failed
  data.errorCodeinteger否Error code
- 400: Validation Error - Failed, The request parameters failed validation checks. 可选值:400。 示例:400。
  data.errorMsgstring否Error message 示例:``。
  data.createTimeinteger否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. ​

参数类型必填说明
codeinteger是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
msgstring是Response message, error description when failed
dataobject是—
json
{
  "code": 500,
  "msg": "Server Error - An unexpected error occurred while processing the request",
  "data": null
}

ModelFold — one API for all the best AI models.