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
}
]
}'環境変数 YOUR_API_TOKEN に API キーを設定してください( プロフィールでキー管理)。すべてのリクエストの Authorization ヘッダーに Bearer トークンとして付与: Authorization: Bearer $YOUR_API_TOKEN。
非同期の生成ジョブを送信すると、すぐに 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>"公開到達可能な HTTPS URL を指定してください。サーバー側からの取得が可能で、ログイン不要であること、レート制限やボット遮断がないことを確認してください。目安:画像 ≤ 50 MB(約 4K)、動画 ≤ 100 MB(720p で約 2~5 分)。非公開アセットは安定した URL またはプリサイン URL を推奨します。
{
"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": "入力 FPS に合わせる",
"description": "true の場合、既定の出力 FPS ではなく入力動画の FPS に合わせます。",
"type": "boolean",
"default": true
},
"fps": {
"title": "フレームレート",
"description": "生成された動画の 1 秒あたりのフレーム数。",
"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"
}
}
}
}
}RunComfyは最高の ComfyUI プラットフォームです。次のものを提供しています: ComfyUIオンライン 環境とサービス、および ComfyUIワークフロー 魅力的なビジュアルが特徴です。 RunComfyはまた提供します AI Models, アーティストが最新のAIツールを活用して素晴らしいアートを作成できるようにする。