跳至內容

Ltx 2.3 Quality · Extend Video

整合

模型 id ltx-2.3-quality/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-quality/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.27 270 API 點數 · ≈ ₽29.05 您的檔案會在執行前計量 在此頁面執行

取得 API 金鑰
Lightricks · 影片

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

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

建立請求

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

•必填

指定影片所需延續內容的提示詞。

•必填 video_url
拖放檔案,或

指向要延長之影片的 URL。

resolution 預設 auto

生成影片尺寸,對齊至 32px 增量;例如 1920x1080 會變為 1888x1056,來源會調整至此尺寸以產生拼接輸出。較低解析度可支援較長的穩定延長,高解析度則較短。選擇 'auto' 會在 LTX 限制允許的範圍內保留來源尺寸和長寬比。

預設 121

延長影格數,受解析度乘以影格數的穩定生成預算限制:24 fps 下,480p 級約 20 秒、720p 級約 11 秒、1080p 級約 5 秒。超出預算的請求會返回 422;請降低 `num_frames` 或選擇較小解析度。數量包含與來源重疊的 `num_context_frames`,因此增加的時長約為 (`num_frames` - `num_context_frames`) / `frames_per_second` 秒。

進階 negative_prompt · end_image · extend_direction · video_quality · video_write_mode · num_context_frames · end_image_strength · frames_per_second · video_strength · num_inference_steps · guidance_scale · seed · match_input_fps · enable_prompt_expansion · enable_safety_checker
預設 color distortion, ove...

指定生成應避免內容的負面提示詞。

end_image_url
拖放檔案,或

選用的關鍵影格圖像;向後延長時設定新的第一影格,向前延長時設定最後影格。

extend_direction 預設 forward

影片延長模式:'backward' 建立新的開頭,'forward' 則在影片結尾後延續。

video_quality 預設 high

套用至輸出影片的品質預設。

video_write_mode 預設 balanced

結果影片的寫入模式。

預設 25

要求用於延長上下文/重疊的來源影格數,受來源包含的影格數限制。數量會向下取整,以符合 LTX 的 8k+1 網格。

預設 1

選用的結束關鍵影格條件強度:降低可給模型更多自由,1.0 則強制精確匹配。

預設 24

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

預設 1

來源上下文條件強度:降低可提供模型更多自由。設定為 1.0 時,重疊影格會鎖定至來源,使轉場無縫。

預設 15

設定要執行的推論步驟數,最多 30;維持不變時使用 15。

預設 1

使用此尺度調整無分類器引導;預設調校同時以高品質和快速生成為目標。

使生成結果可重現的種子。設為 None 會隨機選擇種子。

POST /run/ltx-2.3-quality/extend-video?wait=20 報價 → $0.27
# 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-quality/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 Quality · Extend Video

延長現有片段,根據必要的 `prompt` 生成新畫面。`extend_direction` 設為 `forward` 會從結尾繼續,設為 `backward` 則會建立新的開頭。`num_context_frames`(9 至 121)設定來源重疊的部分,`num_frames`(9 至 481)設定片段長度。可選的 `end_image_url` 會固定最後一個關鍵影格,而 `match_input_fps` 會維持來源影格率。

參數

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

名稱類型 預設值允許值 說明
prompt必填
類型string
指定影片所需延續內容的提示詞。
video_url必填 video
類型url · video
指向要延長之影片的 URL。
extend_direction選填
類型enum
預設值forward
forwardbackward
影片延長模式:'backward' 建立新的開頭,'forward' 則在影片結尾後延續。
num_frames選填
類型integer
預設值121
9 – 481
延長影格數,受解析度乘以影格數的穩定生成預算限制:24 fps 下,480p 級約 20 秒、720p 級約 11 秒、1080p 級約 5 秒。超出預算的請求會返回 422;請降低 `num_frames` 或選擇較小解析度。數量包含與來源重疊的 `num_context_frames`,因此增加的時長約為 (`num_frames` - `num_context_frames`) / `frames_per_second` 秒。
num_context_frames選填
類型integer
預設值25
9 – 121
要求用於延長上下文/重疊的來源影格數,受來源包含的影格數限制。數量會向下取整,以符合 LTX 的 8k+1 網格。
end_image_url選填 end_image
類型url · image
選用的關鍵影格圖像;向後延長時設定新的第一影格,向前延長時設定最後影格。
end_image_strength選填
類型number
預設值1
0 – 1
選用的結束關鍵影格條件強度:降低可給模型更多自由,1.0 則強制精確匹配。
resolution選填
類型object
預設值auto
autosquare_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
生成影片尺寸,對齊至 32px 增量;例如 1920x1080 會變為 1888x1056,來源會調整至此尺寸以產生拼接輸出。較低解析度可支援較長的穩定延長,高解析度則較短。選擇 'auto' 會在 LTX 限制允許的範圍內保留來源尺寸和長寬比。
match_input_fps選填
類型boolean
預設值true
啟用時使輸出影格率匹配來源,覆寫 `frames_per_second`。來源 FPS 會四捨五入為整數,並限制在支援範圍內。
frames_per_second選填
類型number
預設值24
1 – 60
輸出影片影格率,以每秒影格數表示。
video_strength選填
類型number
預設值1
0 – 1
來源上下文條件強度:降低可提供模型更多自由。設定為 1.0 時,重疊影格會鎖定至來源,使轉場無縫。
num_inference_steps選填
類型integer
預設值15
8 – 30
設定要執行的推論步驟數,最多 30;維持不變時使用 15。
guidance_scale選填
類型number
預設值1
1 – 20
使用此尺度調整無分類器引導;預設調校同時以高品質和快速生成為目標。
generate_audio選填
類型boolean
預設值true
延長音訊切換:關閉時新增片段保持靜音,但保留來源影片的音訊軌;開啟時為延長部分生成音訊,並在接合處與來源音訊交叉淡化。
negative_prompt選填
類型string
預設值color distortion, overexposure, static, blurry details, subtitles, style, artwork, painting, frame, still, dim overall tone, worst quality, low quality, JPEG compression artifacts, ugly, mutilated, extra fingers, poorly drawn hands, poorly drawn face, deformed, disfigured, malformed limbs, fused fingers, motionless frame, cluttered background, three legs, crowded background, walking backwards
指定生成應避免內容的負面提示詞。
seed選填
類型integer | null
使生成結果可重現的種子。設為 None 會隨機選擇種子。
enable_prompt_expansion選填
類型boolean
預設值true
控制是否啟用提示詞擴展。
enable_safety_checker選填
類型boolean
預設值true
控制是否啟用安全性檢查。
video_quality選填
類型enum
預設值high
lowmediumhighmaximum
套用至輸出影片的品質預設。
video_write_mode選填
類型enum
預設值balanced
fastbalancedsmall
結果影片的寫入模式。
必填 標準名稱,也可使用

檔案參數接受公開的 https:// URL、最大 10 MB 的 data: URI,或上傳檔案的 file_url。 檔案

輸出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "ltx-2.3-quality/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": 270,
    "usd": "0.27",
    "charged": 270,
    "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
    },
    "seed": 42,
    "prompt": "string"
  },
  "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}模型產生的影片。
seed
integer生成期間實際套用的種子。
prompt
string生成提示詞,包括使用前套用的任何擴寫內容。

更多模型:影片轉影片

給 AI 代理程式:此頁面的 Markdown 位於 https://doitong.com/zh-TW/developers/models/ltx-2.3-quality/extend-video.md. 所有模型與指南: https://doitong.com/developers/llms.txt