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

# Seed Audio 1.5 Video to Audio

> Generate a soundtrack timed to the picture. Quote the dialogue and describe the ambience and effects to include.

Billing uses the measured length of the input video, rounded up to whole seconds. The price includes the rendered video and subtitles.

By default, the video with the new soundtrack is first and the audio file is second. Set `return_video` to `false` for audio only. Requested subtitles follow the audio.

Generate a soundtrack timed to the picture. Quote the dialogue and describe the ambience and effects to include.

| Billing unit | Tokens | USD |
| - | -: | -: |
| Per second of input video | 1.2 | \$0.024 |

Billing uses the measured length of the input video, rounded up to whole seconds. The price includes the rendered video and subtitles.

Use the returned `img_uuid` to poll `GET /api/v1/jobs/detail`, or pass `custom_callback_url`. By default, the video with the new soundtrack is first and the audio file is second. Set `return_video` to `false` for audio only. Requested subtitles follow the audio. Download each file from its `json[].value` URL.


## OpenAPI

````yaml api-reference/audio-generations/openapi-seed-audio-1-5-video.json POST /api/v1/audio/generations
openapi: 3.1.0
info:
  title: GoEnhance API - Seed Audio 1.5 Video to Audio
  version: 1.0.0
servers:
  - url: https://api.goenhance.ai
security: []
paths:
  /api/v1/audio/generations:
    post:
      tags:
        - AudioGenerations
      summary: Seed Audio 1.5 Video to Audio
      description: >-
        Generate a soundtrack timed to the picture. Quote the dialogue and
        describe the ambience and effects to include.


        Billing uses the measured length of the input video, rounded up to whole
        seconds. The price includes the rendered video and subtitles.


        By default, the video with the new soundtrack is first and the audio
        file is second. Set `return_video` to `false` for audio only. Requested
        subtitles follow the audio.
      parameters:
        - name: Authorization
          in: header
          description: Your GoEnhance API key.
          required: true
          example: '{{Authorization}}'
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                model:
                  type: string
                  enum:
                    - seed-audio-1-5-video
                prompt:
                  type: string
                  minLength: 1
                  maxLength: 10000
                  description: >-
                    Describe the scene and quote the exact words each speaker
                    should say. Music-only or effects-only prompts are
                    unsupported.
                audio_urls:
                  type: array
                  items:
                    type: string
                  minItems: 1
                  maxItems: 6
                  description: >-
                    Provide reference voices in prompt order. Each item is a
                    public WAV or MP3 URL (2–30 seconds, up to 15 MB) or a
                    speaker:// voice ID.
                speech_rate:
                  type: integer
                  minimum: -50
                  maximum: 100
                  default: 0
                  description: Speech speed adjustment.
                loudness_rate:
                  type: integer
                  minimum: -50
                  maximum: 100
                  default: 0
                  description: Volume adjustment.
                pitch_rate:
                  type: integer
                  minimum: -12
                  maximum: 12
                  default: 0
                  description: Pitch shift in semitones.
                video_url:
                  type: string
                  format: uri
                  description: >-
                    Public MP4 or MOV, 4–360 seconds at 12–60 fps, up to 200 MB.
                    Each side must be 300–6000 pixels with a 0.4–2.5 aspect
                    ratio and 407696–2086876 pixels in total.
                video_urls:
                  type: array
                  items:
                    type: string
                  minItems: 1
                  maxItems: 1
                  description: Alternative to video_url. Provide exactly one video.
                return_video:
                  type: boolean
                  default: true
                  description: Include the video with the new audio track.
                subtitles:
                  type: boolean
                  default: false
                  description: Include SRT and JSONL subtitle files.
                format:
                  type: string
                  enum:
                    - wav
                    - mp3
                    - pcm
                    - ogg_opus
                  default: mp3
                  description: PCM is raw 16-bit audio. Ogg Opus requires 48000 Hz.
                sample_rate:
                  type: integer
                  enum:
                    - 8000
                    - 16000
                    - 24000
                    - 32000
                    - 44100
                    - 48000
                  description: Defaults to 44100 Hz, or 48000 Hz for Ogg Opus.
                custom_callback_url:
                  type: string
                  format: uri
                  description: >-
                    Optional. A publicly accessible HTTPS URL. When the task
                    status changes (processing / success / failed), GoEnhance
                    sends a POST request to this URL. The request body is
                    identical to the response of GET /api/v1/jobs/detail. If
                    your server does not respond with HTTP 200, the notification
                    is retried up to 3 times, with a 3-second timeout per
                    attempt.
                  example: https://your-server.com/goenhance/callback
              required:
                - model
                - prompt
              oneOf:
                - required:
                    - video_url
                - required:
                    - video_urls
            example:
              model: seed-audio-1-5-video
              video_url: https://example.com/studio.mp4
              prompt: >-
                A guide says in English, “Welcome to the studio. Today we are
                recording a short introduction.” Add quiet room tone.
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  msg:
                    type: string
                  data:
                    type: object
                    properties:
                      img_uuid:
                        type: string
                      cost:
                        type: number
                        description: Tokens charged at submission after account discounts.
                        example: 12
                    required:
                      - img_uuid
                      - cost
                required:
                  - code
                  - msg
                  - data
              examples:
                '1':
                  summary: Success
                  value:
                    code: 0
                    msg: Success
                    data:
                      img_uuid: c12b656c-747a-44fd-9c80-add79b0c52d5
                      cost: 12
                '2':
                  summary: Insufficient tokens
                  value:
                    code: 100
                    msg: tokens is not enough
                quota:
                  summary: API key quota exceeded
                  value:
                    code: 101
                    msg: 'API key quota exceeded: 4990 of 5000 tokens used (monthly)'
                bad:
                  summary: Invalid parameters
                  value:
                    code: -1
                    msg: video_url is required
          headers: {}
        '401':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  msg:
                    type: string
          headers: {}
      deprecated: false

````

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