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

# Create a stem split

> Starts a stem split: the input audio is separated into individual stems. `stemSplitType` picks the set of stems — `vocalsInstrumental` produces two (vocals, instrumental) and `drumsBass` produces four (vocals, drums, bass, other). The input may be at most 7 minutes long, and a stem split uses conversion time equal to the input length, whichever type you pick.

Stem splits run asynchronously — the response returns the stem split `id` once the input has been downloaded and stored; poll `GET /stem-splits/{id}` for progress.



## OpenAPI

````yaml POST /stem-splits
openapi: 3.1.0
info:
  title: Audimee API
  description: >-
    The Audimee API lets clients browse voice models, train custom voices, run
    AI voice conversions, create multi-voice harmonies, and split audio into
    stems.
  version: 1.0.0
servers:
  - url: https://audimee.com/api/v1
security:
  - bearerAuth: []
paths:
  /stem-splits:
    post:
      tags:
        - Stem splitter
      summary: Create a stem split
      description: >-
        Starts a stem split: the input audio is separated into individual stems.
        `stemSplitType` picks the set of stems — `vocalsInstrumental` produces
        two (vocals, instrumental) and `drumsBass` produces four (vocals, drums,
        bass, other). The input may be at most 7 minutes long, and a stem split
        uses conversion time equal to the input length, whichever type you pick.


        Stem splits run asynchronously — the response returns the stem split
        `id` once the input has been downloaded and stored; poll `GET
        /stem-splits/{id}` for progress.
      operationId: createStemSplit
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateStemSplitRequest'
            example:
              inputFileUrl: https://example.com/audio/full-mix.wav
              stemSplitType: drumsBass
      responses:
        '200':
          description: Stem split queued. Poll `GET /stem-splits/{id}` for progress.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateStemSplitResponse'
              example:
                id: 3f1c2a9e-7b64-4d0f-8e21-5a6c9d0b4e77
        '400':
          description: >-
            Invalid body, input audio too long, or not enough conversion time
            left.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                invalidJson:
                  summary: Body is not valid JSON
                  value:
                    error: Request body must be valid JSON
                invalidUrl:
                  summary: inputFileUrl is not a URL
                  value:
                    error: 'inputFileUrl: Invalid url'
                notPublicUrl:
                  summary: inputFileUrl is not a public http(s) address
                  value:
                    error: >-
                      inputFileUrl must be a publicly reachable http or https
                      URL
                invalidStemSplitType:
                  summary: Unknown stemSplitType
                  value:
                    error: >-
                      stemSplitType: Invalid enum value. Expected 'drumsBass' |
                      'vocalsInstrumental', received 'karaoke'
                inputTooLong:
                  summary: Input audio longer than 7 minutes
                  value:
                    error: Input audio length (431s) exceeds maximum of 420s
                notEnoughConversionTime:
                  summary: Not enough conversion time left
                  value:
                    error: >-
                      Not enough conversion time left: this stem split needs
                      212s (the input length)
        '401':
          $ref: '#/components/responses/Unauthorized'
        '500':
          description: >-
            Failed to download or process the input audio, or persist the stem
            split.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                downloadFailed:
                  summary: Could not download the input audio
                  value:
                    error: Failed to download audio file
                lengthFailed:
                  summary: Could not read audio length
                  value:
                    error: Failed to get audio length
                uploadFailed:
                  summary: Could not upload to storage
                  value:
                    error: Failed to upload file
                createFailed:
                  summary: Could not create the stem split
                  value:
                    error: Failed to create stem split
components:
  schemas:
    CreateStemSplitRequest:
      type: object
      required:
        - inputFileUrl
        - stemSplitType
      properties:
        inputFileUrl:
          type: string
          format: uri
          description: >-
            `http` or `https` URL to the audio to split, at most 7 minutes long.
            The server downloads it server-side, so the URL must be reachable
            from the public internet for the duration of the request; URLs that
            resolve to private or internal addresses are rejected.
        stemSplitType:
          $ref: '#/components/schemas/StemSplitType'
    CreateStemSplitResponse:
      type: object
      required:
        - id
      properties:
        id:
          type: string
          format: uuid
          description: UUID of the queued stem split.
    ErrorResponse:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: Human-readable explanation of what went wrong.
    StemSplitType:
      type: string
      enum:
        - vocalsInstrumental
        - drumsBass
      description: >-
        The set of stems to produce. `vocalsInstrumental` gives two stems:
        `vocals` and `instrumental`. `drumsBass` gives four: `vocals`, `drums`,
        `bass` and `other`.
  responses:
    Unauthorized:
      description: Missing, malformed, or unrecognised bearer token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          examples:
            missingHeader:
              summary: No Authorization header
              value:
                error: Missing or invalid Authorization header
            invalidToken:
              summary: Token not recognised
              value:
                error: Invalid authorization token
            userNotFound:
              summary: Token valid but user no longer exists
              value:
                error: User not found
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Static API key issued by Audimee, passed as `Authorization: Bearer
        {token}`.

````

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