跳至內容

LTX-2.3 22B · Extend Video

整合

模型 id ltx-2.3-22b/extend-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/extend-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",
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  }'

# 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.18 180 API 點數 · ≈ ₽19.36 您的檔案會在執行前計量 在此頁面執行

取得 API 金鑰
Lightricks · 影片

您的第一個結果會顯示在這裡

在下方建立請求,並使用您的 API 金鑰執行。輸出會複製到我們的儲存空間,可永久保留或免費保留 7 天。

建立請求

控制項是根據模型結構描述生成的。變更設定時,程式碼和價格會同步更新。

•必填

作為影片生成基礎的提示詞。

•必填 video_url
拖放檔案,或

指向要延長之影片的 URL。

video_size 預設 auto

生成影片的尺寸。

預設 121

生成輸出的影格數。

進階 negative_prompt · end_image · scheduler · acceleration · camera_lora · video_output_type · video_quality · video_write_mode · extend_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 · num_context_frames · video_strength · audio_strength · end_image_strength · seed · use_multiscale · match_input_fps · 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

結果影片的寫入模式。

extend_direction 預設 forward

要延長的影片側:選擇 'backward' 在開頭前加入內容,或選擇 'forward' 在結尾後加入內容。

預設 24

輸出影片影格率,以每秒影格數表示。

預設 40

執行的推論步驟數。

預設 3

影片引導設定:提高此值可讓生成內容更一致、更聚焦。使用無分類器引導(CFG)。

預設 0

透過時空引導(STG)尺度控制影片的一致性與焦點;提高設定值可增強兩者。

預設 0.7

影片重新縮放調整,以比例平衡無分類器引導與時空引導。

預設 3

影片模態調整,以比例平衡影片與音訊的貢獻。

預設 7

音訊引導設定:提高此值可讓生成內容更一致、更聚焦。使用無分類器引導(CFG)。

預設 0

透過時空引導(STG)尺度控制音訊的一致性與焦點;提高設定值可增強兩者。

預設 0.7

音訊重新縮放調整,以比例平衡無分類器引導與時空引導。

預設 3

音訊模態調整,以比例平衡影片與音訊的貢獻。

預設 2

去噪梯度估算設定:0 會關閉估算;其他值指定 gamma。

預設 1

攝影機 LoRA 強度,比單獨使用攝影機動作提示詞更精確地控制生成影片中的移動。

預設 0.2

控制第一輪蒸餾 LoRA 縮放,設為 0 可關閉。

預設 0.5

控制第一輪之後每一輪的蒸餾 LoRA 縮放。

預設 25

延長影片時用於提供上下文的影格數。

預設 1

此條件強度控制修改影片內容的自由度:設定值越小,模型可調整的空間越大。

預設 1

此條件強度控制修改音訊內容的自由度:設定值越小,模型可調整的空間越大。

預設 1

控制結束圖像對生成影片的影響程度。

初始化亂數生成的種子值。

POST /run/ltx-2.3-22b/extend-video?wait=20 報價 → $0.18
# 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/extend-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",
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  }'

# 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 · Extend Video

接收 `video_url` 和 `prompt`,生成 `num_frames` 個影格的延續內容(9 到 481)。可選的 `end_image_url` 會設定延伸結束的位置。`match_input_fps` 會保留來源影格率,`generate_audio` 會加入聲音,`video_size` 預設為 auto。輸出可以是 mp4、webm、mov 或 GIF。

參數

請傳送標準名稱或原生名稱其中之一,不要同時傳送兩者。 標準名稱

名稱類型 預設值允許值 說明
prompt必填
類型string
作為影片生成基礎的提示詞。
video_url必填 video
類型url · video
指向要延長之影片的 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 時,較小的初步影片會引導第二次生成,其尺寸會達到或超過要求的尺寸。
match_input_fps選填
類型boolean
預設值true
輸出影格率覆寫;啟用時以來源影片的 FPS 取代預設目標 FPS。
fps選填
類型number
預設值24
1 – 60
輸出影片影格率,以每秒影格數表示。
num_inference_steps選填
類型integer
預設值40
8 – 50
執行的推論步驟數。
video_cfg_scale選填
類型number
預設值3
1 – 20
影片引導設定:提高此值可讓生成內容更一致、更聚焦。使用無分類器引導(CFG)。
video_stg_scale選填
類型number
預設值0
0 – 20
透過時空引導(STG)尺度控制影片的一致性與焦點;提高設定值可增強兩者。
video_rescaling_scale選填
類型number
預設值0.7
0 – 1
影片重新縮放調整,以比例平衡無分類器引導與時空引導。
video_modality_scale選填
類型number
預設值3
0 – 10
影片模態調整,以比例平衡影片與音訊的貢獻。
audio_cfg_scale選填
類型number
預設值7
1 – 20
音訊引導設定:提高此值可讓生成內容更一致、更聚焦。使用無分類器引導(CFG)。
audio_stg_scale選填
類型number
預設值0
0 – 20
透過時空引導(STG)尺度控制音訊的一致性與焦點;提高設定值可增強兩者。
audio_rescaling_scale選填
類型number
預設值0.7
0 – 1
音訊重新縮放調整,以比例平衡無分類器引導與時空引導。
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
控制第一輪蒸餾 LoRA 縮放,設為 0 可關閉。
distill_lora_second_pass_scale選填
類型number
預設值0.5
0 – 1
控制第一輪之後每一輪的蒸餾 LoRA 縮放。
extend_direction選填
類型enum
預設值forward
forwardbackward
要延長的影片側:選擇 'backward' 在開頭前加入內容,或選擇 'forward' 在結尾後加入內容。
num_context_frames選填
類型integer
預設值25
0 – 121
延長影片時用於提供上下文的影格數。
video_strength選填
類型number
預設值1
0 – 1
此條件強度控制修改影片內容的自由度:設定值越小,模型可調整的空間越大。
audio_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/extend-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": 180,
    "usd": "0.18",
    "charged": 180,
    "refunded": 0
  },
  "input": {
    "prompt": "A red fox trots through fresh snow at sunrise, soft golden light, shallow depth of field",
    "video_url": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4"
  },
  "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": "A woman stands still amid a busy neon-lit street at night. The camera slowly dollies in toward her face as people blur past, their motion emphasizing her calm presence. City lights flicker and reflections shift across her denim jacket."
  },
  "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-TW/developers/models/ltx-2.3-22b/extend-video.md. 所有模型與指南: https://doitong.com/developers/llms.txt