Nutzen Sie die RunComfy-API, um tongyi-mai/z-image/turbo/controlnet/lora auszuführen. Zulässige Ein- und Ausgaben finden Sie im Schema.
curl --request POST \
--url https://model-api.runcomfy.net/v1/models/tongyi-mai/z-image/turbo/controlnet/lora \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "ultra-realistic interior rendering of a modern minimalist apartment living space with floor-to-ceiling glass windows on the right side, filling the room with soft natural daylight. A sleek light gray sectional sofa and a low rectangular coffee table with a matte finish sit on pale wood flooring. The walls are smooth and painted white, creating a clean and airy aesthetic. In the background, a green indoor plant adds a subtle touch of nature. The composition features high ceilings, long hallway perspective, and a serene, uncluttered atmosphere. Rendered in 8k, photorealistic, global illumination, unreal engine, architectural photography style, shot with a wide-angle lens, soft shadows, natural lighting.",
"image_url": "https://playgrounds-storage-public.runcomfy.net/tools/7267/media-files/depth.jpg",
"loras": [
{
"path": "alibaba-pai/Z-Image-Turbo-Fun-Controlnet-Union",
"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/tongyi-mai/z-image/turbo/controlnet/lora \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "ultra-realistic interior rendering of a modern minimalist apartment living space with floor-to-ceiling glass windows on the right side, filling the room with soft natural daylight. A sleek light gray sectional sofa and a low rectangular coffee table with a matte finish sit on pale wood flooring. The walls are smooth and painted white, creating a clean and airy aesthetic. In the background, a green indoor plant adds a subtle touch of nature. The composition features high ceilings, long hallway perspective, and a serene, uncluttered atmosphere. Rendered in 8k, photorealistic, global illumination, unreal engine, architectural photography style, shot with a wide-angle lens, soft shadows, natural lighting.",
"image_url": "https://playgrounds-storage-public.runcomfy.net/tools/7267/media-files/depth.jpg",
"loras": [
{
"path": "alibaba-pai/Z-Image-Turbo-Fun-Controlnet-Union",
"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": {
"prompt": {
"title": "Prompt",
"description": "",
"type": "string",
"default": "ultra-realistic interior rendering of a modern minimalist apartment living space with floor-to-ceiling glass windows on the right side, filling the room with soft natural daylight. A sleek light gray sectional sofa and a low rectangular coffee table with a matte finish sit on pale wood flooring. The walls are smooth and painted white, creating a clean and airy aesthetic. In the background, a green indoor plant adds a subtle touch of nature. The composition features high ceilings, long hallway perspective, and a serene, uncluttered atmosphere. Rendered in 8k, photorealistic, global illumination, unreal engine, architectural photography style, shot with a wide-angle lens, soft shadows, natural lighting."
},
"image_url": {
"title": "Bild",
"description": "URL des Eingabebildes, das für die ControlNet-basierte Generierung verwendet wird.",
"type": "string",
"default": "https://playgrounds-storage-public.runcomfy.net/tools/7267/media-files/depth.jpg"
},
"loras": {
"title": "LoRAs",
"description": "Liste der anzuwendenden LoRAs (maximal 3).",
"type": "array",
"default": [
{
"path": "alibaba-pai/Z-Image-Turbo-Fun-Controlnet-Union",
"scale": 1
}
],
"items": {
"path": {
"title": "LoRA-Pfad",
"description": "URL, HuggingFace-Repo-ID (Eigentümer/Repo) zu Lora-Gewichten.",
"type": "string",
"format": "str",
"default": ""
},
"scale": {
"title": "LoRA-Skala",
"description": "Maßstab des LoRA-Modells.",
"type": "float",
"format": "float_slider_with_range",
"minimum": 0,
"maximum": 4,
"default": 1
}
},
"maxItems": 3,
"minItems": 0
},
"image_size": {
"title": "Seitenverhältnis (B:H)",
"description": "",
"type": "string",
"enum": [
"square_hd",
"square",
"portrait_4_3",
"portrait_16_9",
"landscape_4_3",
"landscape_16_9",
"auto"
],
"default": "auto"
},
"control_scale": {
"title": "Kontrollskala",
"description": "Steuert, wie stark sich die ControlNet-Bedingungen auf die Ausgabe auswirken.",
"type": "float",
"default": 0.9,
"minimum": 0,
"maximum": 1
},
"control_start": {
"title": "Kontrollstart",
"description": "Gibt den Startpunkt der ControlNet-Konditionierung während der Generierung an.",
"type": "float",
"default": 0,
"minimum": 0,
"maximum": 1
},
"control_end": {
"title": "Kontrollende",
"description": "Gibt den Endpunkt der ControlNet-Konditionierung während der Generierung an.",
"type": "float",
"default": 0.4,
"minimum": 0,
"maximum": 1
},
"preprocess": {
"title": "Vorprozess",
"description": "Definiert, welche Vorverarbeitung (falls vorhanden) auf das ControlNet-Eingabebild angewendet wird.",
"type": "string",
"enum": [
"none",
"canny",
"depth",
"pose"
],
"default": "none"
},
"num_inference_steps": {
"title": "Anzahl der Inferenzschritte",
"description": "Gibt die Anzahl der Inferenzschritte während der Generierung an.",
"type": "integer",
"default": 8,
"minimum": 1,
"maximum": 8
},
"seed": {
"title": "Seed",
"description": "",
"type": "integer",
"default": 0
},
"enable_prompt_expansion": {
"title": "Magische Aufforderung",
"description": "Ermöglicht die automatische Prompt-Erweiterung zur Verbesserung der Ergebnisse; erhöht die Kosten um 0,0025 Credits pro Anfrage.",
"type": "boolean",
"default": false
},
"output_format": {
"title": "Ausgabeformat",
"description": "Gibt das Ausgabebildformat an.",
"type": "string",
"enum": [
"jpeg",
"png",
"webp"
],
"default": "png"
}
}
}{
"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.