logo
RunComfy
  • ComfyUI
  • 訓練器新
  • 模型
  • API
  • 定價
discord logo
模型
探索
所有模型
資源庫
生成記錄
模型 API
API 文檔
API 金鑰
帳戶
使用情況

LTX-2 19B Video-to-Video LoRA:高保真動作與風格轉換 | RunComfy

ltx/ltx-2-19b/video-to-video/lora

透過 190 億參數 LoRA 影片轉影片模型,將現有素材轉換為動作可控、音畫同步、風格靈活的高保真電影感影片。

目錄

1. 快速開始2. 身分驗證3. API 參考提交請求查詢請求狀態取得請求結果取消請求4. 檔案輸入託管檔案(URL)5. 資料結構輸入結構輸出結構

1. 快速開始

使用 RunComfy 的 API 執行 ltx/ltx-2-19b/video-to-video/lora。 可接受的輸入與輸出請參閱模型的 資料結構說明。

curl --request POST \
  --url https://model-api.runcomfy.net/v1/models/ltx/ltx-2-19b/video-to-video/lora \
  --header "Content-Type: application/json" \
  --header "Authorization: Bearer <token>" \
  --data '{
    "prompt": "black-and-white video, a girl is playing a guitar, film grain",
    "video_url": "https://playgrounds-storage-public.runcomfy.net/tools/7312/media-files/input-1-1.mp4",
    "loras": [
      {
        "path": "Lightricks/LTX-2-19b-IC-LoRA-Detailer",
        "scale": 1
      }
    ]
  }'

2. 身分驗證

將 YOUR_API_TOKEN 環境變數設為您的 API 金鑰(在 個人資料中管理金鑰),並在每個請求的 Authorization 標頭中以 Bearer 權杖形式攜帶: Authorization: Bearer $YOUR_API_TOKEN。

3. API 參考

提交請求

提交非同步生成工作後,將立即取得 request_id 以及用於查詢狀態、取得結果與取消的 URL。

curl --request POST \
  --url https://model-api.runcomfy.net/v1/models/ltx/ltx-2-19b/video-to-video/lora \
  --header "Content-Type: application/json" \
  --header "Authorization: Bearer <token>" \
  --data '{
    "prompt": "black-and-white video, a girl is playing a guitar, film grain",
    "video_url": "https://playgrounds-storage-public.runcomfy.net/tools/7312/media-files/input-1-1.mp4",
    "loras": [
      {
        "path": "Lightricks/LTX-2-19b-IC-LoRA-Detailer",
        "scale": 1
      }
    ]
  }'

查詢請求狀態

依 request_id 取得目前狀態(「in_queue」、「in_progress」、「completed」或「cancelled」)。

curl --request GET \
  --url https://model-api.runcomfy.net/v1/requests/{request_id}/status \
  --header "Authorization: Bearer <token>"

取得請求結果

取得指定 request_id 的最終輸出與中繼資料;若工作尚未完成,回應會回傳目前狀態,方便繼續輪詢。

curl --request GET \
  --url https://model-api.runcomfy.net/v1/requests/{request_id}/result \
  --header "Authorization: Bearer <token>"

取消請求

透過 request_id 取消排隊中的工作;進行中的工作無法取消。

curl --request POST \
  --url https://model-api.runcomfy.net/v1/requests/{request_id}/cancel \
  --header "Authorization: Bearer <token>"

4. 檔案輸入

託管檔案(URL)

請提供可公開存取的 HTTPS 位址。確保目標主機允許伺服器端抓取(無需登入或 Cookie)、未被限流或阻擋機器人。建議:圖片 ≤ 50 MB(約 4K),影片 ≤ 100 MB(約 720p 下 2–5 分鐘)。私人資產請使用穩定或預先簽署 URL。

5. 資料結構

輸入結構

{
  "type": "object",
  "title": "輸入結構",
  "required": [
    "prompt",
    "video_url",
    "loras"
  ],
  "properties": {
    "prompt": {
      "title": "提示詞",
      "description": "",
      "type": "string",
      "default": "black-and-white video, a girl is playing a guitar, film grain"
    },
    "video_url": {
      "title": "影片 URL",
      "description": "用於生成目標影片的來源影片 URL。",
      "type": "string",
      "default": "https://playgrounds-storage-public.runcomfy.net/tools/7312/media-files/input-1-1.mp4"
    },
    "image_url": {
      "title": "圖片",
      "description": "可選圖片 URL,用作生成影片的第一幀。",
      "type": "string"
    },
    "loras": {
      "title": "LoRA 清單",
      "description": "要套用的 LoRA 清單,最多 10 個。",
      "type": "array",
      "default": [
        {
          "path": "Lightricks/LTX-2-19b-IC-LoRA-Detailer",
          "scale": 1
        }
      ],
      "items": {
        "path": {
          "title": "LoRA 路徑",
          "description": "LoRA 權重的 URL 或 Hugging Face 儲存庫 ID(owner/repo)。",
          "type": "string",
          "format": "str",
          "default": ""
        },
        "scale": {
          "title": "LoRA 強度",
          "description": "LoRA 模型的套用強度。",
          "type": "float",
          "format": "float_slider_with_range",
          "minimum": 0,
          "maximum": 4,
          "default": 1
        }
      },
      "maxItems": 10,
      "minItems": 0
    },
    "match_video_length": {
      "title": "匹配來源影片時長",
      "description": "啟用後,根據來源影片時長和 FPS 計算幀數;關閉後使用指定的 num_frames。",
      "type": "boolean",
      "default": true
    },
    "num_frames": {
      "title": "幀數",
      "description": "要生成的影片幀數。",
      "type": "integer",
      "minimum": 9,
      "maximum": 481,
      "default": 121
    },
    "video_size": {
      "title": "影片尺寸",
      "description": "生成影片的畫面尺寸。",
      "type": "string",
      "enum": [
        "auto",
        "square_hd",
        "square",
        "portrait_4_3",
        "portrait_16_9",
        "landscape_4_3",
        "landscape_16_9"
      ],
      "default": "auto"
    },
    "generate_audio": {
      "title": "生成音訊",
      "description": "是否為影片生成音訊。",
      "type": "boolean",
      "default": true
    },
    "use_multiscale": {
      "title": "使用多尺度生成",
      "description": "啟用後,模型會先生成較小尺寸的版本,再於目標尺寸上細化畫面細節。",
      "type": "boolean",
      "default": true
    },
    "match_input_fps": {
      "title": "匹配輸入幀率",
      "description": "啟用後,輸出 FPS 將匹配輸入影片的 FPS,而不是使用預設目標幀率。",
      "type": "boolean",
      "default": true
    },
    "fps": {
      "title": "幀率",
      "description": "生成影片每秒包含的幀數。",
      "type": "float",
      "minimum": 1,
      "maximum": 60,
      "default": 25
    },
    "guidance_scale": {
      "title": "引導係數",
      "description": "生成時使用的提示詞引導強度。",
      "type": "float",
      "minimum": 1,
      "maximum": 10,
      "default": 3
    },
    "num_inference_steps": {
      "title": "推論步數",
      "description": "生成時使用的推論步數。",
      "type": "integer",
      "minimum": 8,
      "maximum": 50,
      "default": 40
    },
    "camera_lora": {
      "title": "相機 LoRA",
      "description": "用於控制鏡頭動作的相機 LoRA。",
      "type": "string",
      "enum": [
        "dolly_in",
        "dolly_out",
        "dolly_left",
        "dolly_right",
        "jib_up",
        "jib_down",
        "static",
        "none"
      ],
      "default": "none"
    },
    "camera_lora_scale": {
      "title": "相機 LoRA 強度",
      "description": "相機 LoRA 控制鏡頭動作時的套用強度。",
      "type": "float",
      "minimum": 0,
      "maximum": 1,
      "default": 1
    },
    "negative_prompt": {
      "title": "負向提示詞",
      "description": "描述希望模型在生成結果中避免的內容或缺陷。",
      "type": "string",
      "default": "blurry, out of focus, overexposed, underexposed, low contrast, washed out colors, excessive noise, grainy texture, poor lighting, flickering, motion blur, distorted proportions, unnatural skin tones, deformed facial features, asymmetrical face, missing facial features, extra limbs, disfigured hands, wrong hand count, artifacts around text, inconsistent perspective, camera shake, incorrect depth of field, background too sharp, background clutter, distracting reflections, harsh shadows, inconsistent lighting direction, color banding, cartoonish rendering, 3D CGI look, unrealistic materials, uncanny valley effect, incorrect ethnicity, wrong gender, exaggerated expressions, wrong gaze direction, mismatched lip sync, silent or muted audio, distorted voice, robotic voice, echo, background noise, off-sync audio,incorrect dialogue, added dialogue, repetitive speech, jittery movement, awkward pauses, incorrect timing, unnatural transitions, inconsistent framing, tilted camera, flat lighting, inconsistent tone, cinematic oversaturation, stylized filters, or AI artifacts."
    },
    "seed": {
      "title": "隨機種子",
      "description": "",
      "type": "integer",
      "default": 0
    },
    "enable_prompt_expansion": {
      "title": "啟用提示詞擴展",
      "description": "是否自動擴展提示詞。",
      "type": "boolean",
      "default": false
    },
    "video_output_type": {
      "title": "影片輸出格式",
      "description": "生成影片的檔案格式。",
      "type": "string",
      "enum": [
        "X264 (.mp4)",
        "VP9 (.webm)",
        "PRORES4444 (.mov)",
        "GIF (.gif)"
      ],
      "default": "X264 (.mp4)"
    },
    "video_quality": {
      "title": "影片品質",
      "description": "生成影片的品質等級。",
      "type": "string",
      "enum": [
        "low",
        "medium",
        "high",
        "maximum"
      ],
      "default": "high"
    },
    "preprocessor": {
      "title": "預處理器",
      "description": "用於處理輸入影片的預處理器。",
      "type": "string",
      "enum": [
        "depth",
        "canny",
        "pose",
        "none"
      ],
      "default": "none"
    },
    "ic_lora": {
      "title": "IC-LoRA",
      "description": "要載入的 IC-LoRA 類型。",
      "type": "string",
      "enum": [
        "match_preprocessor",
        "canny",
        "depth",
        "pose",
        "detailer",
        "none"
      ],
      "default": "match_preprocessor"
    },
    "ic_lora_scale": {
      "title": "IC-LoRA 強度",
      "description": "IC-LoRA 的套用強度。",
      "type": "float",
      "minimum": 0,
      "maximum": 1,
      "default": 1
    },
    "video_strength": {
      "title": "影片參考強度",
      "description": "影片條件控制強度。數值越低,模型改變來源影片內容的自由度越高。",
      "type": "float",
      "minimum": 0,
      "maximum": 1,
      "default": 1
    }
  }
}

輸出結構

{
  "output": {
    "type": "object",
    "properties": {
      "image": {
        "type": "string",
        "format": "uri",
        "description": "單張圖片 URL"
      },
      "video": {
        "type": "string",
        "format": "uri",
        "description": "單一影片 URL"
      },
      "images": {
        "type": "array",
        "description": "多張圖片 URL",
        "items": {
          "type": "string",
          "format": "uri"
        }
      },
      "videos": {
        "type": "array",
        "description": "多個影片 URL",
        "items": {
          "type": "string",
          "format": "uri"
        }
      }
    }
  }
}
關注我們
  • 領英
  • Facebook
  • Instagram
  • Twitter
支持
  • Discord
  • 電子郵件
  • 系統狀態
  • 附屬
視頻模型
  • MiniMax H3 Max
  • MiniMax H3 Max Reference to video
  • MiniMax H3 Max text to video
  • MiniMax H3 Open Reference To Video
  • Wan 3.0 Prime
  • Wan 2.7 Image to Video
  • 查看所有模型 →
影像模型
  • Wan 2.6 Image to Image
  • Flux 2 Flash Edit
  • Nano Banana Pro
  • GPT Image 2 Image Edit
  • Qwen Image 3.0 Edit
  • Qwen Image 3.0 Pro Edit
  • 查看所有模型 →
法律
  • 服務條款
  • 隱私政策
  • Cookie 政策
RunComfy
版權 2026 RunComfy. 保留所有權利。

RunComfy 是首選的 ComfyUI 平台,提供 ComfyUI 在線 環境和服務,以及 ComfyUI 工作流程 具有驚豔的視覺效果。 RunComfy還提供 AI Models, 幫助藝術家利用最新的AI工具創作出令人驚艷的藝術作品。