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

# Kling 2.6 · 文生视频

> API 2.0 · 模型版本位于请求路径，使用 Kapon Token

本页使用新版请求。字段组合与模型限制见 [API 2.0 说明](/kling/api2-kling3)，创建后用返回的 `data.id` [查询任务](/kling/api2/tasks-query)。


## OpenAPI

````yaml POST /kling/text-to-video/kling-2.6
openapi: 3.0.3
info:
  title: Kling API
  version: '2026-09-07'
  description: API 2.0 与 Legacy 分开定义；请求使用 Kapon Token。
servers:
  - url: https://models.kapon.cloud
security:
  - BearerAuth: []
paths:
  /kling/text-to-video/kling-2.6:
    post:
      tags:
        - Kling API 2.0
      summary: kling-2.6 text-to-video
      description: >-
        新版文生视频，模型版本位于路径；各模型按 duration × 对应官方 Units/秒结算，失败不扣费。 创建响应保留 data.id，并追加
        data.platform_id（video_<ULID>），来源为已保存的本地任务。
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                options:
                  $ref: '#/components/schemas/router.swaggerKlingAPI2Options'
                prompt:
                  type: string
                  example: A train crossing a snowy valley
                settings:
                  type: object
                  properties:
                    aspect_ratio:
                      type: string
                      example: '16:9'
                      enum:
                        - '16:9'
                        - '9:16'
                        - '1:1'
                      default: '16:9'
                    audio:
                      type: string
                      example: 'off'
                      enum:
                        - native
                        - 'off'
                      default: 'off'
                    duration:
                      type: integer
                      example: 5
                      enum:
                        - 5
                        - 10
                      default: 5
                    resolution:
                      type: string
                      example: 720p
                      enum:
                        - 720p
                        - 1080p
                      default: 720p
              required:
                - prompt
            example:
              settings:
                resolution: 720p
                duration: 5
              prompt: A train crossing a snowy valley at sunrise
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/router.swaggerKlingAPI2CreateResponse'
              example:
                code: 0
                message: success
                request_id: request-id
                data:
                  id: upstream-task-id
                  status: submitted
                  create_time: 1781080778802
                  update_time: 1781080778802
      security:
        - BearerAuth: []
components:
  schemas:
    router.swaggerKlingAPI2Options:
      type: object
      properties:
        callback_url:
          type: string
        external_task_id:
          type: string
        watermark_info:
          $ref: '#/components/schemas/kling.OfficialWatermarkInfo'
    router.swaggerKlingAPI2CreateResponse:
      type: object
      properties:
        code:
          type: integer
        data:
          $ref: '#/components/schemas/kling.KlingAPI2Task'
        message:
          type: string
        request_id:
          type: string
    kling.OfficialWatermarkInfo:
      type: object
      properties:
        enabled:
          description: 是否生成含水印结果
          type: boolean
    kling.KlingAPI2Task:
      type: object
      properties:
        billing:
          type: array
          items:
            type: object
        create_time:
          type: integer
        external_id:
          type: string
        id:
          type: string
        message:
          type: string
        outputs:
          type: array
          items:
            $ref: '#/components/schemas/kling.KlingAPI2Output'
        platform_id:
          description: OneHub 平台任务 ID（video_<ULID>），来自本地任务。
          type: string
        status:
          type: string
          enum:
            - submitted
            - processing
            - succeeded
            - failed
        update_time:
          type: integer
    kling.KlingAPI2Output:
      type: object
      properties:
        duration:
          type: string
        id:
          type: string
        type:
          type: string
        url:
          type: string
        watermark_url:
          type: string
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````