Usa la API de RunComfy para ejecutar wan-ai/wan-2-1/lora. Para entradas y salidas admitidas, consulta el esquema.
curl --request POST \
--url https://model-api.runcomfy.net/v1/models/wan-ai/wan-2-1/lora \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "A vast circular library of glowing memory orbs stretches in all directions, with tall curved shelves extending upward. Each orb contains a different memory, glowing in various colors - yellow for joy, blue for sadness, red for anger, purple for fear, and green for disgust. In the foreground, two characters - a small blue figure with glasses and a tall slender yellow figure with bright blue hair - are examining a particularly bright memory orb. Light streams cascade through the enormous room, creating dramatic beams between the shelves. The space has a warm ambient glow with dramatic shadows. Small maintenance worker characters in uniform can be seen in the background, carefully organizing orbs on distant shelves. The rendering features Pixar's characteristic polished surfaces with subtle reflections and depth-of-field blur for distant elements.",
"lora_url": "https://playgrounds-storage-public.runcomfy.net/models/wan2.1/lora/Remade-AI/Pixar/pixar_10_epochs.safetensors"
}'Define la variable de entorno YOUR_API_TOKEN con tu clave API (gestión en Perfil) e incluye en cada solicitud un token Bearer en la cabecera Authorization : Authorization: Bearer $YOUR_API_TOKEN.
Envía un trabajo de generación asíncrono y recibe de inmediato un request_id y URLs para consultar estado, obtener resultados y cancelar.
curl --request POST \
--url https://model-api.runcomfy.net/v1/models/wan-ai/wan-2-1/lora \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "A vast circular library of glowing memory orbs stretches in all directions, with tall curved shelves extending upward. Each orb contains a different memory, glowing in various colors - yellow for joy, blue for sadness, red for anger, purple for fear, and green for disgust. In the foreground, two characters - a small blue figure with glasses and a tall slender yellow figure with bright blue hair - are examining a particularly bright memory orb. Light streams cascade through the enormous room, creating dramatic beams between the shelves. The space has a warm ambient glow with dramatic shadows. Small maintenance worker characters in uniform can be seen in the background, carefully organizing orbs on distant shelves. The rendering features Pixar's characteristic polished surfaces with subtle reflections and depth-of-field blur for distant elements.",
"lora_url": "https://playgrounds-storage-public.runcomfy.net/models/wan2.1/lora/Remade-AI/Pixar/pixar_10_epochs.safetensors"
}'Obtiene el estado actual de un request_id ("in_queue", "in_progress", "completed" o "cancelled").
curl --request GET \
--url https://model-api.runcomfy.net/v1/requests/{request_id}/status \
--header "Authorization: Bearer <token>"Obtiene las salidas finales y metadatos del request_id; si el trabajo no ha terminado, la respuesta devuelve el estado actual para seguir haciendo polling.
curl --request GET \
--url https://model-api.runcomfy.net/v1/requests/{request_id}/result \
--header "Authorization: Bearer <token>"Cancela un trabajo en cola por request_id; los trabajos en curso no se pueden cancelar.
curl --request POST \
--url https://model-api.runcomfy.net/v1/requests/{request_id}/cancel \
--header "Authorization: Bearer <token>"Proporciona una URL HTTPS públicamente accesible. El host debe permitir peticiones del servidor (sin login/cookies), sin rate limit agresivo ni bloqueo de bots. Recomendado: imágenes ≤ 50 MB (~4K), vídeos ≤ 100 MB (~2–5 min a 720p). Para activos privados, URLs estables o firmadas.
{
"type": "object",
"title": "Esquema de entrada",
"required": [
"prompt",
"lora_url"
],
"properties": {
"lora_url": {
"title": "Wan 2.1 LoRA URL",
"description": "Se requiere un enlace de Hugging Face o Civitai. Solo se puede utilizar una LoRA por generación.",
"type": "string",
"default": "https://playgrounds-storage-public.runcomfy.net/models/wan2.1/lora/Remade-AI/Pixar/pixar_10_epochs.safetensors"
},
"model": {
"title": "Modelo base de Wan 2.1",
"description": "Elija el modelo base 1.3b o 14b; predeterminado: 14b.",
"type": "string",
"enum": [
"1.3b",
"14b"
],
"default": "14b"
},
"prompt": {
"title": "Prompt",
"description": "Texto obligatorio que describe el tema, la escena, la acción, el estilo y el movimiento de la cámara del vídeo.",
"type": "string",
"default": "A vast circular library of glowing memory orbs stretches in all directions, with tall curved shelves extending upward. Each orb contains a different memory, glowing in various colors - yellow for joy, blue for sadness, red for anger, purple for fear, and green for disgust. In the foreground, two characters - a small blue figure with glasses and a tall slender yellow figure with bright blue hair - are examining a particularly bright memory orb. Light streams cascade through the enormous room, creating dramatic beams between the shelves. The space has a warm ambient glow with dramatic shadows. Small maintenance worker characters in uniform can be seen in the background, carefully organizing orbs on distant shelves. The rendering features Pixar's characteristic polished surfaces with subtle reflections and depth-of-field blur for distant elements."
},
"image": {
"title": "Imagen de entrada",
"description": "Imagen de origen opcional para generar un vídeo a partir de una imagen. Déjela vacía para generar un vídeo a partir de texto.",
"type": "string"
},
"resolution": {
"title": "Resolución",
"description": "Elija salida de 480p o 720p; predeterminado: 480p.",
"type": "string",
"enum": [
"480p",
"720p"
],
"default": "480p"
},
"aspect_ratio": {
"title": "Relación de aspecto (An:Al)",
"description": "Elija 16:9, 1:1 o 9:16; predeterminado: 16:9.",
"type": "string",
"enum": [
"16:9",
"1:1",
"9:16"
],
"default": "16:9"
},
"negative_prompt": {
"title": "Prompt negativo",
"description": "Texto opcional que describe los elementos visuales que se deben evitar.",
"type": "string",
"default": ""
},
"sample_guide_scale": {
"title": "Intensidad del prompt",
"description": "Controla en qué medida el resultado sigue el prompt; rango: 0–10, valor predeterminado: 5.",
"maximum": 10,
"minimum": 0,
"type": "float",
"default": 5
},
"lora_strength_model": {
"title": "Intensidad de LoRA",
"description": "Controla la influencia de la LoRA. Los valores más altos producen un efecto más intenso; rango: 0–1, valor predeterminado: 1.",
"maximum": 1,
"minimum": 0,
"type": "float",
"default": 1
},
"sample_steps": {
"title": "Pasos de muestreo",
"description": "Número de pasos de muestreo de 1 a 60; valor predeterminado: 30. Más pasos aumentan el coste en créditos.",
"type": "integer",
"default": 30,
"maximum": 60,
"minimum": 1
},
"seed": {
"title": "Semilla",
"description": "Semilla entera utilizada para reproducir o variar una generación; predeterminado: 80682279.",
"type": "integer",
"default": 80682279
},
"frames": {
"title": "Número de fotogramas",
"description": "Elija 17, 33, 49, 65 u 81 fotogramas de salida.",
"type": "integer",
"enum": [
17,
33,
49,
65,
81
]
},
"sample_shift": {
"title": "Desplazamiento de muestreo",
"description": "Ajusta el desplazamiento de muestreo entre 0 y 10.",
"maximum": 10,
"minimum": 0,
"type": "float"
},
"fast_mode": {
"title": "Modo rápido",
"description": "Elija Desactivado, Equilibrado o Rápido. Un procesamiento más rápido puede reducir la precisión.",
"type": "string",
"enum": [
"Off",
"Balanced",
"Fast"
]
}
}
}{
"output": {
"type": "object",
"properties": {
"image": {
"type": "string",
"format": "uri",
"description": "URL de una sola imagen"
},
"video": {
"type": "string",
"format": "uri",
"description": "URL de un solo vídeo"
},
"images": {
"type": "array",
"description": "varias URLs de imagen",
"items": {
"type": "string",
"format": "uri"
}
},
"videos": {
"type": "array",
"description": "varias URLs de vídeo",
"items": {
"type": "string",
"format": "uri"
}
}
}
}
}RunComfy es la principal ComfyUI plataforma, ofreciendo ComfyUI en línea entorno y servicios, junto con flujos de trabajo de ComfyUI con impresionantes imágenes. RunComfy también ofrece AI Models, permitiendo a los artistas aprovechar las últimas herramientas de AI para crear arte increíble.