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

# Create a Dubbing job

> Queue an audio translation after uploading the source. Audio may be up to six hours. A paid subscription and sufficient credits are required.

## Continue building

> [card] [Dub an audio file](https://docs.breezeblue.ai/guides/dubbing.md)
>
> Upload audio, submit a job and retrieve its outputs.

> [card] [Get a Dubbing job](https://docs.breezeblue.ai/api-reference/dubbing/get-a-dubbing-job.md)
>
> Poll the job and retrieve audio and subtitle URLs.


## OpenAPI

````yaml /openapi.json post /v1/dubbing
openapi: 3.1.0
info:
  title: Breeze Developer API
  description: >-
    Breeze Developer API for models, voices, text-to-speech, history, balance,
    usage, and browser-managed API keys.
  version: 1.0.0
servers:
  - url: https://api.breeze.blue
security: []
tags:
  - name: Models
    description: Supported TTS models.
  - name: Text to Speech
    description: Text-to-speech synthesis and instruction enhancement.
  - name: Voices
    description: Saved voices and voice metadata.
  - name: Voice Previews
    description: Create, audition, and save temporary voice previews.
  - name: Account
    description: Balance, usage, and API keys.
  - name: History
    description: Generated audio history.
  - name: Studio
    description: Projects, scripts, arrangement and audio materials.
  - name: Dubbing
    description: Asynchronous translation of uploaded audio.
paths:
  /v1/dubbing:
    post:
      tags:
        - Dubbing
      summary: Create a Dubbing job
      description: >-
        Queue an audio translation after uploading the source. Audio may be up
        to six hours. A paid subscription and sufficient credits are required.
      operationId: dubbing_create
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DubbingCreate'
        required: true
      responses:
        '202':
          description: The asynchronous Dubbing job.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DubbingJob'
          headers:
            x-breeze-api-key-id:
              description: >-
                Public API key identifier used to authenticate the request, when
                an API key was used.
              schema:
                type: string
        '401':
          description: HTTP 401 error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '402':
          description: HTTP 402 error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: HTTP 403 error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: HTTP 404 error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '409':
          description: HTTP 409 error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: HTTP 422 error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorResponse'
        '429':
          description: HTTP 429 error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          headers:
            Retry-After:
              description: >-
                When provided, seconds to wait before retrying a rate or
                shared-capacity rejection.
              schema:
                type: integer
                minimum: 0
                maximum: 3600
        '502':
          description: HTTP 502 error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: HTTP 503 error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          headers:
            Retry-After:
              description: >-
                When provided, seconds to wait before retrying a rate or
                shared-capacity rejection.
              schema:
                type: integer
                minimum: 0
                maximum: 3600
        '504':
          description: HTTP 504 error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - ApiKeyAuth: []
      x-codeSamples:
        - lang: cURL
          label: cURL
          source: |-
            curl \
              --request POST \
              --url "https://api.breeze.blue/v1/dubbing" \
              --header "xi-api-key: $BREEZE_API_KEY" \
              --header "Content-Type: application/json" \
              --data '{
              "source_asset_id": "med_example",
              "target_language": "es",
              "idempotency_key": "talk-es-01"
            }'
components:
  schemas:
    DubbingCreate:
      properties:
        source_asset_id:
          type: string
          maxLength: 64
          minLength: 1
          title: Source Asset Id
          description: The source asset ID from the completed PUT upload.
        target_language:
          type: string
          maxLength: 16
          minLength: 2
          title: Target Language
          description: Target language code.
        source_language:
          type: string
          maxLength: 16
          minLength: 2
          title: Source Language
          default: auto
          description: Source language code or auto for automatic detection.
        idempotency_key:
          type: string
          maxLength: 100
          minLength: 1
          pattern: ^[A-Za-z0-9._:-]+$
          title: Idempotency Key
          description: >-
            Reuse with the same source and languages to recover the same job
            after a timeout.
      additionalProperties: false
      type: object
      required:
        - source_asset_id
        - target_language
        - idempotency_key
      title: DubbingCreate
    DubbingJob:
      properties:
        dubbing_id:
          type: string
          title: Dubbing Id
        status:
          type: string
          enum:
            - admitted
            - queued
            - generating
            - streaming
            - finalizing
            - ready
            - failed
            - cancelled
          title: Status
        output:
          anyOf:
            - $ref: '#/components/schemas/DubbingOutput'
            - type: 'null'
        error:
          anyOf:
            - $ref: '#/components/schemas/DubbingJobError'
            - type: 'null'
      type: object
      required:
        - dubbing_id
        - status
      title: DubbingJob
    ErrorResponse:
      properties:
        ok:
          default: false
          title: Ok
          type: boolean
        code:
          type: string
          title: Code
        detail:
          type: string
          title: Detail
        error:
          title: Error
          type: string
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          default: null
          title: Meta
      required:
        - code
        - detail
        - error
      title: ErrorResponse
      type: object
    ValidationErrorResponse:
      properties:
        ok:
          default: false
          title: Ok
          type: boolean
        code:
          type: string
          title: Code
        detail:
          type: string
          title: Detail
        error:
          title: Error
          type: string
        meta:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Meta
      required:
        - code
        - detail
        - error
      title: ValidationErrorResponse
      type: object
    DubbingOutput:
      properties:
        duration_seconds:
          type: number
          title: Duration Seconds
        mp3_url:
          type: string
          title: Mp3 Url
        wav_url:
          type: string
          title: Wav Url
        srt_url:
          type: string
          title: Srt Url
        vtt_url:
          type: string
          title: Vtt Url
      type: object
      required:
        - duration_seconds
        - mp3_url
        - wav_url
        - srt_url
        - vtt_url
      title: DubbingOutput
    DubbingJobError:
      properties:
        code:
          type: string
          title: Code
        detail:
          type: string
          title: Detail
      type: object
      required:
        - code
        - detail
      title: DubbingJobError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: xi-api-key
      description: Breeze Developer API key.

````

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