Utilisez l'API RunComfy pour exécuter qwen/qwen-image/qwen-image-2512/lora. Pour les entrées et sorties acceptées, voir le schéma.
curl --request POST \
--url https://model-api.runcomfy.net/v1/models/qwen/qwen-image/qwen-image-2512/lora \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "A red-haired woman with voluminous, wavy hair stands in front of a densely packed wall of vibrant purple rhododendron flowers with rich green leaves. She is wearing round, pink-tinted reflective sunglasses that show a soft reflection of the floral environment. Her expression is confident and serene, her lips slightly parted. She wears a black spaghetti strap tank top and high-waisted, belted gray skirt. She holds up a blossoming flower with one hand, her skin fair with natural freckles. The lighting is natural and diffused, suggesting an overcast or shaded forest garden setting, resulting in soft shadows and rich, saturated colors. The image has a shallow depth of field, keeping the woman sharply in focus with slightly blurred background flowers. Captured from a medium-close angle at eye level, the mood is whimsical and modern, with a hint of vintage flair due to the color grading and styling. Style is cinematic, photorealistic, with high detail."
}'Définissez la variable d'environnement YOUR_API_TOKEN avec votre clé API (gestion dans Profil) et incluez à chaque requête un jeton Bearer dans l'en-tête Authorization : Authorization: Bearer $YOUR_API_TOKEN.
Soumettez une tâche de génération asynchrone et recevez immédiatement un request_id ainsi que des URLs pour le statut, les résultats et l'annulation.
curl --request POST \
--url https://model-api.runcomfy.net/v1/models/qwen/qwen-image/qwen-image-2512/lora \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "A red-haired woman with voluminous, wavy hair stands in front of a densely packed wall of vibrant purple rhododendron flowers with rich green leaves. She is wearing round, pink-tinted reflective sunglasses that show a soft reflection of the floral environment. Her expression is confident and serene, her lips slightly parted. She wears a black spaghetti strap tank top and high-waisted, belted gray skirt. She holds up a blossoming flower with one hand, her skin fair with natural freckles. The lighting is natural and diffused, suggesting an overcast or shaded forest garden setting, resulting in soft shadows and rich, saturated colors. The image has a shallow depth of field, keeping the woman sharply in focus with slightly blurred background flowers. Captured from a medium-close angle at eye level, the mood is whimsical and modern, with a hint of vintage flair due to the color grading and styling. Style is cinematic, photorealistic, with high detail."
}'Récupère l'état actuel pour un request_id (« in_queue », « in_progress », « completed » ou « cancelled »).
curl --request GET \
--url https://model-api.runcomfy.net/v1/requests/{request_id}/status \
--header "Authorization: Bearer <token>"Récupère les sorties finales et métadonnées pour le request_id ; si le travail n'est pas terminé, la réponse indique l'état actuel pour poursuivre le polling.
curl --request GET \
--url https://model-api.runcomfy.net/v1/requests/{request_id}/result \
--header "Authorization: Bearer <token>"Annule un travail en file d'attente via request_id ; les travaux en cours ne peuvent pas être annulés.
curl --request POST \
--url https://model-api.runcomfy.net/v1/requests/{request_id}/cancel \
--header "Authorization: Bearer <token>"Fournissez une URL HTTPS accessible publiquement. L'hôte doit autoriser les récupérations côté serveur (sans login/cookies), sans limitation de débit ni blocage des bots. Recommandé : images ≤ 50 Mo (~4K), vidéos ≤ 100 Mo (~2–5 min en 720p). Préférez des URL stables ou pré-signées pour les actifs privés.
{
"type": "object",
"title": "Schéma d'entrée",
"required": [
"prompt"
],
"properties": {
"prompt": {
"title": "Prompt",
"description": "",
"type": "string",
"default": "A red-haired woman with voluminous, wavy hair stands in front of a densely packed wall of vibrant purple rhododendron flowers with rich green leaves. She is wearing round, pink-tinted reflective sunglasses that show a soft reflection of the floral environment. Her expression is confident and serene, her lips slightly parted. She wears a black spaghetti strap tank top and high-waisted, belted gray skirt. She holds up a blossoming flower with one hand, her skin fair with natural freckles. The lighting is natural and diffused, suggesting an overcast or shaded forest garden setting, resulting in soft shadows and rich, saturated colors. The image has a shallow depth of field, keeping the woman sharply in focus with slightly blurred background flowers. Captured from a medium-close angle at eye level, the mood is whimsical and modern, with a hint of vintage flair due to the color grading and styling. Style is cinematic, photorealistic, with high detail."
},
"negative_prompt": {
"title": "Prompt négatif",
"description": "",
"type": "string",
"default": ""
},
"loras": {
"title": "Configuration LoRA",
"description": "Liste des poids LoRA à appliquer (3 maximum). Chaque LoRA peut être indiquée par une URL ou l’identifiant d’un dépôt HuggingFace.",
"type": "array",
"default": [],
"items": {
"path": {
"title": "Chemin LoRA",
"description": "URL ou ID de référentiel HuggingFace (propriétaire/dépôt) des poids LoRA.",
"type": "string",
"format": "str",
"default": ""
},
"scale": {
"title": "Échelle LoRA",
"description": "Facteur d’échelle pour l’application LoRA (0,0 à 4,0).",
"type": "float",
"format": "float_slider_with_range",
"minimum": 0,
"maximum": 4,
"default": 1
}
},
"maxItems": 3,
"minItems": 0
},
"image_size": {
"title": "Format d’image (L:H)",
"description": "Taille de l’image générée ; les valeurs proposées correspondent à différents formats d’image.",
"type": "string",
"enum": [
"square_hd",
"square",
"portrait_4_3",
"portrait_16_9",
"landscape_4_3",
"landscape_16_9"
],
"default": "landscape_4_3"
},
"num_inference_steps": {
"title": "Étapes d’inférence",
"description": "Nombre d’étapes d’inférence à effectuer.",
"type": "integer",
"minimum": 1,
"maximum": 50,
"default": 28
},
"guidance_scale": {
"title": "Échelle de guidage",
"description": "Intensité du guidage pour la génération d’image.",
"type": "float",
"minimum": 0,
"maximum": 20,
"default": 4
},
"seed": {
"title": "Graine",
"description": "",
"type": "integer",
"default": 0
},
"output_format": {
"title": "Format de sortie",
"description": "Format de fichier de l’image générée.",
"type": "string",
"enum": [
"jpeg",
"png",
"webp"
],
"default": "png"
}
}
}{
"output": {
"type": "object",
"properties": {
"image": {
"type": "string",
"format": "uri",
"description": "URL d'une seule image"
},
"video": {
"type": "string",
"format": "uri",
"description": "URL d'une seule vidéo"
},
"images": {
"type": "array",
"description": "plusieurs URLs d'images",
"items": {
"type": "string",
"format": "uri"
}
},
"videos": {
"type": "array",
"description": "plusieurs URLs de vidéos",
"items": {
"type": "string",
"format": "uri"
}
}
}
}
}RunComfy est la première ComfyUI plateforme, offrant des ComfyUI en ligne environnement et services, ainsi que des workflows ComfyUI proposant des visuels époustouflants. RunComfy propose également AI Models, permettant aux artistes d'utiliser les derniers outils d'IA pour créer des œuvres d'art incroyables.