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

> Get a signed PUT URL for an MP3, WAV, or M4A file up to 4 GB. Send the full audio file using the returned headers and the declared Content-Length.

## Continue building

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

> [card] [Create a Dubbing job](https://docs.breezeblue.ai/api-reference/dubbing/create-a-dubbing-job.md)
>
> Submit the uploaded source for translation.


## OpenAPI

````yaml /openapi.json post /v1/dubbing/uploads
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/uploads:
    post:
      tags:
        - Dubbing
      summary: Create a Dubbing upload
      description: >-
        Get a signed PUT URL for an MP3, WAV, or M4A file up to 4 GB. Send the
        full audio file using the returned headers and the declared
        Content-Length.
      operationId: dubbing_upload
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DubbingUploadRequest'
        required: true
      responses:
        '200':
          description: The source asset ID and upload target.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DubbingUpload'
          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'
        '404':
          description: HTTP 404 error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: HTTP 422 error response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorResponse'
        '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/uploads" \
              --header "xi-api-key: $BREEZE_API_KEY" \
              --header "Content-Type: application/json" \
              --data '{
              "filename": "talk.mp3",
              "content_type": "audio/mpeg",
              "size_bytes": 1024000
            }'
components:
  schemas:
    DubbingUploadRequest:
      properties:
        filename:
          type: string
          maxLength: 255
          minLength: 1
          title: Filename
        content_type:
          type: string
          enum:
            - audio/mpeg
            - audio/wav
            - audio/mp4
            - audio/x-m4a
          title: Content Type
        size_bytes:
          type: integer
          maximum: 4000000000
          exclusiveMinimum: 0
          title: Size Bytes
      additionalProperties: false
      type: object
      required:
        - filename
        - content_type
        - size_bytes
      title: DubbingUploadRequest
    DubbingUpload:
      properties:
        source_asset_id:
          type: string
          title: Source Asset Id
        upload_url:
          type: string
          title: Upload Url
        headers:
          additionalProperties:
            type: string
          type: object
          title: Headers
        expires_in_seconds:
          type: integer
          title: Expires In Seconds
      type: object
      required:
        - source_asset_id
        - upload_url
        - headers
        - expires_in_seconds
      title: DubbingUpload
    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
  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.