# "/fal-ai/kling-video/v2.5-turbo/pro/text-to-video"

Nguồn: https://docs.openaihub.net/api-45208915/

> API origin: `https://api.openaihub.net`. Chọn đúng nhóm API và model. Thông số dưới đây là bản tham chiếu kỹ thuật; chưa phải kết quả kiểm thử từng endpoint bằng tài khoản của bạn.


## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /fal-ai/kling-video/v2.5-turbo/pro/text-to-video:
    post:
      summary: /fal-ai/kling-video/v2.5-turbo/pro/text-to-video
      deprecated: false
      description: ''
      operationId: post-fal-ai-kling-video-v2-5-turbo-pro-text-to-video
      tags:
        - OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Fal.ai
        - fal-ai
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - prompt
              properties:
                aspect_ratio:
                  type: string
                  description: 'Kiểu liệt kê tỷ lệ khung hình video: 16:9, 9:16, 1:1'
                cfg_scale:
                  type: number
                  description: 'Phạm vi: 0–1'
                duration:
                  type: string
                  description: 'Gia tri liet ke thoi luong video duoc tao: 5, 10'
                negative_prompt:
                  type: string
                  description: Lời nhắc phủ định (nội dung cần tránh)
                prompt:
                  type: string
                  description: Câu lệnh tạo video.
              x-apifox-orders:
                - aspect_ratio
                - cfg_scale
                - duration
                - negative_prompt
                - prompt
              x-apidog-orders:
                - aspect_ratio
                - cfg_scale
                - duration
                - negative_prompt
                - prompt
            examples:
              example:
                value:
                  aspect_ratio: '16:9'
                  cfg_scale: 0.5
                  duration: '5'
                  negative_prompt: mờ, biến dạng và chất lượng thấp
                  prompt: >-
                    Một vị lãnh chúa cao quý bước đi giữa thần dân của mình, sự
                    hiện diện của ngài mang lại cảm giác an tâm và ấm áp. Ngài
                    chào đón họ bằng một nụ cười hiền hòa, hiện thân cho những
                    hy vọng của họ và giành được sự kính trọng qua những tương
                    tác giản dị. Bầu không khí gần gũi và chân thành, làm nổi
                    bật mối gắn kết giữa người lãnh đạo và cộng đồng.
                summary: example
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                x-apidog-orders: []
              examples:
                example:
                  summary: example
                  value:
                    request_id: req_example
                    status: OK
          headers: {}
          x-apidog-name: ''
        '400':
          description: Yêu cầu không hợp lệ hoặc xác thực thất bại
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - message
                      - type
                    properties:
                      message:
                        type: string
                        description: Thông báo lỗi (thường kết thúc bằng mã yêu cầu)
                      type:
                        type: string
                        description: Loại lỗi; các lỗi cổng cục bộ thường là new_api_error
                        examples:
                          - new_api_error
                    x-apifox-orders:
                      - message
                      - type
                    x-apidog-orders:
                      - message
                      - type
                refName: NewApiError
                x-apifox-orders:
                  - error
                x-apidog-orders:
                  - error
              examples:
                example:
                  summary: example
                  value:
                    error:
                      message: >-
                        Yêu cầu không hợp lệ (mã yêu cầu:
                        20260805120000123456789AbCdEfGh)
                      type: new_api_error
          headers: {}
          x-apidog-name: Yêu cầu không hợp lệ hoặc xác thực thất bại
        '401':
          description: Khóa API bị thiếu hoặc không hợp lệ
          content:
            application/json:
              schema:
                type: object
                required:
                  - error
                properties:
                  error:
                    type: object
                    required:
                      - message
                      - type
                    properties:
                      message:
                        type: string
                        description: Thông báo lỗi (thường kết thúc bằng mã yêu cầu)
                      type:
                        type: string
                        description: Loại lỗi; các lỗi cổng cục bộ thường là new_api_error
                        examples:
                          - new_api_error
                    x-apifox-orders:
                      - message
                      - type
                    x-apidog-orders:
                      - message
                      - type
                refName: NewApiError
                x-apifox-orders:
                  - error
                x-apidog-orders:
                  - error
              examples:
                example:
                  summary: example
                  value:
                    error:
                      message: >-
                        Mã thông báo không hợp lệ (request id:
                        20260805120000123456789AbCdEfGh)
                      type: new_api_error
          headers: {}
          x-apidog-name: Khóa API bị thiếu hoặc không hợp lệ
      security: []
      x-apidog-folder: OpenAiHub Việt Nam/OpenAiHub Tiếng Việt/Hình ảnh/Fal.ai
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/1218648/apis/api-45208915-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://api.openaihub.net
    description: Prod Env
security: []

```
