跳转到内容

LTX-2.3 22B · Image to Video

集成

模型 id ltx-2.3-22b/image-to-video
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/ltx-2.3-22b/image-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

与示例类似的文件: $0.204 204 API 积分 · ≈ ₽21.95 运行前会测量你的文件 在此页面运行

获取 API 密钥
Lightricks · 视频

你的第一个结果将在此显示

在下方构建请求,并使用你的 API 密钥运行。输出会复制到我们的存储中,可永久保存或免费保存 7 天。

构建请求

控件根据模型架构生成。更改控件时,代码和价格会同步更新。

•必填

用于引导生成的提示词。

•必填 image_url
拖放文件,或

用于生成视频的源图像 URL。

video_size 默认 auto

生成视频的尺寸。

默认 121

生成输出的帧数。

高级 negative_prompt · end_image · scheduler · acceleration · camera_lora · video_output_type · video_quality · video_write_mode · interpolation_direction · fps · num_inference_steps · video_cfg_scale · video_stg_scale · video_rescaling_scale · video_modality_scale · audio_cfg_scale · audio_stg_scale · audio_rescaling_scale · audio_modality_scale · gradient_estimation_gamma · camera_lora_scale · distill_lora_first_pass_scale · distill_lora_second_pass_scale · image_strength · end_image_strength · seed · use_multiscale · use_restart_sampling · enable_prompt_expansion · enable_safety_checker
默认 news broadcast, 3d an...

视频生成期间使用的负面提示词。

end_image_url
拖放文件,或

定义视频结束帧的图像 URL。

scheduler 默认 ltx2

调度器选择。

acceleration 默认 regular

应用于处理的加速级别。

camera_lora 默认 none

摄像机 LoRA 选择,用于比单独使用摄像机运动提示词更精确地控制生成视频中的运动。

video_output_type 默认 X264 (.mp4)

结果视频的输出类型。

video_quality 默认 high

结果视频的质量级别。

video_write_mode 默认 balanced

结果视频的写入模式。

interpolation_direction 默认 forward

图像序列的插值方向。'Forward' 从起始图像移动到结束图像;'Backward' 反转该顺序。

默认 24

输出视频帧率,以每秒帧数表示。

默认 40

执行的推理步数。

默认 3

视频引导设置:提高该值可增强生成内容的一致性和聚焦程度。使用 classifier-free guidance (CFG)。

默认 0

通过 Spatiotemporal Guidance (STG) 比例控制视频的一致性和聚焦程度;提高该设置可增强两者。

默认 0.7

视频重缩放调整值,以比例形式平衡 classifier-free guidance 与时空引导。

默认 3

视频模态调整值,以比例形式平衡视频和音频的贡献。

默认 7

音频引导设置:提高该值可增强生成内容的一致性和聚焦程度。使用 classifier-free guidance (CFG)。

默认 0

通过 Spatiotemporal Guidance (STG) 比例控制音频的一致性和聚焦程度;提高该设置可增强两者。

默认 0.7

音频重缩放调整值,以比例形式平衡 classifier-free guidance 与时空引导。

默认 3

音频模态调整值,以比例形式平衡视频和音频的贡献。

默认 2

去噪梯度估计设置:0 会关闭估计;否则,该值指定 gamma。

默认 1

摄像机 LoRA 强度,用于比单独使用摄像机运动提示词更精确地控制生成视频中的运动。

默认 0.2

控制第一轮 distill LoRA 缩放值,设为 0 可关闭。

默认 0.5

控制第一轮之后每一轮的 distill LoRA 缩放值。

默认 1

图像对视频生成的影响强度。

默认 1

控制结束图像对生成视频的影响程度。

用于初始化随机数生成的种子值。

POST /run/ltx-2.3-22b/image-to-video?wait=20 报价 → $0.204
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.ru/v1/run/ltx-2.3-22b/image-to-video?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.ru/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

运行此请求

你的密钥会保留在此浏览器中:仅发送到 Doitong API;只有勾选“记住”后才会保存到 localStorage。 获取 API 密钥

关于 LTX-2.3 22B · Image to Video

需要提供 `prompt` 和 `image_url`,后者用作起始帧。可选的 `end_image_url` 用于固定最终帧。`num_frames` 的范围为 9 到 481,`fps` 的范围为 1 到 60,`video_size` 默认为 auto。支持 `generate_audio`、`camera_lora` 镜头运动,以及输出为 mp4、webm、mov 或 GIF。

参数

发送规范名称或原生名称之一,不要同时发送两者。 规范名称

名称类型 默认值允许值 描述
prompt必填
类型string
用于引导生成的提示词。
image_url必填 image
类型url · image
用于生成视频的源图像 URL。
end_image_url可选 end_image
类型url · image
定义视频结束帧的图像 URL。
num_frames可选
类型integer
默认值121
9 – 481
生成输出的帧数。
video_size可选
类型object
默认值auto
autosquare_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
生成视频的尺寸。
generate_audio可选
类型boolean
默认值true
控制视频是否包含生成的音频。
use_multiscale可选
类型boolean
默认值true
用于提升一致性和细节的多尺度生成开关。为 True 时,较小的初始视频会引导第二次生成,第二次生成的尺寸达到或超过请求尺寸。
fps可选
类型number
默认值24
1 – 60
输出视频帧率,以每秒帧数表示。
num_inference_steps可选
类型integer
默认值40
8 – 50
执行的推理步数。
video_cfg_scale可选
类型number
默认值3
1 – 20
视频引导设置:提高该值可增强生成内容的一致性和聚焦程度。使用 classifier-free guidance (CFG)。
video_stg_scale可选
类型number
默认值0
0 – 20
通过 Spatiotemporal Guidance (STG) 比例控制视频的一致性和聚焦程度;提高该设置可增强两者。
video_rescaling_scale可选
类型number
默认值0.7
0 – 1
视频重缩放调整值,以比例形式平衡 classifier-free guidance 与时空引导。
video_modality_scale可选
类型number
默认值3
0 – 10
视频模态调整值,以比例形式平衡视频和音频的贡献。
audio_cfg_scale可选
类型number
默认值7
1 – 20
音频引导设置:提高该值可增强生成内容的一致性和聚焦程度。使用 classifier-free guidance (CFG)。
audio_stg_scale可选
类型number
默认值0
0 – 20
通过 Spatiotemporal Guidance (STG) 比例控制音频的一致性和聚焦程度;提高该设置可增强两者。
audio_rescaling_scale可选
类型number
默认值0.7
0 – 1
音频重缩放调整值,以比例形式平衡 classifier-free guidance 与时空引导。
audio_modality_scale可选
类型number
默认值3
0 – 10
音频模态调整值,以比例形式平衡视频和音频的贡献。
gradient_estimation_gamma可选
类型number
默认值2
0 – 10
去噪梯度估计设置:0 会关闭估计;否则,该值指定 gamma。
use_restart_sampling可选
类型boolean
默认值false
用于提升视频质量的重启采样开关:启用后会在每个去噪步骤加入少量噪声。
scheduler可选
类型enum
默认值ltx2
ltx2linear_quadraticbeta
调度器选择。
acceleration可选
类型enum
默认值regular
noneregularhighfull
应用于处理的加速级别。
camera_lora可选
类型enum
默认值none
dolly_indolly_outdolly_leftdolly_rightjib_upjib_downstaticnone
摄像机 LoRA 选择,用于比单独使用摄像机运动提示词更精确地控制生成视频中的运动。
camera_lora_scale可选
类型number
默认值1
0 – 1
摄像机 LoRA 强度,用于比单独使用摄像机运动提示词更精确地控制生成视频中的运动。
negative_prompt可选
类型string
默认值news broadcast, 3d animation, computer graphics, pc game, console game, video game, cartoon, childish, watermark, logo, text, on screen text, subtitles, titles, signature, slowmo, static
视频生成期间使用的负面提示词。
seed可选
类型integer | null
用于初始化随机数生成的种子值。
enable_prompt_expansion可选
类型boolean
默认值true
控制是否启用提示词扩展。
enable_safety_checker可选
类型boolean
默认值true
控制是否启用安全检查。
video_output_type可选
类型enum
默认值X264 (.mp4)
X264 (.mp4)VP9 (.webm)PRORES4444 (.mov)GIF (.gif)
结果视频的输出类型。
video_quality可选
类型enum
默认值high
lowmediumhighmaximum
结果视频的质量级别。
video_write_mode可选
类型enum
默认值balanced
fastbalancedsmall
结果视频的写入模式。
distill_lora_first_pass_scale可选
类型number
默认值0.2
0 – 1
控制第一轮 distill LoRA 缩放值,设为 0 可关闭。
distill_lora_second_pass_scale可选
类型number
默认值0.5
0 – 1
控制第一轮之后每一轮的 distill LoRA 缩放值。
interpolation_direction可选
类型enum
默认值forward
forwardbackward
图像序列的插值方向。'Forward' 从起始图像移动到结束图像;'Backward' 反转该顺序。
image_strength可选
类型number
默认值1
0 – 1
图像对视频生成的影响强度。
end_image_strength可选
类型number
默认值1
0 – 1
控制结束图像对生成视频的影响程度。
必填 规范名称,也可接受

文件参数接受公开的 https:// URL、最大 10 MB 的 data: URI,或上传文件的 file_url。 文件

输出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "ltx-2.3-22b/image-to-video",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 204,
    "usd": "0.204",
    "charged": 204,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200,
      "width": 1024,
      "height": 768,
      "fps": 1.0,
      "duration": 5,
      "num_frames": 1
    },
    "seed": 42,
    "prompt": "Continue the scene naturally, maintaining the same style and motion."
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.ru/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
你的文件,由你选择每个 outputs[].url 都是存储中的副本:可永久保存(按 GB-月付费),也可免费保存 7 天,由账户设置或 ?storage= 决定。
每个模型的结构相同图像、视频和音频均包含 type、url、content_type、width、height 和 duration。output 是模型自身的结果对象。
输出字段
video
object {url, content_type, file_name, file_size, width, height, fps, duration, num_frames}模型生成的视频。
seed
integer用于初始化随机数生成的种子值。
prompt
string用于引导生成的提示词。

更多模型:图生视频

对于 AI 代理:此页面的 Markdown 版本位于 https://doitong.com/zh/developers/models/ltx-2.3-22b/image-to-video.md. 所有模型和指南: https://doitong.com/developers/llms.txt