Nutzen Sie die RunComfy-API, um wan-ai/wan-2-2/lora/image-to-video auszuführen. Zulässige Ein- und Ausgaben finden Sie im Schema.
curl --request POST \
--url https://model-api.runcomfy.net/v1/models/wan-ai/wan-2-2/lora/image-to-video \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "The woman is walking slowly",
"image_url": "https://playgrounds-storage-public.runcomfy.net/tools/7002/media-files/usecase5-1-2-input.jpg",
"loras": [
{
"path": "https://huggingface.co/neph1/hard_cut_wan_lora/blob/main/hard_cut_200_wan_i2v_high.safetensors",
"transformer": "both",
"scale": 1
}
]
}'Weisen Sie der Umgebungsvariable YOUR_API_TOKEN Ihren API-Schlüssel zu (Verwaltung unter Profil). Senden Sie bei jeder Anfrage im Header Authorization einen Bearer-Token: Authorization: Bearer $YOUR_API_TOKEN.
Senden Sie einen asynchronen Generierungsauftrag und erhalten Sie sofort eine request_id sowie URLs für Status, Ergebnisse und Abbruch.
curl --request POST \
--url https://model-api.runcomfy.net/v1/models/wan-ai/wan-2-2/lora/image-to-video \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "The woman is walking slowly",
"image_url": "https://playgrounds-storage-public.runcomfy.net/tools/7002/media-files/usecase5-1-2-input.jpg",
"loras": [
{
"path": "https://huggingface.co/neph1/hard_cut_wan_lora/blob/main/hard_cut_200_wan_i2v_high.safetensors",
"transformer": "both",
"scale": 1
}
]
}'Ruft den aktuellen Status für eine request_id ab („in_queue“, „in_progress“, „completed“ oder „cancelled“).
curl --request GET \
--url https://model-api.runcomfy.net/v1/requests/{request_id}/status \
--header "Authorization: Bearer <token>"Ruft die endgültigen Ausgaben und Metadaten für die angegebene request_id ab; ist der Auftrag noch nicht fertig, liefert die Antwort den aktuellen Status zum Weiterpollen.
curl --request GET \
--url https://model-api.runcomfy.net/v1/requests/{request_id}/result \
--header "Authorization: Bearer <token>"Bricht einen wartenden Auftrag per request_id ab; laufende Aufträge können nicht abgebrochen werden.
curl --request POST \
--url https://model-api.runcomfy.net/v1/requests/{request_id}/cancel \
--header "Authorization: Bearer <token>"Geben Sie eine öffentlich erreichbare HTTPS-URL an. Der Host muss serverseitige Abrufe erlauben (ohne Login/Cookies), nicht drosseln oder Bots blockieren. Empfohlen: Bilder ≤ 50 MB (~4K), Videos ≤ 100 MB (~2–5 Min. bei 720p). Für private Assets stabile oder vorab signierte URLs verwenden.
{
"type": "object",
"title": "Eingabeschema",
"required": [
"prompt",
"image_url",
"loras"
],
"properties": {
"image_url": {
"title": "Ausgangsbild",
"description": "Erforderliche Bild-URL, die als Ausgangsbild des Videos dient.",
"type": "string",
"default": "https://playgrounds-storage-public.runcomfy.net/tools/7002/media-files/usecase5-1-2-input.jpg"
},
"prompt": {
"title": "Prompt",
"description": "Beschreiben Sie Motiv, Handlung, Umgebung, Bildausschnitt und gewünschte visuelle Richtung.",
"type": "string",
"default": "The woman is walking slowly"
},
"loras": {
"title": "LoRAs",
"description": "Erforderliche LoRA-Liste mit höchstens 3 Einträgen; jeder Pfad kann eine URL oder eine Hugging-Face-Repo-ID sein.",
"type": "array",
"default": [
{
"path": "https://huggingface.co/neph1/hard_cut_wan_lora/blob/main/hard_cut_200_wan_i2v_high.safetensors",
"transformer": "both",
"scale": 1
}
],
"items": {
"path": {
"title": "LoRA-Pfad",
"description": "URL oder Hugging-Face-Repo-ID (owner/repo) der LoRA-Gewichte.",
"type": "string",
"format": "str",
"default": ""
},
"transformer": {
"title": "LoRA-Ziel",
"description": "Wählen Sie `high`, `low` oder `both`; Standard ist `both`.",
"type": "string",
"format": "str_with_choice",
"enum": [
"high",
"low",
"both"
],
"default": "both"
},
"scale": {
"title": "LoRA-Stärke",
"description": "Stärke der LoRA-Anwendung von 0 bis 4; Standard ist 1.",
"type": "float",
"format": "float_slider_with_range",
"minimum": 0,
"maximum": 4,
"default": 1
}
},
"maxItems": 3,
"minItems": 0
},
"num_frames": {
"title": "Anzahl der Frames",
"description": "Wert von 17 bis 161; Standard ist 81.",
"type": "integer",
"default": 81,
"minimum": 17,
"maximum": 161
},
"frames_per_second": {
"title": "Frames pro Sekunde",
"description": "Wert von 4 bis 60; Standard ist 16.",
"type": "integer",
"default": 16,
"minimum": 4,
"maximum": 60
},
"resolution": {
"title": "Auflösung",
"description": "Wählen Sie `480p`, `580p` oder `720p`; Standard ist `480p`.",
"type": "string",
"enum": [
"480p",
"580p",
"720p"
],
"default": "480p"
},
"aspect_ratio": {
"title": "Seitenverhältnis (B:H)",
"description": "Wählen Sie `16:9`, `9:16`, `1:1` oder `auto`; Standard ist `auto`.",
"type": "string",
"enum": [
"16:9",
"9:16",
"1:1",
"auto"
],
"default": "auto"
},
"num_inference_steps": {
"title": "Anzahl der Inferenzschritte",
"description": "Wert von 2 bis 40; Standard ist 27.",
"type": "integer",
"default": 27,
"minimum": 2,
"maximum": 40
},
"negative_prompt": {
"title": "Negativer Prompt",
"description": "Optionale Beschreibung von Elementen, die vermieden werden sollen.",
"type": "string",
"default": ""
},
"seed": {
"title": "Seed",
"description": "Ganzzahliger Seed von 10000 bis 99999.",
"type": "integer",
"maximum": 99999,
"minimum": 10000,
"default": 15775
}
}
}{
"output": {
"type": "object",
"properties": {
"image": {
"type": "string",
"format": "uri",
"description": "Einzelbild-URL"
},
"video": {
"type": "string",
"format": "uri",
"description": "Einzelvideo-URL"
},
"images": {
"type": "array",
"description": "mehrere Bild-URLs",
"items": {
"type": "string",
"format": "uri"
}
},
"videos": {
"type": "array",
"description": "mehrere Video-URLs",
"items": {
"type": "string",
"format": "uri"
}
}
}
}
}RunComfy ist die führende ComfyUI Plattform, die ComfyUI online Umgebung und Services bietet, zusammen mit ComfyUI Workflows mit atemberaubenden Visualisierungen. RunComfy bietet auch AI Models, Künstlern ermöglichen, die neuesten AI-Tools zu nutzen, um unglaubliche Kunst zu schaffen.