v1

latestOpenAPI 3.0.02026-07-26355125.0 KB
Music Generation

Add Instrumental

post/api/v1/generate/add-instrumental

Request body

uploadUrlstring uri required

The URL of the uploaded music file to add instrumental to.

  • Required.
  • Must be a valid audio file URL accessible by the system.
  • The uploaded audio should be in a supported format (MP3, WAV, etc.).
titlestring required

The title of the music track.

  • Required.
  • This will be used as the title for the generated instrumental track.
negativeTagsstring required

Music styles or traits to exclude from the generated instrumental.

  • Required.
  • Use to avoid specific styles or instruments in the instrumental version.
    Example: "Heavy Metal, Aggressive Drums"
tagsstring required

Music style and characteristics for the instrumental.

  • Required.
  • Describe the desired style, mood, and instruments for the instrumental track.
    Example: "Relaxing Piano, Ambient, Peaceful"
callBackUrlstring uri required

The URL to receive task completion notifications when instrumental generation is complete. The callback process has three stages: text (text generation), first (first track complete), complete (all tracks complete). Note: In some cases, text and first stages may be skipped, directly returning complete.

  • For detailed callback format and implementation guide, see Add Instrumental Callbacks
  • Alternatively, you can use the Get Music Generation Details interface to poll task status
vocalGender'm' | 'f'

Preferred vocal gender for any vocal elements. Optional. Allowed values: 'm' (male), 'f' (female).

styleWeightnumber

Style adherence weight. Optional. Range: 0-1. Two decimal places recommended.

weirdnessConstraintnumber

Creativity/novelty constraint. Optional. Range: 0-1. Two decimal places recommended.

audioWeightnumber

Relative weight of audio consistency versus other controls. Optional. Range: 0-1. Two decimal places recommended.

model'V4_5PLUS' | 'V5' | 'V5_5'

Model version to use for generation. Optional. Default: V4_5PLUS.

Example request

{
  "uploadUrl": "https://example.com/music.mp3",
  "title": "Relaxing Piano",
  "negativeTags": "Heavy Metal, Aggressive Drums",
  "tags": "Relaxing Piano, Ambient, Peaceful",
  "callBackUrl": "https://api.example.com/callback",
  "vocalGender": "m",
  "styleWeight": 0.61,
  "weirdnessConstraint": 0.72,
  "audioWeight": 0.65,
  "model": "V4_5PLUS"
}

Response

Request successful

code200 | 400 | 401 | 404 | 405 | 413 | 429 | 430 | 455 | 500

Status Codes

  • ✅ 200 - Request successful
  • ⚠️ 400 - Invalid parameters
  • ⚠️ 401 - Unauthorized access
  • ⚠️ 404 - Invalid request method or path
  • ⚠️ 405 - Rate limit exceeded
  • ⚠️ 413 - Theme or prompt too long
  • ⚠️ 429 - Insufficient credits
  • ⚠️ 430 - Your call frequency is too high. Please try again later.
  • ⚠️ 455 - System maintenance
  • ❌ 500 - Server error
msgstring

Error message when code != 200

Example response

{
  "code": 200,
  "msg": "success",
  "data": {
    "taskId": "5c79****be8e"
  }
}