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

# LTX 2.5 Fast 文生视频

> LTX 2.5 Fast 文生视频 API 根据提示词生成 6–20 秒、带同步音频的视频，支持 720p 至 4K 和 24–50 fps。

> [!TIP]
>
> 1. 提交后会返回 `task_id`。如果提供了 `callback_url`，当任务状态变为 `finished` 或 `failed` 时，系统会向 `callback_url` 发送 POST 请求。
> 2. 无论是否提供 `callback_url`，都可以通过统一的[查询任务状态](https://docs.vidgo.ai/zh/api-manual/task-management/status.md)接口获取结果。

LTX 2.5 Fast 文生视频根据文本提示词生成视频，并在同一次生成中配上声音。720p 或 1080p 下可选 6–20 秒，1440p、4K、48 fps 或 50 fps 下最长 10 秒。

LTX 2.5 Fast 是 Lightricks LTX-2.5 视频模型的速度与低成本版本。Vidgo 提供三个模型 ID：[文生视频](https://docs.vidgo.ai/zh/api-manual/video-series/lightricks-ltx-2-5-fast-text-to-video.md)、[图生视频](https://docs.vidgo.ai/zh/api-manual/video-series/lightricks-ltx-2-5-fast-image-to-video.md)和[音频生视频](https://docs.vidgo.ai/zh/api-manual/video-series/lightricks-ltx-2-5-fast-audio-to-video.md)。另一档为 [LTX 2.5 Pro](https://docs.vidgo.ai/zh/api-manual/video-series/lightricks-ltx-2-5-pro-text-to-video.md)。

## 模型

* **lightricks/ltx-2.5-fast/text-to-video** — LTX 2.5 Fast 文生视频，6–20 秒，带音频。

## 功能

* 画面与同步音频一次生成（`generate_audio`，默认开启）。
* 分辨率 `720p`, `1080p`, `1440p`, `4k`；帧率 `24`, `25`, `48`, `50` fps。
* 时长 `6`, `8`, `10`, `12`, `14`, `16`, `18`, `20` 秒。
* 8 种 `camera_motion` 运镜预设。

## 必填参数

* `prompt` (string)：场景、动作、运镜与声音描述，最多 5,000 个字符。

## 可选参数

* `duration` (integer)：`6`, `8`, `10`, `12`, `14`, `16`, `18`, `20` 秒。默认 `6`。`1440p`、`4k`、`48` fps 或 `50` fps 时最长 `10`。
* `resolution` (string)：`720p`, `1080p`, `1440p`, `4k`。默认 `1080p`。
* `aspect_ratio` (string)：`auto`、`16:9` 或 `9:16`。默认 `16:9`。
* `fps` (integer)：`24`, `25`, `48`, `50`。默认 `25`。
* `generate_audio` (boolean)：生成同步音频。默认 `true`。
* `camera_motion` (string)：`dolly_in`, `dolly_out`, `dolly_left`, `dolly_right`, `jib_up`, `jib_down`, `static`, `focus_shift`。省略时由模型自行决定。

## 输出

任务完成后，[查询任务状态](https://docs.vidgo.ai/zh/api-manual/task-management/status.md)接口和回调内容的 `files` 数组中返回一个 MP4 视频。

## 示例

* **草原上的马头琴**：黄昏时分，一位老牧民拉着马头琴，马群在身后吃草，镜头缓慢推近，琴声与风声作为音频同步生成，720p，6 秒 ([结果](https://cdn.vidgo.ai/apis/models/lightricks/ltx-2.5-fast/text-to-video/v1/01/output.mp4))。
* **竖屏 4K 视频**：里斯本雨后水沟里漂流的纸船，9:16、4K、50 fps，10 秒。

## 注意事项

* `1440p`、`4k`、`48` fps 或 `50` fps 下 `duration` 超过 `10` 返回 400。
* `model` 和 `callback_url` 放在请求根级，与 `input` 并列。`input` 接收上文列出的字段，其他字段返回 400。
* 积分在提交时预扣，按输出时长和分辨率计费。任务失败全额退还。当前费率见[定价页](https://vidgo.ai/apis/api-pricing)。


## OpenAPI

````yaml zh/api-manual/video-series/lightricks-ltx-2-5-fast-text-to-video.json POST /api/generate/submit
openapi: 3.0.0
info:
  title: Vidgo API - LTX 2.5 Fast 文生视频
  description: LTX 2.5 Fast 文生视频 API 根据提示词生成 6–20 秒、带同步音频的视频，支持 720p 至 4K 和 24–50 fps。
  version: 1.0.0
servers:
  - url: https://api.vidgo.ai
    description: 生产环境服务器
security:
  - BearerAuth: []
paths:
  /api/generate/submit:
    post:
      tags:
        - LTX 2.5 Fast Text to Video
      summary: 提交 LTX 2.5 Fast 文生视频 任务
      operationId: submitLTX25FastTexttoVideoTask
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitRequest'
            examples:
              text-prompt:
                summary: 带运镜的文本提示词
                value:
                  model: lightricks/ltx-2.5-fast/text-to-video
                  input:
                    prompt: >-
                      Golden hour on the open Mongolian steppe. An elderly
                      herder in a deep blue deel and fur-trimmed hat sits on a
                      low wooden stool beside a white ger, drawing a bow across
                      a horse-head fiddle (morin khuur). His weathered fingers
                      press the strings while the wind ripples the long grass
                      and lifts the silk tassel on the fiddle's scroll. Behind
                      him, two chestnut horses graze and one lifts its head
                      toward the music. Slow cinematic push-in from a medium
                      shot to a close-up of his hands and face, warm low sun,
                      long soft shadows. Audio: a slow, resonant morin khuur
                      melody, steady steppe wind, a horse's soft snort. No text,
                      no logos.
                    duration: 6
                    resolution: 720p
                    aspect_ratio: '16:9'
                    fps: 25
                    generate_audio: true
                    camera_motion: dolly_in
              vertical-4k:
                summary: 竖屏 4K 视频
                value:
                  model: lightricks/ltx-2.5-fast/text-to-video
                  input:
                    prompt: >-
                      A paper boat drifts down a rain-filled gutter on a quiet
                      Lisbon street. Audio: rain, distant tram bell.
                    duration: 10
                    resolution: 4k
                    aspect_ratio: '9:16'
                    fps: 50
                    generate_audio: true
      responses:
        '200':
          description: 任务提交结果。任务 ID 标识一项异步任务；生成可能仍在进行中。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubmitResponse'
        '400':
          description: 请求参数无效
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: 未授权
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    SubmitRequest:
      type: object
      required:
        - model
        - input
      additionalProperties: false
      properties:
        model:
          type: string
          example: lightricks/ltx-2.5-fast/text-to-video
        callback_url:
          type: string
          format: uri
          description: 可选的 Webhook URL，用于接收完成或失败通知。
          example: https://your-domain.com/callback
        input:
          type: object
          required:
            - prompt
          additionalProperties: false
          properties:
            prompt:
              type: string
              minLength: 1
              maxLength: 5000
              description: 描述动作、运镜、光线与声音，去除首尾空白后最多 5,000 个字符。
            duration:
              type: integer
              enum:
                - 6
                - 8
                - 10
                - 12
                - 14
                - 16
                - 18
                - 20
              default: 6
              description: 输出时长（秒）。`1440p`、`4k`、`48` fps 或 `50` fps 时最长 `10`。
            resolution:
              type: string
              enum:
                - 720p
                - 1080p
                - 1440p
                - 4k
              default: 1080p
              description: 输出分辨率。
            aspect_ratio:
              type: string
              enum:
                - auto
                - '16:9'
                - '9:16'
              default: '16:9'
              description: 输出宽高比。
            fps:
              type: integer
              enum:
                - 24
                - 25
                - 48
                - 50
              default: 25
              description: 帧率（每秒帧数）。
            generate_audio:
              type: boolean
              default: true
              description: 生成与画面匹配的同步音频。设为 `false` 输出静音视频。
            camera_motion:
              type: string
              enum:
                - dolly_in
                - dolly_out
                - dolly_left
                - dolly_right
                - jib_up
                - jib_down
                - static
                - focus_shift
              description: 可选的运镜预设。省略时由模型自行决定镜头运动。
    SubmitResponse:
      type: object
      required:
        - code
        - data
      properties:
        code:
          type: integer
          example: 200
        data:
          type: object
          required:
            - task_id
            - status
            - created_time
          properties:
            task_id:
              type: string
              example: 08Y8E2JUSWBEBIG6
            status:
              type: string
              example: not_started
            created_time:
              type: string
              format: date-time
              example: '2026-11-25T17:05:24'
    ErrorResponse:
      type: object
      required:
        - detail
      properties:
        detail:
          type: string
          description: 错误信息。参见[错误码](/zh/api-manual/error-codes)。
          example: prompt is required
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: '使用 `Authorization: Bearer VIDGO_API_KEY`。'

````

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