> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dreamto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Vocal and instrument stem separation: Create task

> Creates a Suno task: `model` picks the endpoint, the parameters go in `input`, and the optional `callBackUrl` receives a completion callback. On success `data.taskId` is returned and the task runs asynchronously; poll the query endpoint for the result. Every response has HTTP status 200; check `code`.



## OpenAPI

````yaml /openapi/en/suno-separate-vocals.json post /api/v1/jobs/createTask
openapi: 3.1.0
info:
  description: >-
    Separate a song into vocals and accompaniment, split it into up to 12
    instrument stems, or extract one chosen instrument.
  title: Suno Vocal and instrument stem separation
  version: v1
servers:
  - url: https://api.dreamto.ai
security:
  - bearerAuth: []
tags:
  - name: Suno Vocal and instrument stem separation
paths:
  /api/v1/jobs/createTask:
    post:
      tags:
        - Suno Vocal and instrument stem separation
      summary: Create task
      description: >-
        Creates a Suno task: `model` picks the endpoint, the parameters go in
        `input`, and the optional `callBackUrl` receives a completion callback.
        On success `data.taskId` is returned and the task runs asynchronously;
        poll the query endpoint for the result. Every response has HTTP status
        200; check `code`.
      operationId: sunoCreateTask
      requestBody:
        content:
          application/json:
            examples:
              Vocals and accompaniment:
                description: >-
                  Name an earlier song with `task_id` + `audio_id` and split it
                  into vocals and accompaniment, with a completion callback.
                summary: Vocals and accompaniment
                value:
                  model: ai-music-api/separate-vocals
                  callBackUrl: https://your-domain.com/api/callback
                  input:
                    task_id: c2a81e5f09d34b7e8f61a2d4c9b03e75
                    audio_id: f924248f-e765-48fd-9ea9-c64290225e4e
                    type: separate_vocal
              Split into instrument stems:
                description: '`split_stem` splits the song into up to 12 instrument stems.'
                summary: Split into instrument stems
                value:
                  model: ai-music-api/separate-vocals
                  input:
                    task_id: c2a81e5f09d34b7e8f61a2d4c9b03e75
                    audio_id: f924248f-e765-48fd-9ea9-c64290225e4e
                    type: split_stem
              Extract piano from your own audio:
                description: >-
                  Pass audio with `audio_url`; `split_stem_advanced` with
                  `stem_name: Piano` returns the piano alone and the mix without
                  it.
                summary: Extract piano from your own audio
                value:
                  model: ai-music-api/separate-vocals
                  input:
                    audio_url: https://your-cdn.example.com/song.mp3
                    type: split_stem_advanced
                    stem_name: Piano
            schema:
              $ref: >-
                #/components/schemas/SunoCreateTaskRequestSunoSeparateVocalsInput
        required: true
      responses:
        '200':
          content:
            application/json:
              examples:
                Created:
                  description: '`data.taskId` is the task ID.'
                  summary: Created
                  value:
                    code: 200
                    msg: success
                    data:
                      taskId: 7d3f0a9c41e85b2f6a1c9e04b8d27f53
                Invalid request (422):
                  description: The request is invalid; no task is created or charged.
                  summary: Invalid request (422)
                  value:
                    code: 422
                    msg: >-
                      input.stem_name is required when input.type is
                      split_stem_advanced.
                    data: null
                Unusable source task (422):
                  description: >-
                    `task_id` is unknown, belongs to another account or does not
                    meet the condition in `msg`; no task is created or charged.
                  summary: Unusable source task (422)
                  value:
                    code: 422
                    msg: >-
                      input.task_id must be a succeeded task of this account
                      created in the last 14 days.
                    data: null
                Unauthorized (401):
                  description: Missing or invalid API Key.
                  summary: Unauthorized (401)
                  value:
                    code: 401
                    msg: >-
                      Unauthorized - Authentication credentials are missing or
                      invalid
                    data: null
                Insufficient balance (402):
                  description: The balance does not cover the task.
                  summary: Insufficient balance (402)
                  value:
                    code: 402
                    msg: >-
                      Insufficient Credits - Account does not have enough
                      credits to perform the operation
                    data: null
                Rate limited (429):
                  description: Rate limit exceeded; retry later.
                  summary: Rate limited (429)
                  value:
                    code: 429
                    msg: >-
                      Rate Limited - Request limit has been exceeded for this
                      resource
                    data: null
                Server error (500):
                  description: >-
                    The service is temporarily unavailable; retry later. Not
                    charged.
                  summary: Server error (500)
                  value:
                    code: 500
                    msg: >-
                      Server Error - An unexpected error occurred while
                      processing the request
                    data: null
              schema:
                $ref: '#/components/schemas/SunoCreateTaskResponse'
          description: >-
            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`.
          headers:
            X-Request-Id:
              description: ID of this request; include it when reporting issues.
              schema:
                type: string
components:
  schemas:
    SunoCreateTaskRequestSunoSeparateVocalsInput:
      additionalProperties: false
      description: Request body of createTask.
      properties:
        model:
          default: ai-music-api/separate-vocals
          description: >-
            Endpoint name; it decides the fields of `input`.


            **Allowed values:**

            - `ai-music-api/separate-vocals`: Suno Vocal and instrument stem
            separation
          enum:
            - ai-music-api/separate-vocals
          type: string
        callBackUrl:
          description: >-
            Optional URL that receives a callback when the task finishes
            (success or failure); it must be a public `http` / `https` URL.
            Recommended in production; you can also just poll the query
            endpoint. See Task callback for the body and signature.
          type: string
        input:
          $ref: '#/components/schemas/SunoSeparateVocalsInput'
          description: Task parameters; the fields depend on `model`.
      required:
        - model
        - input
      type: object
    SunoCreateTaskResponse:
      additionalProperties: false
      description: Response of createTask; always HTTP 200.
      properties:
        code:
          description: >-
            Result code:

            - `200`: success

            - `401`: missing or invalid API Key

            - `402`: insufficient balance

            - `404`: the model does not exist or is not enabled

            - `405`: wrong HTTP method

            - `422`: invalid request, with the reason in `msg`; no task is
            created or charged

            - `429`: too many requests; retry later

            - `455`: service under maintenance

            - `500`: server error; retry later

            - `501`: generation failed

            - `505`: feature disabled
          format: int64
          type: integer
        msg:
          description: 'Message: `success`, or the English reason of an error.'
          type: string
        data:
          $ref: '#/components/schemas/SunoCreateTaskData'
          description: The task on success; `null` on error.
      required:
        - code
        - msg
        - data
      type: object
    SunoSeparateVocalsInput:
      additionalProperties: false
      description: >-
        Parameters of `ai-music-api/separate-vocals`. One source is required:
        `task_id` + `audio_id`, or `audio_url`.
      properties:
        task_id:
          description: >-
            ID of the task holding the song to separate: a song task of this
            account that succeeded on DreamTo within the last 14 days (generate,
            extend, cover, add vocals, add instrumental, replace section,
            mashup, sounds and so on; the `data.taskId` returned by createTask).
            Use together with `audio_id`; mutually exclusive with `audio_url`.
            An unknown task, a task of another account, one that has not
            succeeded, is older than 14 days or makes no songs returns `code:
            422`; no task is created or charged.
          type: string
        audio_id:
          description: >-
            ID of the song to separate: `response.data[].id` of the source
            task's result. Use together with `task_id`; mutually exclusive with
            `audio_url`.
          type: string
        audio_url:
          description: >-
            URL of your own audio, a public `http` / `https` URL of a file up to
            20 MB. Required unless `task_id` + `audio_id` are given; mutually
            exclusive with them.
          type: string
        type:
          default: separate_vocal
          description: >-
            Optional separation mode, default `separate_vocal`. Sets the stems
            returned and the price.


            **Allowed values:**

            - `separate_vocal`: 2 stems: vocals + accompaniment, for quick vocal
            removal, karaoke and basic mixing (default).

            - `split_stem`: Up to 12 stems: vocals, backing vocals, drums, bass,
            guitar, keyboard, strings, brass, woodwinds, percussion, synth and
            FX / other, for remixing and extracting individual instruments.

            - `split_stem_advanced`: Extract one instrument named by
            `stem_name`: returns an extract track with only that instrument and
            a remove track without it, for detailed post-production.
          enum:
            - separate_vocal
            - split_stem
            - split_stem_advanced
          type: string
        stem_name:
          description: >-
            Name of the stem (instrument) to extract, case-sensitive. Required
            with `type: split_stem_advanced`; not allowed with the other modes.


            **Allowed values:**

            - `Lead Vocal`: Extract the Lead Vocal stem.

            - `Drum Kit`: Extract the Drum Kit stem.

            - `Kick`: Extract the Kick stem.

            - `Snare`: Extract the Snare stem.

            - `Risers`: Extract the Risers stem.

            - `Bass`: Extract the Bass stem.

            - `Backing Vocals`: Extract the Backing Vocals stem.

            - `Piano`: Extract the Piano stem.

            - `Electric Guitar`: Extract the Electric Guitar stem.

            - `Percussion`: Extract the Percussion stem.

            - `String Section`: Extract the String Section stem.

            - `Synth`: Extract the Synth stem.

            - `Acoustic Guitar`: Extract the Acoustic Guitar stem.

            - `Sound Effects`: Extract the Sound Effects stem.

            - `Synth Pad`: Extract the Synth Pad stem.

            - `Synth Bass`: Extract the Synth Bass stem.

            - `Guitar`: Extract the Guitar stem.

            - `Brass Section`: Extract the Brass Section stem.

            - `Organ`: Extract the Organ stem.

            - `Electronic Drum Kit`: Extract the Electronic Drum Kit stem.

            - `Lead Electric Guitar`: Extract the Lead Electric Guitar stem.

            - `Synth Keys`: Extract the Synth Keys stem.

            - `Rhythm Electric Guitar`: Extract the Rhythm Electric Guitar stem.

            - `Electric Piano`: Extract the Electric Piano stem.

            - `Upright Bass`: Extract the Upright Bass stem.

            - `Keyboards`: Extract the Keyboards stem.

            - `Distorted Electric Guitar`: Extract the Distorted Electric Guitar
            stem.

            - `Synth Strings`: Extract the Synth Strings stem.

            - `Synth Lead`: Extract the Synth Lead stem.

            - `Woodwinds`: Extract the Woodwinds stem.

            - `Rhythm Acoustic Guitar`: Extract the Rhythm Acoustic Guitar stem.

            - `Flute`: Extract the Flute stem.

            - `Harp`: Extract the Harp stem.

            - `Tambourine`: Extract the Tambourine stem.

            - `Trumpet`: Extract the Trumpet stem.

            - `Arpeggiator`: Extract the Arpeggiator stem.

            - `Accordion`: Extract the Accordion stem.

            - `Fiddle`: Extract the Fiddle stem.

            - `Pedal Steel Guitar`: Extract the Pedal Steel Guitar stem.

            - `Synth Voice`: Extract the Synth Voice stem.

            - `Violin`: Extract the Violin stem.

            - `Digital Piano`: Extract the Digital Piano stem.

            - `Synth Brass`: Extract the Synth Brass stem.

            - `Mandolin`: Extract the Mandolin stem.

            - `Choir`: Extract the Choir stem.

            - `Banjo`: Extract the Banjo stem.

            - `Bells`: Extract the Bells stem.

            - `Clarinet`: Extract the Clarinet stem.

            - `Tenor Saxophone`: Extract the Tenor Saxophone stem.

            - `Trombone`: Extract the Trombone stem.

            - `Shaker`: Extract the Shaker stem.

            - `French Horn`: Extract the French Horn stem.

            - `Glockenspiel`: Extract the Glockenspiel stem.

            - `Electric Bass`: Extract the Electric Bass stem.

            - `Cello`: Extract the Cello stem.

            - `Timpani`: Extract the Timpani stem.

            - `Harmonica`: Extract the Harmonica stem.

            - `Marimba`: Extract the Marimba stem.

            - `Vibraphone`: Extract the Vibraphone stem.

            - `Lap Steel Guitar`: Extract the Lap Steel Guitar stem.

            - `Saxophone`: Extract the Saxophone stem.

            - `Orchestra`: Extract the Orchestra stem.

            - `Horns`: Extract the Horns stem.

            - `Cymbals`: Extract the Cymbals stem.

            - `Hand Clap`: Extract the Hand Clap stem.

            - `Oboe`: Extract the Oboe stem.

            - `Celesta`: Extract the Celesta stem.

            - `Congas`: Extract the Congas stem.

            - `Drone`: Extract the Drone stem.

            - `Alto Saxophone`: Extract the Alto Saxophone stem.

            - `Double Bass`: Extract the Double Bass stem.

            - `Ukulele`: Extract the Ukulele stem.

            - `Harpsichord`: Extract the Harpsichord stem.

            - `Baritone Saxophone`: Extract the Baritone Saxophone stem.

            - `Xylophone`: Extract the Xylophone stem.

            - `Tuba`: Extract the Tuba stem.

            - `Bass Guitar`: Extract the Bass Guitar stem.

            - `Whistle`: Extract the Whistle stem.

            - `Lead Guitar`: Extract the Lead Guitar stem.

            - `Rhodes`: Extract the Rhodes stem.

            - `808`: Extract the 808 stem.

            - `Bongos`: Extract the Bongos stem.

            - `Bassoon`: Extract the Bassoon stem.

            - `Cowbell`: Extract the Cowbell stem.

            - `Viola`: Extract the Viola stem.

            - `Sitar`: Extract the Sitar stem.

            - `Steel Drums`: Extract the Steel Drums stem.

            - `Piccolo`: Extract the Piccolo stem.

            - `Theremin`: Extract the Theremin stem.

            - `Bagpipes`: Extract the Bagpipes stem.

            - `Hi-Hat`: Extract the Hi-Hat stem.

            - `Music Box`: Extract the Music Box stem.

            - `Melodica`: Extract the Melodica stem.

            - `Tabla`: Extract the Tabla stem.

            - `Koto`: Extract the Koto stem.

            - `Djembe`: Extract the Djembe stem.

            - `Taiko`: Extract the Taiko stem.

            - `Didgeridoo`: Extract the Didgeridoo stem.
          enum:
            - Lead Vocal
            - Drum Kit
            - Kick
            - Snare
            - Risers
            - Bass
            - Backing Vocals
            - Piano
            - Electric Guitar
            - Percussion
            - String Section
            - Synth
            - Acoustic Guitar
            - Sound Effects
            - Synth Pad
            - Synth Bass
            - Guitar
            - Brass Section
            - Organ
            - Electronic Drum Kit
            - Lead Electric Guitar
            - Synth Keys
            - Rhythm Electric Guitar
            - Electric Piano
            - Upright Bass
            - Keyboards
            - Distorted Electric Guitar
            - Synth Strings
            - Synth Lead
            - Woodwinds
            - Rhythm Acoustic Guitar
            - Flute
            - Harp
            - Tambourine
            - Trumpet
            - Arpeggiator
            - Accordion
            - Fiddle
            - Pedal Steel Guitar
            - Synth Voice
            - Violin
            - Digital Piano
            - Synth Brass
            - Mandolin
            - Choir
            - Banjo
            - Bells
            - Clarinet
            - Tenor Saxophone
            - Trombone
            - Shaker
            - French Horn
            - Glockenspiel
            - Electric Bass
            - Cello
            - Timpani
            - Harmonica
            - Marimba
            - Vibraphone
            - Lap Steel Guitar
            - Saxophone
            - Orchestra
            - Horns
            - Cymbals
            - Hand Clap
            - Oboe
            - Celesta
            - Congas
            - Drone
            - Alto Saxophone
            - Double Bass
            - Ukulele
            - Harpsichord
            - Baritone Saxophone
            - Xylophone
            - Tuba
            - Bass Guitar
            - Whistle
            - Lead Guitar
            - Rhodes
            - '808'
            - Bongos
            - Bassoon
            - Cowbell
            - Viola
            - Sitar
            - Steel Drums
            - Piccolo
            - Theremin
            - Bagpipes
            - Hi-Hat
            - Music Box
            - Melodica
            - Tabla
            - Koto
            - Djembe
            - Taiko
            - Didgeridoo
          type: string
      type: object
    SunoCreateTaskData:
      additionalProperties: false
      description: The created task.
      properties:
        taskId:
          description: >-
            Task ID (32 hex digits), used to query the task and as the `task_id`
            of follow-up endpoints.
          type: string
      required:
        - taskId
      type: object
  securitySchemes:
    bearerAuth:
      description: >-
        API Key created in the DreamTo console, sent as `Authorization: Bearer
        <API Key>`.
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.