> ## 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。

> [!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 图生视频以一张图片作为首帧生成带同步声音的视频。再加一张图片即可固定尾帧，视频会在两张图片之间过渡。

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/image-to-video** — LTX 2.5 Fast 图生视频，首帧加可选尾帧。

## 功能

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

## 必填参数

* `prompt` (string)：场景、动作、运镜与声音描述，最多 5,000 个字符。
* `image_urls` (string\[])：一到两个公开的 HTTP(S) 图片 URL：先首帧，再可选尾帧。

## 可选参数

* `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`。默认 `auto`。
* `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 视频。

## 示例

* **让图片动起来**：海滩上放风筝的女孩，首尾帧，1080p，8 秒。
* **仅首帧**：仅一张首帧：厨师把冒着热气的面推过柜台，720p，6 秒。

## 注意事项

* `image_urls` 放一到两张图片；第三张图片返回 400。
* `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-image-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。
  version: 1.0.0
servers:
  - url: https://api.vidgo.ai
    description: 生产环境服务器
security:
  - BearerAuth: []
paths:
  /api/generate/submit:
    post:
      tags:
        - LTX 2.5 Fast Image to Video
      summary: 提交 LTX 2.5 Fast 图生视频 任务
      operationId: submitLTX25FastImagetoVideoTask
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SubmitRequest'
            examples:
              animate-image:
                summary: 让图片动起来
                value:
                  model: lightricks/ltx-2.5-fast/image-to-video
                  input:
                    prompt: >-
                      The kite lifts off the beach as the girl runs into the
                      wind, sand blowing past her feet. Audio: surf and gulls.
                    image_urls:
                      - https://example.com/start-frame.png
                      - https://example.com/end-frame.png
                    duration: 8
                    resolution: 1080p
                    fps: 25
                    generate_audio: true
              first-frame-only:
                summary: 仅首帧
                value:
                  model: lightricks/ltx-2.5-fast/image-to-video
                  input:
                    prompt: >-
                      Steam rises from the noodle bowl as the cook slides it
                      across the counter.
                    image_urls:
                      - https://example.com/start-frame.png
                    duration: 6
                    resolution: 720p
      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/image-to-video
        callback_url:
          type: string
          format: uri
          description: 可选的 Webhook URL，用于接收完成或失败通知。
          example: https://your-domain.com/callback
        input:
          type: object
          required:
            - prompt
            - image_urls
          additionalProperties: false
          properties:
            prompt:
              type: string
              minLength: 1
              maxLength: 5000
              description: 描述图片如何运动以及运镜、光线和声音，去除首尾空白后最多 5,000 个字符。
            image_urls:
              type: array
              minItems: 1
              maxItems: 2
              items:
                type: string
                format: uri
                description: 使用公开可访问的 HTTP(S) 下载链接。
              description: 一到两张图片。第一张为首帧；可选的第二张为尾帧，视频从首帧过渡到尾帧。
            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: auto
              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: LTX25TASKEXAMPLE
            status:
              type: string
              example: not_started
            created_time:
              type: string
              format: date-time
              example: '2026-11-25T08:00:00'
    ErrorResponse:
      type: object
      required:
        - detail
      properties:
        detail:
          type: string
          description: 错误信息。参见[错误码](/zh/api-manual/error-codes)。
          example: image_urls must contain 1-2 items
  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.