# Add Instrumental

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v1/generate/add-instrumental:
    post:
      summary: Add Instrumental
      deprecated: false
      description: "This endpoint generates a musical accompaniment tailored to an uploaded audio file — typically a vocal stem or melody track. It helps users instantly flesh out their vocal ideas with high-quality backing music, all without needing a producer.\n\n### Model Versions\n\n- **Current models**: `V6` (default), `V6_WILD`, `V6_MINI`\n- **Deprecated models**: `V5_5`, `V5`, `V4_5PLUS`, `V4_5ALL`, `V4_5`, `V4`\n- Deprecated values remain available only for backward compatibility. New integrations should use a V6-series model.\n\n### **Key Capabilities**\n\n- Accepts uploadUrl of an existing audio file (usually vocals or stems).\n- Supports fine-grained customization via parameters such as:\n  - tags and negativeTags (musical style controls)\n  - lyrics, variety, styleWeight, audioWeight, weirdnessConstraint (lyrical, stylistic & creative blending)\n  - vocalGender, title, callBackUrl for metadata & workflow control.\n- Returns a taskId for tracking, and results are retained for 14 days. Callback workflow includes three stages: text, first, and complete\_ .\n\n### **Typical Use Cases**\n\n- Singers or melody writers who want instant fuller arrangements around their vocal inputs.\n- Applications like karaoke platforms, demo-generation tools, or co-creation interfaces that allow users to experiment with accompaniment styles easily.\n\n### Parameter Details\n\n- A source audio (`uploadUrl`) is enough to start generation together with the required fields below. Remaining fields are optional.\n- **Required fields**: `uploadUrl`, `title`, `negativeTags`, `tags`, `callBackUrl`\n- **Upload URL**: Must be a valid, publicly accessible audio file URL\n- **Title**: Used as the title for the generated instrumental track\n- **Tags**: Describe the desired style, mood, and instruments for the instrumental track\n- **Negative Tags**: Music styles or traits to exclude from the generated instrumental\n\n### Optional parameters\n\n:::note[]\nThe following fields are optional controls available for this endpoint:\n\n- <b>lyrics</b> (string): Lyrics content. Optional. V6 series maximum 5000 characters.\n- <b>vocalGender</b> (string): Preferred vocal gender for any vocal elements. Allowed values: `m` (male), `f` (female)\n- <b>styleWeight</b> (number): Style adherence weight in range 0–1 (recommended two decimals)\n- <b>weirdnessConstraint</b> (number): Creativity/novelty constraint in range 0–1 (recommended two decimals)\n- <b>audioWeight</b> (number): Relative weight of audio consistency in range 0–1 (recommended two decimals)\n- <b>variety</b> (number): Diversity of generated results. Integer from 0–4, default 1. `0` off, `1` normal (default), `2` high, `3` extra, `4` max.\n- <b>model</b> (string): Model version used for generation. Current values: `V6` (default), `V6_WILD`, `V6_MINI`. Deprecated: `V5_5`, `V5`, `V4_5PLUS`, `V4_5ALL`, `V4_5`, `V4`.\n:::\n\n### Developer Notes\n\n- Callback process has three stages: `text` (text generation), `first` (first track complete), `complete` (all tracks complete)\n- In some cases, `text` and `first` stages may be skipped, directly returning `complete`\n- See [Add Instrumental Callbacks](./add-instrumental-callbacks) for detailed callback format\n- Monitor task progress using [Get Music Generation Details](./get-music-generation-details)\n"
      operationId: add-instrumental
      tags:
        - docs/en/Suno API/Generate Music
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - uploadUrl
                - title
                - negativeTags
                - tags
                - callBackUrl
              properties:
                uploadUrl:
                  type: string
                  format: uri
                  description: >-
                    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.).
                  examples:
                    - https://example.com/music.mp3
                title:
                  type: string
                  description: >-
                    The title of the music track.  

                    - Required.  

                    - This will be used as the title for the generated
                    instrumental track.
                  examples:
                    - Relaxing Piano
                negativeTags:
                  type: string
                  description: >-
                    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"
                  examples:
                    - Heavy Metal, Aggressive Drums
                tags:
                  type: string
                  description: >-
                    Music style and characteristics for the instrumental.  

                    - Required.  

                    - Describe the desired style, mood, and instruments for the
                    instrumental track.  
                      Example: "Relaxing Piano, Ambient, Peaceful"
                  examples:
                    - Relaxing Piano, Ambient, Peaceful
                lyrics:
                  type: string
                  description: >-
                    Lyrics content. Optional. For V6, V6_MINI, and V6_WILD:
                    maximum 5000 characters. Lyrics for the generated track.
                  examples:
                    - '[Verse] Night city lights shining bright'
                callBackUrl:
                  type: string
                  format: uri
                  description: >-
                    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](https://docs.api.box/suno-api/add-instrumental-callbacks)

                    - Alternatively, you can use the Get Music Generation
                    Details interface to poll task status
                  examples:
                    - https://api.example.com/callback
                vocalGender:
                  type: string
                  description: >-
                    Preferred vocal gender for any vocal elements. Optional.
                    Allowed values: 'm' (male), 'f' (female).
                  enum:
                    - m
                    - f
                  examples:
                    - m
                styleWeight:
                  type: number
                  description: >-
                    Style adherence weight. Optional. Range: 0-1. Two decimal
                    places recommended.
                  minimum: 0
                  maximum: 1
                  multipleOf: 0.01
                  examples:
                    - 0.61
                weirdnessConstraint:
                  type: number
                  description: >-
                    Creativity/novelty constraint. Optional. Range: 0-1. Two
                    decimal places recommended.
                  minimum: 0
                  maximum: 1
                  multipleOf: 0.01
                  examples:
                    - 0.72
                audioWeight:
                  type: number
                  description: >-
                    Relative weight of audio consistency versus other controls.
                    Optional. Range: 0-1. Two decimal places recommended.
                  minimum: 0
                  maximum: 1
                  multipleOf: 0.01
                  examples:
                    - 0.65
                variety:
                  type: number
                  description: >-
                    Controls the diversity and stylistic variation of generated
                    results. Optional. Integer from 0–4, default 1.


                    - **`0`**: off (exact style) — fully off, strictly the same
                    style

                    - **`1`**: normal (balanced variety) — default, balances
                    stability and diversity

                    - **`2`**: high (distinct styles) — produces results with
                    clearly different styles

                    - **`3`**: extra (bold exploration) — higher variation,
                    encourages bold exploration of different styles

                    - **`4`**: max (unreasonably varied) — maximum diversity;
                    results may differ in style very significantly
                  minimum: 0
                  maximum: 4
                  multipleOf: 1
                  default: 1
                  examples:
                    - 1
                model:
                  type: string
                  description: >-
                    AI model version. Default: `V6`.

                    - **`V6`**: Current standard model and recommended default.

                    - **`V6_WILD`**: Current model for more experimental and
                    creative results.

                    - **`V6_MINI`**: Current lightweight model.

                    - **Deprecated**: `V5_5`, `V5`, `V4_5PLUS`, `V4_5ALL`,
                    `V4_5`, and `V4`. These values remain listed only for
                    backward compatibility; use a V6-series model for new
                    integrations.
                  enum:
                    - V6
                    - V6_WILD
                    - V6_MINI
                    - V5_5
                    - V5
                    - V4_5PLUS
                    - V4_5ALL
                    - V4_5
                    - V4
                  default: V6
                  examples:
                    - V6
              x-apidog-orders:
                - uploadUrl
                - title
                - negativeTags
                - tags
                - lyrics
                - callBackUrl
                - vocalGender
                - styleWeight
                - weirdnessConstraint
                - audioWeight
                - variety
                - model
      responses:
        '200':
          description: Request successful
          content:
            application/json:
              schema:
                allOf:
                  - type: object
                    properties:
                      code:
                        type: integer
                        description: >-
                          # 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
                        enum:
                          - 200
                          - 400
                          - 401
                          - 404
                          - 405
                          - 413
                          - 429
                          - 430
                          - 455
                          - 500
                        examples:
                          - 200
                      msg:
                        type: string
                        description: Error message when code != 200
                        examples:
                          - success
                    x-apidog-orders:
                      - code
                      - msg
                  - type: object
                    properties:
                      data:
                        type: object
                        properties:
                          taskId:
                            type: string
                            description: Task ID for tracking task status
                            examples:
                              - 5c79****be8e
                        x-apidog-orders:
                          - taskId
                    x-apidog-orders:
                      - data
          headers: {}
          x-apidog-name: Success
        '500':
          description: Server error
          headers: {}
          x-apidog-name: Server Error
      security: []
      callbacks:
        instrumentalAdded:
          '{request.body#/callBackUrl}':
            post:
              description: >-
                System will call this callback when instrumental generation is
                complete.


                ### Callback Example

                ```json

                {
                  "code": 200,
                  "msg": "All generated successfully.",
                  "data": {
                    "callbackType": "complete",
                    "task_id": "2fac****9f72",
                    "data": [
                      {
                        "id": "8551****662c",
                        "audio_url": "https://example.cn/****.mp3",
                        "source_audio_url": "https://example.cn/****.mp3",
                        "stream_audio_url": "https://example.cn/****",
                        "source_stream_audio_url": "https://example.cn/****",
                        "image_url": "https://example.cn/****.jpeg",
                        "source_image_url": "https://example.cn/****.jpeg",
                        "prompt": "[Instrumental] Relaxing piano melody",
                        "model_name": "chirp-v3-5",
                        "title": "Relaxing Piano Instrumental",
                        "tags": "relaxing, piano, instrumental",
                        "createTime": "2025-01-01 00:00:00",
                        "duration": 198.44
                      }
                    ]
                  }
                }

                ```
              requestBody:
                content:
                  application/json:
                    schema:
                      type: object
                      properties:
                        code:
                          type: integer
                          description: Status code
                          example: 200
                        msg:
                          type: string
                          description: Response message
                          example: All generated successfully
                        data:
                          type: object
                          properties:
                            callbackType:
                              type: string
                              description: >-
                                Callback type: text (text generation complete),
                                first (first track complete), complete (all
                                tracks complete)
                              enum:
                                - text
                                - first
                                - complete
                            task_id:
                              type: string
                              description: Task ID
                            data:
                              type: array
                              items:
                                type: object
                                properties:
                                  id:
                                    type: string
                                    description: Audio unique identifier (audioId)
                                  audio_url:
                                    type: string
                                    description: Audio file URL
                                  source_audio_url:
                                    type: string
                                    description: (Deprecated) Original audio file URL
                                    deprecated: true
                                  stream_audio_url:
                                    type: string
                                    description: Streaming audio URL
                                  source_stream_audio_url:
                                    type: string
                                    description: Original streaming audio URL
                                  image_url:
                                    type: string
                                    description: Cover image URL
                                  source_image_url:
                                    type: string
                                    description: Original cover image URL
                                  prompt:
                                    type: string
                                    description: Generation prompt/lyrics
                                  model_name:
                                    type: string
                                    description: Model name used
                                  title:
                                    type: string
                                    description: Music title
                                  tags:
                                    type: string
                                    description: Music tags
                                  createTime:
                                    type: string
                                    description: Creation time
                                    format: date-time
                                  duration:
                                    type: number
                                    description: Audio duration (seconds)
              responses:
                '200':
                  description: Callback received successfully
      x-apidog-folder: docs/en/Suno API/Generate Music
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/1412907/apis/api-46842194-run
components:
  schemas: {}
  securitySchemes:
    BearerAuth:
      type: bearer
      scheme: bearer
      bearerFormat: API Key
      description: >-
        # 🔑 API Authentication


        All endpoints require authentication using Bearer Token.


        ## Get API Key


        1. Visit the [API Key Management Page](https://sunoapi.org/api-key) to
        obtain your API Key


        ## Usage


        Add to request headers:


        ```

        Authorization: Bearer YOUR_API_KEY

        ```


        > **⚠️ Note:**

        > - Keep your API Key secure and do not share it with others

        > - If you suspect your API Key has been compromised, reset it
        immediately from the management page
servers:
  - url: https://apibox.erweima.ai
    description: 正式环境
security: []

```
