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

# Kling-V3 Text to Video

> - Kling V3 text-to-video model
- Supports `720p` / `1080p` / `4k`; `4k` is a separate native 4K tier
- Optional accompanying audio generation
- Async processing mode — use the returned task ID to [check task status](/pages/en/api-manual/task-management/get-task-detail)
- Generated video links are valid for 24 hours; please save them promptly




## OpenAPI

````yaml openapi/en/kling-v3-text-to-video.json POST /v1/videos/generations
openapi: 3.1.0
info:
  title: Kling V3 Text-to-Video
  version: '1.0'
servers:
  - url: https://api.aihubmax.com
security:
  - BearerAuth: []
paths:
  /v1/videos/generations:
    post:
      tags:
        - Video > Kling
      summary: Kling V3 Text-to-Video
      description: >
        - Kling V3 text-to-video model

        - Supports `720p` / `1080p` / `4k`; `4k` is a separate native 4K tier

        - Optional accompanying audio generation

        - Async processing mode — use the returned task ID to [check task
        status](/pages/en/api-manual/task-management/get-task-detail)

        - Generated video links are valid for 24 hours; please save them
        promptly
      operationId: kling-v3-text-to-video
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/KlingV3TextToVideoRequest'
            examples:
              v3_pro_text_to_video_with_audio:
                summary: V3 Pro text-to-video (with audio)
                value:
                  model: kling-v3-text-to-video
                  prompt: >-
                    An ancient Japanese courtyard, raindrops slowly falling into
                    a pond beside a stone lantern, creating ripples. Camera
                    slowly pushes in, cinematic quality, shallow depth of field
                  resolution: 1080p
                  generate_audio: true
                  negative_prompt: blurry, low quality, watermark
                  aspect_ratio: '16:9'
                  duration: 10
      responses:
        '200':
          $ref: '#/components/responses/TaskCreated'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '422':
          $ref: '#/components/responses/UnprocessableEntity'
        '429':
          $ref: '#/components/responses/TooManyRequests'
        '500':
          $ref: '#/components/responses/InternalServerError'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
components:
  schemas:
    KlingV3TextToVideoRequest:
      type: object
      required:
        - model
        - prompt
      properties:
        model:
          description: >-
            `kling-v3-text-to-video`: Pure text driven video generation,
            supports `720p` / `1080p` / `4k`
          examples:
            - kling-v3-text-to-video
          type: string
          default: kling-v3-text-to-video
        prompt:
          description: |
            Text prompt describing the video content you want to generate

            **Notes:**
            - Maximum **2500** characters
            - Supports both Chinese and English
          maxLength: 2500
          type: string
          example: >-
            An ancient Japanese courtyard, raindrops slowly falling into a pond,
            creating ripples
        resolution:
          default: 720p
          description: >
            Output resolution


            **Options:**

            - `720p` — 720P SD

            - `1080p` — 1080P HD

            - `4k` — Native 4K UHD (independent tier, billing not affected by
            `generate_audio` / `voice_ids`)
          type: string
          example: 720p
        generate_audio:
          default: false
          description: >
            Whether to generate accompanying audio


            **Notes:**

            - When enabled, the video will include AI-generated sound
            effects/music

            - Disabled by default
          type: boolean
          example: false
        negative_prompt:
          default: ''
          description: |-
            Negative prompt, describing elements you don't want to appear

            **Notes:**
            - Separate multiple keywords with commas
            - Common: blurry, low quality, watermark, text overlay


            > Do not pass this parameter unless necessary.
          type: string
          x-advanced: true
          example: blurry, low quality, watermark, text overlay
        aspect_ratio:
          default: '16:9'
          description: |
            Output video aspect ratio

            **Available values:**
            - `16:9` — Landscape (default)
            - `9:16` — Portrait
            - `1:1` — Square
          type: string
          example: '16:9'
        duration:
          default: 5
          description: |
            Output video duration (seconds)

            **Available values:**
            - `5` — 5-second short video (default)
            - `10` — 10-second video
          type: integer
          example: 5
        voice_ids:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          default: null
          description: |-
            Voice ID list for voice control

            **Notes:**
            - Maximum 2 voices
            - Use `<<<voice_1>>>` / `<<<voice_2>>>` in `prompt` to reference
            - Obtain voice_id via the `kling-video-create-voice` endpoint
            - `generate_audio` must be `true` when using this parameter


            > Do not pass this parameter unless necessary.
          x-advanced: true
          example:
            - voice_123456
        multi_prompt:
          anyOf:
            - items:
                description: A single shot in a multi-prompt sequence.
                properties:
                  prompt:
                    description: Text prompt for this segment
                    type: string
                  duration:
                    description: Duration of this segment (seconds)
                    type: integer
                required:
                  - prompt
                  - duration
                type: object
              type: array
            - type: 'null'
          default: null
          description: |-
            Multi-prompt sequence

            **Notes:**
            - Each segment contains its own prompt and duration
            - The sum of all segment durations should equal the total `duration`


            > Do not pass this parameter unless necessary.
          x-advanced: true
    TaskResponse:
      type: object
      properties:
        created:
          type: integer
          description: Task creation timestamp
          example: 1757165031
        id:
          type: string
          description: Task ID
          example: task-unified-1757165031-uyujaw3d
        model:
          type: string
          description: Actual model name used
        object:
          type: string
          description: Specific task type
          enum:
            - video.generation.task
        progress:
          type: integer
          description: Task progress percentage (0-100)
          minimum: 0
          maximum: 100
          example: 0
        status:
          type: string
          description: Task status
          enum:
            - pending
            - processing
            - completed
            - failed
          example: pending
        task_info:
          type: object
          description: Async task information
          properties:
            can_cancel:
              type: boolean
              description: Whether the task can be cancelled
              example: true
            estimated_time:
              type: integer
              description: Estimated completion time (seconds)
              example: 45
        type:
          type: string
          description: Task output type
          enum:
            - video
          example: video
    ErrorResponse400:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              example: Invalid request parameters
            type:
              type: string
              example: invalid_request_error
    ErrorResponse401:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              example: Invalid API key
            type:
              type: string
              example: authentication_error
    ErrorResponse402:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              example: Insufficient balance
            type:
              type: string
              example: insufficient_quota
    ErrorResponse422:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              example: Parameter validation failed
            type:
              type: string
              example: validation_error
    ErrorResponse429:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              example: Rate limit exceeded
            type:
              type: string
              example: rate_limit_error
    ErrorResponse500:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              example: Internal server error
            type:
              type: string
              example: server_error
    ErrorResponse503:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
              example: Service temporarily unavailable, please try again later
            type:
              type: string
              example: service_unavailable
  responses:
    TaskCreated:
      description: Task created successfully
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/TaskResponse'
    BadRequest:
      description: Bad Request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse400'
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse401'
    PaymentRequired:
      description: Insufficient balance
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse402'
    UnprocessableEntity:
      description: Parameter validation failed
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse422'
    TooManyRequests:
      description: Too Many Requests
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse429'
    InternalServerError:
      description: Internal Server Error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse500'
    ServiceUnavailable:
      description: Service Unavailable
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse503'
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: |
        ## All APIs require Bearer Token authentication ##

        Add to request header:

        `Authorization: Bearer YOUR_API_KEY`

````