跳至內容

LTX-2.3 22B Distilled · Reference Video to Video · LoRA

整合

模型 id ltx-2.3-22b/distilled/reference-video-to-video/lora
# 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/distilled/reference-video-to-video/lora?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",
    "loras": [
      {
        "path": "https://example.com/your-file.safetensors"
      }
    ]
  }'

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

取得 API 金鑰
Lightricks · 影片

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

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

建立請求

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

•必填

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

•必填 video_url
拖放檔案,或

識別參考影片的 URL。

video_size 預設 auto

生成影片的尺寸。

預設 121

生成輸出的影格數。

預設 24

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

•必填

生成用的 LoRA 選擇。

進階 negative_prompt · audio · image · end_image · scheduler · acceleration · camera_lora · video_output_type · video_quality · video_write_mode · preprocessor · ic_lora_type · camera_lora_scale · distill_lora_second_pass_scale · video_strength · audio_strength · seed · use_multiscale · enable_prompt_expansion · enable_safety_checker
預設 news broadcast, 3d an...

影片生成期間使用的負面提示詞。

audio_url
拖放檔案,或

提供影片音訊軌的選用音訊 URL。省略時,若來源影片含有音訊,則使用來源影片的音訊。

image_url
拖放檔案,或

定義影片起始影格的選用圖像 URL。

end_image_url
拖放檔案,或

定義影片結束影格的圖像 URL。

scheduler 預設 ltx2

排程器選擇。

acceleration 預設 none

套用至處理的加速等級。

camera_lora 預設 none

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

video_output_type 預設 X264 (.mp4)

結果影片的輸出類型。

video_quality 預設 high

結果影片的品質等級。

video_write_mode 預設 balanced

結果影片的寫入模式。

preprocessor 預設 none

生成期間套用的預處理器。

ic_lora_type 預設 union

生成期間套用的 IC LoRA 變體。

預設 1

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

預設 0.5

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

預設 1

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

預設 1

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

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

POST /run/ltx-2.3-22b/distilled/reference-video-to-video/lora?wait=20 報價 → $0.397
# 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/distilled/reference-video-to-video/lora?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",
    "loras": [
      {
        "path": "https://example.com/your-file.safetensors"
      }
    ]
  }'

# 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 Distilled · Reference Video to Video · LoRA

使用參考 `video_url`、`prompt` 和必要的 `loras` 清單。`preprocessor` 支援 深度圖、canny、姿勢 或 none,`ic_lora_type` 可選擇 IC LoRA 模式。`video_strength` 和 `audio_strength` 的範圍為 0 到 1,並可選擇輸入 `audio_url`、`image_url` 和 `end_image_url`。

參數

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

名稱類型 預設值允許值 說明
prompt必填
類型string
作為影片生成基礎的提示詞。
video_url必填 video
類型url · video
識別參考影片的 URL。
audio_url選填 audio
類型url · audio
提供影片音訊軌的選用音訊 URL。省略時,若來源影片含有音訊,則使用來源影片的音訊。
image_url選填 image
類型url · image
定義影片起始影格的選用圖像 URL。
end_image_url選填 end_image
類型url · image
定義影片結束影格的圖像 URL。
match_video_length選填
類型boolean
預設值true
影格數選擇模式:停用時使用 `num_frames`,啟用時使用 FPS 和影片時長計算數量。
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
輸出影片影格率,以每秒影格數表示。
scheduler選填
類型enum
預設值ltx2
ltx2linear_quadraticbeta
排程器選擇。
acceleration選填
類型enum
預設值none
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
結果影片的寫入模式。
loras必填
類型object[]
生成用的 LoRA 選擇。
loras[].path必填
類型string
LoRA 權重位置,以 URL 或 owner/repo 格式的 HuggingFace 儲存庫 ID 提供。
loras[].weight_name選填
類型string | null
用於在 HuggingFace 儲存庫的多個權重中選取權重的 LoRA 權重名稱;只有包含多個權重的儲存庫需要此項。除非 `path` 指向 HuggingFace 儲存庫,否則此設定不會生效。
loras[].scale選填
類型number
預設值1
0 – 4
套用於 LoRA 的縮放係數,範圍為 0.0 至 4.0。
distill_lora_second_pass_scale選填
類型number
預設值0.5
0 – 1
控制第一輪之後每一輪的蒸餾 LoRA 縮放。
video_strength選填
類型number
預設值1
0 – 1
此條件強度控制修改影片內容的自由度:設定值越小,模型可調整的空間越大。
audio_strength選填
類型number
預設值1
0 – 1
此條件強度控制修改音訊內容的自由度:設定值越小,模型可調整的空間越大。
preprocessor選填
類型enum
預設值none
depthcannyposenone
生成期間套用的預處理器。
ic_lora_type選填
類型enum
預設值union
match_preprocessoruniondetailernone
生成期間套用的 IC LoRA 變體。
必填 標準名稱,也可使用

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

輸出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "ltx-2.3-22b/distilled/reference-video-to-video/lora",
  "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": 397,
    "usd": "0.397",
    "charged": 397,
    "refunded": 0
  },
  "input": {
    "loras": [
      {
        "path": "https://example.com/your-file.safetensors"
      }
    ],
    "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": "black-and-white video, a cowboy walks through a dusty town, film grain"
  },
  "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/distilled/reference-video-to-video/lora.md. 所有模型與指南: https://doitong.com/developers/llms.txt