跳至內容

Ltx 2.3 Quality · Decompression

整合

模型 id ltx-2.3-quality/decompression
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/ltx-2.3-quality/decompression?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

像範例一樣的檔案: $0.27 270 API 點數 您的檔案會在執行前計量 在此頁面執行

取得 API 金鑰
Lightricks · 影片

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

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

建立請求

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

預設

可選的簡短場景或內容描述;空白時會取代所使用的通用描述。為提升結果,提供的文字會加入效果訓練所用的說明文字。

•必填 video_url
拖放檔案,或

識別來源影片的 URL,用於轉換。

resolution 預設 720p

在保留來源長寬比的情況下選擇短邊解析度:480p 會為最長約 15 秒的片段提供較柔和的結果,720p 則會為最長約 6 秒的片段提供更清晰的結果。較長片段請選擇 480p,因為 IC-LoRA 控制路徑限制解析度乘以影格數;超出該預算的請求會因明確錯誤而遭拒。輸出時長計算方式為 `num_frames` / `frames_per_second`。

預設 121

輸出影格數,受 IC-LoRA 的解析度乘以影格數預算限制:約為 720p 下 6 秒或 480p 下 15 秒。超出預算會返回 422;請降低 `num_frames` 或選擇 480p。片段時長(秒)等於 `num_frames` / `frames_per_second`。

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

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

video_quality 預設 high

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

video_write_mode 預設 balanced

結果影片的寫入模式。

預設 24

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

預設 15

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

預設 1

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

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

POST /run/ltx-2.3-quality/decompression?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.com/v1/run/ltx-2.3-quality/decompression?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "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.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

執行此請求

您的金鑰會保留在此瀏覽器中:只會傳送至 Doitong API,且只有在勾選「記住」時才會儲存至 localStorage。 取得 API 金鑰

關於 Ltx 2.3 Quality · Decompression

處理來自 `video_url`、含有大量壓縮瑕疵的影片,產生更乾淨的版本。如需引導結果,可加入描述場景的簡短 `prompt`。選擇 480p 或 720p 輸出;720p 約可容納 6 秒,480p 約 15 秒。`num_frames` 可接受 9 到 481,`generate_audio` 控制結果是否保留音訊軌。

參數

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

名稱類型 預設值允許值 說明
video_url必填 video
類型url · video
識別來源影片的 URL,用於轉換。
prompt選填
類型string
預設值
可選的簡短場景或內容描述;空白時會取代所使用的通用描述。為提升結果,提供的文字會加入效果訓練所用的說明文字。
resolution選填
類型enum
預設值720p
480p720p
在保留來源長寬比的情況下選擇短邊解析度:480p 會為最長約 15 秒的片段提供較柔和的結果,720p 則會為最長約 6 秒的片段提供更清晰的結果。較長片段請選擇 480p,因為 IC-LoRA 控制路徑限制解析度乘以影格數;超出該預算的請求會因明確錯誤而遭拒。輸出時長計算方式為 `num_frames` / `frames_per_second`。
num_frames選填
類型integer
預設值121
9 – 481
輸出影格數,受 IC-LoRA 的解析度乘以影格數預算限制:約為 720p 下 6 秒或 480p 下 15 秒。超出預算會返回 422;請降低 `num_frames` 或選擇 480p。片段時長(秒)等於 `num_frames` / `frames_per_second`。
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_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/decompression",
  "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": {
    "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.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/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/decompression.md. 所有模型與指南: https://doitong.com/developers/llms.txt