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

> Creates an ElevenLabs V3 dialogue speech task: `input.dialogue` lists the lines and their voices in order, 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/elevenlabs-text-to-dialogue-v3.json post /api/v1/jobs/createTask
openapi: 3.1.0
info:
  description: >-
    ElevenLabs Eleven v3 dialogue speech: one request turns several lines, each
    with its own voice, into one natural conversation, with audio tags for
    emotion and delivery, 70+ languages, billed per character.
  title: ElevenLabs V3 Text to Dialogue
  version: v1
servers:
  - url: https://api.dreamto.ai
security:
  - bearerAuth: []
tags:
  - name: ElevenLabs V3 Text to Dialogue
paths:
  /api/v1/jobs/createTask:
    post:
      tags:
        - ElevenLabs V3 Text to Dialogue
      summary: Create task
      description: >-
        Creates an ElevenLabs V3 dialogue speech task: `input.dialogue` lists
        the lines and their voices in order, 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: elevenlabsCreateTask
      requestBody:
        content:
          application/json:
            examples:
              Two-speaker dialogue:
                description: >-
                  Two voices take turns; `stability` is the default `0.5`
                  (Natural) and the language is detected automatically.
                summary: Two-speaker dialogue
                value:
                  model: elevenlabs/text-to-dialogue-v3
                  input:
                    dialogue:
                      - text: >-
                          Did you hear the news? They finally opened the new
                          bakery downtown.
                        voice: pNInz6obpgDQGcFmaJgB
                      - text: >-
                          [excited] Really? I've been waiting for months! Let's
                          go this weekend.
                        voice: EXAVITQu4vr4xnSDxMaL
                      - text: Deal. [laughs] I'll bring the coffee.
                        voice: pNInz6obpgDQGcFmaJgB
                    stability: 0.5
              Chinese podcast with audio tags:
                description: >-
                  `language_code: zh` sets Chinese and `stability: 0` (Creative)
                  makes audio tags such as `[laughs]` and `[whispers]` more
                  pronounced; with a completion callback.
                summary: Chinese podcast with audio tags
                value:
                  model: elevenlabs/text-to-dialogue-v3
                  callBackUrl: https://your-domain.com/api/callback
                  input:
                    dialogue:
                      - text: 欢迎收听本期节目，今天我们聊聊城市里的深夜食堂。
                        voice: JBFqnCBsd6RMkjVDRZzb
                      - text: '[laughs] 说到这个我就饿了。你知道吗，我家楼下那家面馆凌晨三点还排队。'
                        voice: cgSgspJ2msm6clMCkdW9
                      - text: '[whispers] 偷偷告诉你，他们的秘方是猪油渣。'
                        voice: JBFqnCBsd6RMkjVDRZzb
                    stability: 0
                    language_code: zh
              Steady narration:
                description: >-
                  One voice reads a narration; `stability: 1` (Robust) gives the
                  steadiest output, for audiobooks and product walkthroughs.
                summary: Steady narration
                value:
                  model: elevenlabs/text-to-dialogue-v3
                  input:
                    dialogue:
                      - text: >-
                          Chapter one. The lighthouse keeper climbed the spiral
                          stairs for the last time, counting each of the one
                          hundred and twelve steps.
                        voice: nPczCjzI2devNBz1zQrb
                    stability: 1
                    language_code: en
            schema:
              $ref: '#/components/schemas/ElevenLabsCreateTaskRequest'
        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.stability must be one of 0, 0.5, 1.
                    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/ElevenLabsCreateTaskResponse'
          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:
    ElevenLabsCreateTaskRequest:
      additionalProperties: false
      description: Request body of createTask.
      properties:
        model:
          default: elevenlabs/text-to-dialogue-v3
          description: >-
            Model name, always `elevenlabs/text-to-dialogue-v3`.


            **Allowed values:**

            - `elevenlabs/text-to-dialogue-v3`: ElevenLabs Eleven v3 Text to
            Dialogue
          enum:
            - elevenlabs/text-to-dialogue-v3
          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/ElevenLabsTextToDialogueV3Input'
          description: Generation parameters.
      required:
        - model
        - input
      type: object
    ElevenLabsCreateTaskResponse:
      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/ElevenLabsCreateTaskData'
          description: The task on success; `null` on error.
      required:
        - code
        - msg
        - data
      type: object
    ElevenLabsTextToDialogueV3Input:
      additionalProperties: false
      description: Generation parameters of `elevenlabs/text-to-dialogue-v3`.
      properties:
        dialogue:
          description: >-
            The lines, required, at least one, synthesized in order into one
            dialogue. Each line has a `text` and a `voice`; all `text` values
            together may contain at most 5,000 characters (audio tags, spaces
            and punctuation included), and these characters are billed.
          items:
            $ref: '#/components/schemas/ElevenLabsDialogueLine'
          minItems: 1
          type: array
        stability:
          default: 0.5
          description: >-
            Voice stability, optional, default `0.5`. Lower values give a more
            expressive delivery that follows audio tags more closely but may be
            less stable; higher values are steadier and more consistent but
            respond less to emotional direction.


            **Allowed values:**

            - `0`: Creative: the most expressive and the most responsive to
            audio tags, but the delivery may be unstable or drift from the text

            - `0.5`: Natural (default): balanced between expressiveness and
            stability, closest to the original voice

            - `1`: Robust: the steadiest and most consistent, but less
            responsive to emotional direction and audio tags
          enum:
            - 0
            - 0.5
            - 1
          type: number
        language_code:
          description: >-
            Language code (ISO 639), optional. Omitted or an empty string
            detects the language from the text; set it when the language is
            known to improve pronunciation.


            **Allowed values:**

            - `af`: Afrikaans

            - `ar`: Arabic

            - `hy`: Armenian

            - `as`: Assamese

            - `az`: Azerbaijani

            - `be`: Belarusian

            - `bn`: Bengali

            - `bs`: Bosnian

            - `bg`: Bulgarian

            - `ca`: Catalan

            - `ceb`: Cebuano

            - `ny`: Chichewa

            - `hr`: Croatian

            - `cs`: Czech

            - `da`: Danish

            - `nl`: Dutch

            - `en`: English

            - `et`: Estonian

            - `fil`: Filipino

            - `fi`: Finnish

            - `fr`: French

            - `gl`: Galician

            - `ka`: Georgian

            - `de`: German

            - `el`: Greek

            - `gu`: Gujarati

            - `ha`: Hausa

            - `he`: Hebrew

            - `hi`: Hindi

            - `hu`: Hungarian

            - `is`: Icelandic

            - `id`: Indonesian

            - `ga`: Irish

            - `it`: Italian

            - `ja`: Japanese

            - `jv`: Javanese

            - `kn`: Kannada

            - `kk`: Kazakh

            - `ky`: Kyrgyz

            - `ko`: Korean

            - `lv`: Latvian

            - `ln`: Lingala

            - `lt`: Lithuanian

            - `lb`: Luxembourgish

            - `mk`: Macedonian

            - `ms`: Malay

            - `ml`: Malayalam

            - `zh`: Chinese

            - `mr`: Marathi

            - `ne`: Nepali

            - `no`: Norwegian

            - `ps`: Pashto

            - `fa`: Persian

            - `pl`: Polish

            - `pt`: Portuguese

            - `pa`: Punjabi

            - `ro`: Romanian

            - `ru`: Russian

            - `sr`: Serbian

            - `sd`: Sindhi

            - `sk`: Slovak

            - `sl`: Slovenian

            - `so`: Somali

            - `es`: Spanish

            - `sw`: Swahili

            - `sv`: Swedish

            - `ta`: Tamil

            - `te`: Telugu

            - `th`: Thai

            - `tr`: Turkish

            - `uk`: Ukrainian

            - `ur`: Urdu

            - `vi`: Vietnamese

            - `cy`: Welsh
          enum:
            - af
            - ar
            - hy
            - as
            - az
            - be
            - bn
            - bs
            - bg
            - ca
            - ceb
            - ny
            - hr
            - cs
            - da
            - nl
            - en
            - et
            - fil
            - fi
            - fr
            - gl
            - ka
            - de
            - el
            - gu
            - ha
            - he
            - hi
            - hu
            - is
            - id
            - ga
            - it
            - ja
            - jv
            - kn
            - kk
            - ky
            - ko
            - lv
            - ln
            - lt
            - lb
            - mk
            - ms
            - ml
            - zh
            - mr
            - ne
            - 'no'
            - ps
            - fa
            - pl
            - pt
            - pa
            - ro
            - ru
            - sr
            - sd
            - sk
            - sl
            - so
            - es
            - sw
            - sv
            - ta
            - te
            - th
            - tr
            - uk
            - ur
            - vi
            - cy
          type: string
      required:
        - dialogue
      type: object
    ElevenLabsCreateTaskData:
      additionalProperties: false
      description: The created task.
      properties:
        taskId:
          description: Task ID (32 hex digits), used to query the task.
          type: string
      required:
        - taskId
      type: object
    ElevenLabsDialogueLine:
      additionalProperties: false
      description: 'One line: what is said and by which voice.'
      properties:
        text:
          description: >-
            Line text, required and not blank. Insert audio tags in square
            brackets where the delivery should change, such as `[laughs]`,
            `[whispers]`, `[sighs]` or `[excited]`; dashes and ellipses also
            shape pauses.
          maxLength: 5000
          minLength: 1
          type: string
        voice:
          default: pNInz6obpgDQGcFmaJgB
          description: >-
            The voice that speaks the line, required: a preset voice ID below
            (case-sensitive) or its preset name (case-insensitive, such as
            `Adam`).


            **Allowed values:**

            - `pNInz6obpgDQGcFmaJgB`: Adam - Dominant, Firm (also selected by
            the name `Adam`)

            - `Xb7hH8MSUJpSbSDYk0k2`: Alice - Clear, Engaging Educator (also
            selected by the name `Alice`)

            - `pqHfZKP75CvOlQylNhV4`: Bill - Wise, Mature, Balanced (also
            selected by the name `Bill`)

            - `IKne3meq5aSn9XLyUdCD`: Charlie - Deep, Confident, Energetic (also
            selected by the name `Charlie`)

            - `iP95p4xoKVk53GoZ742B`: Chris - Charming, Down-to-Earth (also
            selected by the name `Chris`)

            - `onwK4e9ZLuTAKqWW03F9`: Daniel - Steady Broadcaster (also selected
            by the name `Daniel`)

            - `cjVigY5qzO86Huf0OWal`: Eric - Smooth, Trustworthy (also selected
            by the name `Eric`)

            - `JBFqnCBsd6RMkjVDRZzb`: George - Warm, Captivating Storyteller
            (also selected by the name `George`)

            - `SOYHLrjzK2X1ezoPC6cr`: Harry - Fierce Warrior (also selected by
            the name `Harry`)

            - `cgSgspJ2msm6clMCkdW9`: Jessica - Playful, Bright, Warm (also
            selected by the name `Jessica`)

            - `pFZP5JQG7iQjIQuC4Bku`: Lily - Velvety Actress (also selected by
            the name `Lily`)

            - `XrExE9yKIg1WjnnlVkGX`: Matilda - Knowledgable, Professional (also
            selected by the name `Matilda`)

            - `SAz9YHcvj6GT2YYXdXww`: River - Relaxed, Neutral, Informative
            (also selected by the name `River`)

            - `CwhRBWXzGAHq8TQ4Fs17`: Roger - Laid-Back, Casual, Resonant (also
            selected by the name `Roger`)

            - `EXAVITQu4vr4xnSDxMaL`: Sarah - Mature, Reassuring, Confident
            (also selected by the name `Sarah`)

            - `bIHbv24MWmeRgasZH58o`: Will - Relaxed Optimist (also selected by
            the name `Will`)

            - `TX3LPaxmHKxFdv7VOQHJ`: Liam - Energetic, Social Media Creator
            (also selected by the name `Liam`)

            - `N2lVS1w4EtoT3dr4eOWO`: Callum - Husky Trickster (also selected by
            the name `Callum`)

            - `FGY2WhTYpPnrIDTdsKH5`: Laura - Enthusiast, Quirky Attitude (also
            selected by the name `Laura`)

            - `nPczCjzI2devNBz1zQrb`: Brian - Deep, Resonant and Comforting
            (also selected by the name `Brian`)
          enum:
            - pNInz6obpgDQGcFmaJgB
            - Xb7hH8MSUJpSbSDYk0k2
            - pqHfZKP75CvOlQylNhV4
            - IKne3meq5aSn9XLyUdCD
            - iP95p4xoKVk53GoZ742B
            - onwK4e9ZLuTAKqWW03F9
            - cjVigY5qzO86Huf0OWal
            - JBFqnCBsd6RMkjVDRZzb
            - SOYHLrjzK2X1ezoPC6cr
            - cgSgspJ2msm6clMCkdW9
            - pFZP5JQG7iQjIQuC4Bku
            - XrExE9yKIg1WjnnlVkGX
            - SAz9YHcvj6GT2YYXdXww
            - CwhRBWXzGAHq8TQ4Fs17
            - EXAVITQu4vr4xnSDxMaL
            - bIHbv24MWmeRgasZH58o
            - TX3LPaxmHKxFdv7VOQHJ
            - N2lVS1w4EtoT3dr4eOWO
            - FGY2WhTYpPnrIDTdsKH5
            - nPczCjzI2devNBz1zQrb
          type: string
      required:
        - text
        - voice
      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.