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

# Create custom voice: 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-voice-create.json post /api/v1/jobs/createTask
openapi: 3.1.0
info:
  description: >-
    Submit the user's recording of the validation phrase; once verified, a
    reusable custom voice is created.
  title: Suno Create custom voice
  version: v1
servers:
  - url: https://api.dreamto.ai
security:
  - bearerAuth: []
tags:
  - name: Suno Create custom voice
paths:
  /api/v1/jobs/createTask:
    post:
      tags:
        - Suno Create custom voice
      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:
              Submit the verification recording:
                description: >-
                  Pass the validation-phrase task's `task_id` and the recording
                  URL, with the voice details.
                summary: Submit the verification recording
                value:
                  model: ai-music-api/create-voice
                  callBackUrl: https://your-domain.com/api/callback
                  input:
                    task_id: c2a81e5f09d34b7e8f61a2d4c9b03e75
                    verify_url: https://example.com/recordings/verify-phrase.mp3
                    voice_name: My voice
                    description: A warm, bright alto
                    style: pop
                    singer_skill_level: intermediate
              Required fields only:
                description: >-
                  Pass only the validation-phrase task's `task_id` and the
                  recording URL.
                summary: Required fields only
                value:
                  model: ai-music-api/create-voice
                  input:
                    task_id: c2a81e5f09d34b7e8f61a2d4c9b03e75
                    verify_url: https://example.com/recordings/verify-phrase.mp3
            schema:
              $ref: '#/components/schemas/SunoCreateTaskRequestSunoVoiceCreateInput'
        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.verify_url is required.
                    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 pending or 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:
    SunoCreateTaskRequestSunoVoiceCreateInput:
      additionalProperties: false
      description: Request body of createTask.
      properties:
        model:
          default: ai-music-api/create-voice
          description: |-
            Endpoint name; it decides the fields of `input`.

            **Allowed values:**
            - `ai-music-api/create-voice`: Suno Create custom voice
          enum:
            - ai-music-api/create-voice
          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/SunoVoiceCreateInput'
          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
    SunoVoiceCreateInput:
      additionalProperties: false
      description: Parameters of `ai-music-api/create-voice`.
      properties:
        task_id:
          description: >-
            Required task ID of the Generate Validation Phrase task (the
            `data.taskId` returned by createTask): a validation-phrase task of
            this account, created within the last 14 days, that is waiting for
            the recording or has succeeded; it is also the Voice ID. An unknown
            task, a task of another account, a failed task, one older than 14
            days or one that is not a validation-phrase task returns `code:
            422`; no task is created or charged.
          type: string
        verify_url:
          description: >-
            Required URL of the user's recording of the validation phrase
            (`verify_phrase_text` in the validation-phrase task's result); an
            `http` / `https` link. Singing the phrase rather than speaking it
            gives a better voice.
          type: string
        voice_name:
          description: Optional voice name.
          type: string
        description:
          description: Optional voice description.
          type: string
        style:
          description: Optional voice style.
          type: string
        singer_skill_level:
          default: beginner
          description: |-
            Optional singer skill level; `beginner` by default.

            **Allowed values:**
            - `beginner`: Beginner
            - `intermediate`: Intermediate
            - `advanced`: Advanced
            - `professional`: Professional
          enum:
            - beginner
            - intermediate
            - advanced
            - professional
          type: string
      required:
        - task_id
        - verify_url
      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.