跳至內容

Ltx 2.3 Quality · Outpaint · LoRA

整合

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

取得 API 金鑰
Lightricks · 影片

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

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

建立請求

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

•必填

引導生成影片外繪區域的文字。

•必填 video_url
拖放檔案,或

其空間邊界將透過外繪延伸的來源影片。

aspect_ratio 預設 16:9

外繪長寬比;例如 4:3 輸入可擴展為 16:9。選擇不同於來源的比例,以乾淨地延伸影格。

output_resolution 預設 720p

輸出解析度級別,預設為平衡的 720p 選項。選擇 480p 可加快生成,或選擇 1080p 取得更大畫布,但必須符合 LTX 限制。

resolution 預設 landscape_16_9

使用舊版設定指定精確畫布尺寸,以維持向後相容性。新的請求應改用 `aspect_ratio` 搭配 `output_resolution`。

預設 121

生成輸出的影格數。

•必填

LTX-2.3 的 LoRA 附加項,每個上限為 3 GB,最多允許 3 個項目。只有在 registry 的 SSRF 安全下載器擷取各路徑後才會載入。

進階 negative_prompt · video_quality · video_write_mode · source_scale · video_strength · frames_per_second · num_inference_steps · guidance_scale · seed · enable_prompt_expansion · enable_safety_checker
預設 color distortion, ove...

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

video_quality 預設 high

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

video_write_mode 預設 balanced

結果影片的寫入模式。

預設 1

外擴前來源影片在目標畫布中的縮放比例;降低此值會產生縮小邊界,並使結果較不穩定。若要真正擴展長寬比,例如從 4:3 到 16:9,建議使用 1.0,讓來源以畫布可容納的最大尺寸置入。

預設 1

透過 IC-LoRA 影片引導控制原始影片在外擴畫布中的保留程度;提高強度可更完整地保留來源內容。

預設 24

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

預設 15

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

預設 1

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

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

POST /run/ltx-2.3-quality/outpaint/lora?wait=20 報價 → $0.304
# 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/outpaint/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 Quality · Outpaint · LoRA

將影片延展至更大的畫布,並需要最多包含 3 個自訂 LoRA 的 `loras` 清單(每個 3 GB)。設定 `aspect_ratio`(21:9 至 9:21)與 `output_resolution`(480p、720p 或 1080p),並提供用於新增區域的 `prompt`。`source_scale` 範圍為 0.25 至 1,`video_strength` 會保留原始內容。

參數

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

名稱類型 預設值允許值 說明
prompt必填
類型string
引導生成影片外繪區域的文字。
video_url必填 video
類型url · video
其空間邊界將透過外繪延伸的來源影片。
aspect_ratio選填
類型enum
預設值16:9
21:916:94:31:13:49:169:21
外繪長寬比;例如 4:3 輸入可擴展為 16:9。選擇不同於來源的比例,以乾淨地延伸影格。
output_resolution選填
類型enum
預設值720p
480p720p1080p
輸出解析度級別,預設為平衡的 720p 選項。選擇 480p 可加快生成,或選擇 1080p 取得更大畫布,但必須符合 LTX 限制。
resolution選填
類型object
預設值landscape_16_9
autosquare_hdsquareportrait_4_3portrait_16_9landscape_4_3landscape_16_9
使用舊版設定指定精確畫布尺寸,以維持向後相容性。新的請求應改用 `aspect_ratio` 搭配 `output_resolution`。
source_scale選填
類型number
預設值1
0.25 – 1
外擴前來源影片在目標畫布中的縮放比例;降低此值會產生縮小邊界,並使結果較不穩定。若要真正擴展長寬比,例如從 4:3 到 16:9,建議使用 1.0,讓來源以畫布可容納的最大尺寸置入。
video_strength選填
類型number
預設值1
0 – 1
透過 IC-LoRA 影片引導控制原始影片在外擴畫布中的保留程度;提高強度可更完整地保留來源內容。
num_frames選填
類型integer
預設值121
9 – 481
生成輸出的影格數。
frames_per_second選填
類型number
預設值24
1 – 60
輸出影片影格率,以每秒影格數表示。
num_inference_steps選填
類型integer
預設值15
8 – 30
設定要執行的推論步驟數,最多 30;維持不變時使用 15。
guidance_scale選填
類型number
預設值1
1 – 20
使用此尺度調整無分類器引導;預設調校同時以高品質和快速生成為目標。
generate_audio選填
類型boolean
預設值true
返回 MP4 的音訊軌切換:關閉會產生僅含影片的檔案,開啟則包含音訊。
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
結果影片的寫入模式。
loras必填
類型object[]
≤ 3 個項目
LTX-2.3 的 LoRA 附加項,每個上限為 3 GB,最多允許 3 個項目。只有在 registry 的 SSRF 安全下載器擷取各路徑後才會載入。
loras[].path必填
類型string
≤ 2048 characters
不超過 3 GB 的 LoRA .safetensors 檔案直接 HTTP(S) URL。載入前會使用 SSRF 安全下載器擷取。
loras[].scale選填
類型number
預設值1
0 – 2
在 0.0–2.0 範圍內,此強度越高,LoRA 對生成影片的影響越大。
loras[].transformer選填
類型enum
預設值both
highlowboth
Transformer 選擇旗標:使用 LTX-2.3 的幾乎所有情況都適合 'both',因為模型只有一個 transformer。此旗標用於支援未來包含多個 transformer 的架構。
必填 標準名稱,也可使用

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

輸出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "ltx-2.3-quality/outpaint/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": 304,
    "usd": "0.304",
    "charged": 304,
    "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
    },
    "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/outpaint/lora.md. 所有模型與指南: https://doitong.com/developers/llms.txt