> ## 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.

# Generate sounds: 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-sounds.json post /api/v1/jobs/createTask
openapi: 3.1.0
info:
  description: >-
    Create sound effects, ambient sounds or loops from one line of description,
    with optional seamless looping, tempo (BPM) and key; each request makes two
    clips.
  title: Suno Generate sounds
  version: v1
servers:
  - url: https://api.dreamto.ai
security:
  - bearerAuth: []
tags:
  - name: Suno Generate sounds
paths:
  /api/v1/jobs/createTask:
    post:
      tags:
        - Suno Generate sounds
      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:
              Ambient sound:
                description: 'Only the required fields: one line of description.'
                summary: Ambient sound
                value:
                  model: ai-music-api/sounds
                  input:
                    prompt: Gentle rain falling on a tin roof with distant thunder
                    model: V6
              Drum loop:
                description: >-
                  `sound_loop: true` makes a seamless loop at 120 BPM in A
                  minor, with a completion callback.
                summary: Drum loop
                value:
                  model: ai-music-api/sounds
                  callBackUrl: https://your-domain.com/api/callback
                  input:
                    prompt: Lo-fi drum loop with soft snare and closed hi-hats
                    model: V6
                    sound_loop: true
                    sound_tempo: 120
                    sound_key: Am
                    grab_lyrics: false
              Quick effect:
                description: '`V6_MINI` is faster, suited to short UI or game effects.'
                summary: Quick effect
                value:
                  model: ai-music-api/sounds
                  input:
                    prompt: Sci-fi automatic door opening whoosh
                    model: V6_MINI
            schema:
              $ref: '#/components/schemas/SunoCreateTaskRequestSunoSoundsInput'
        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.sound_tempo must be between 1 and 300.
                    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:
    SunoCreateTaskRequestSunoSoundsInput:
      additionalProperties: false
      description: Request body of createTask.
      properties:
        model:
          default: ai-music-api/sounds
          description: |-
            Endpoint name; it decides the fields of `input`.

            **Allowed values:**
            - `ai-music-api/sounds`: Suno Generate sounds
          enum:
            - ai-music-api/sounds
          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/SunoSoundsInput'
          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
    SunoSoundsInput:
      additionalProperties: false
      description: Parameters of `ai-music-api/sounds`. `prompt` and `model` are required.
      properties:
        prompt:
          description: >-
            Required description of the sound, up to 500 characters, such as
            `Gentle rain on a tin roof`.
          maxLength: 500
          type: string
        model:
          description: >-
            Required Suno model version: `V6`, `V6_MINI` or `V6_WILD`. The
            discontinued V4–V5_5 are no longer supported.


            **Allowed values:**

            - `V6`: Suno V6: greater musical expression, more natural vocals and
            richer detail

            - `V6_MINI`: Suno V6 Mini: lightweight and fast, balancing quality
            and speed

            - `V6_WILD`: Suno V6 Wild: pushes creative boundaries for bolder,
            more distinctive expression
          enum:
            - V6
            - V6_MINI
            - V6_WILD
          type: string
        sound_loop:
          default: false
          description: 'Optional: whether the sound loops seamlessly, default `false`.'
          type: boolean
        sound_tempo:
          description: >-
            Optional tempo in BPM (beats per minute), an integer from `1` to
            `300`; the model decides when omitted.
          format: int64
          maximum: 300
          minimum: 1
          type: integer
        sound_key:
          default: Any
          description: >-
            Optional musical key, default `Any` (automatic). Minor keys end in
            `m`; sharps use `#`.


            **Allowed values:**

            - `Any`: No fixed key; the model decides (default).

            - `Cm`: C minor.

            - `C#m`: C# minor.

            - `Dm`: D minor.

            - `D#m`: D# minor.

            - `Em`: E minor.

            - `Fm`: F minor.

            - `F#m`: F# minor.

            - `Gm`: G minor.

            - `G#m`: G# minor.

            - `Am`: A minor.

            - `A#m`: A# minor.

            - `Bm`: B minor.

            - `C`: C major.

            - `C#`: C# major.

            - `D`: D major.

            - `D#`: D# major.

            - `E`: E major.

            - `F`: F major.

            - `F#`: F# major.

            - `G`: G major.

            - `G#`: G# major.

            - `A`: A major.

            - `A#`: A# major.

            - `B`: B major.
          enum:
            - Any
            - Cm
            - C#m
            - Dm
            - D#m
            - Em
            - Fm
            - F#m
            - Gm
            - G#m
            - Am
            - A#m
            - Bm
            - C
            - C#
            - D
            - D#
            - E
            - F
            - F#
            - G
            - G#
            - A
            - A#
            - B
          type: string
        grab_lyrics:
          default: false
          description: >-
            Optional: whether to capture the lyrics subtitles after completion,
            default `false`.
          type: boolean
      required:
        - prompt
        - model
      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.