logo
RunComfy
  • ComfyUI
  • TreinadorNovo
  • Modelos
  • API
  • Preços
discord logo
MODELOS
Explorar
Todos os modelos
BIBLIOTECA
Gerações
APIS DE MODELOS
Documentação da API
Chaves API
CONTA
Uso

Wan 2.1 LoRA: Gerador de vídeo personalizado | RunComfy

wan-ai/wan-2-1/lora

Aplique uma LoRA personalizada do Wan 2.1 à geração de vídeo a partir de texto ou imagem e controle a resolução, a proporção, o número de quadros, a amostragem, a intensidade e o seed.

Índice

1. Introdução2. Autenticação3. Referência da APIEnviar uma solicitaçãoStatus da solicitaçãoObter resultadosCancelar solicitação4. Arquivos de entradaArquivo hospedado (URL)5. EsquemaEsquema de entradaEsquema de saída

1. Introdução

Use a API RunComfy para executar wan-ai/wan-2-1/lora. Para entradas e saídas aceitas, consulte o 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"
  }'

2. Autenticação

Defina a variável de ambiente YOUR_API_TOKEN com sua chave de API (gerenciamento no Perfil) e inclua em cada solicitação um token Bearer no cabeçalho Authorization : Authorization: Bearer $YOUR_API_TOKEN.

3. Referência da API

Enviar uma solicitação

Envie um trabalho de geração assíncrono e receba imediatamente um request_id e URLs para status, resultados e cancelamento.

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"
  }'

Status da solicitação

Obtém o estado atual de um 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>"

Obter resultados

Obtém as saídas finais e metadados do request_id; se o trabalho não estiver concluído, a resposta retorna o estado atual para continuar o polling.

curl --request GET \
  --url https://model-api.runcomfy.net/v1/requests/{request_id}/result \
  --header "Authorization: Bearer <token>"

Cancelar solicitação

Cancela um trabalho na fila por request_id; trabalhos em andamento não podem ser cancelados.

curl --request POST \
  --url https://model-api.runcomfy.net/v1/requests/{request_id}/cancel \
  --header "Authorization: Bearer <token>"

4. Arquivos de entrada

Arquivo hospedado (URL)

Forneça uma URL HTTPS publicamente acessível. O host deve permitir buscas no servidor (sem login/cookies), sem limite de taxa agressivo ou bloqueio de bots. Recomendado: imagens ≤ 50 MB (~4K), vídeos ≤ 100 MB (~2–5 min em 720p). Para ativos privados, URLs estáveis ou pré-assinadas.

5. Esquema

Esquema de entrada

{
  "type": "object",
  "title": "Esquema de entrada",
  "required": [
    "prompt",
    "lora_url"
  ],
  "properties": {
    "lora_url": {
      "title": "Wan 2.1 LoRA URL",
      "description": "É necessário informar um link do Hugging Face ou Civitai. Apenas uma LoRA pode ser usada por geração.",
      "type": "string",
      "default": "https://playgrounds-storage-public.runcomfy.net/models/wan2.1/lora/Remade-AI/Pixar/pixar_10_epochs.safetensors"
    },
    "model": {
      "title": "Modelo base do Wan 2.1",
      "description": "Escolha o modelo básico 1.3b ou 14b; padrão: 14b.",
      "type": "string",
      "enum": [
        "1.3b",
        "14b"
      ],
      "default": "14b"
    },
    "prompt": {
      "title": "Prompt",
      "description": "Texto obrigatório que descreve o assunto do vídeo, cena, ação, estilo e movimento da câmera.",
      "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": "Imagem de entrada",
      "description": "Imagem de origem opcional para geração de imagem para vídeo. Deixe o campo em branco para gerar um vídeo a partir de texto.",
      "type": "string"
    },
    "resolution": {
      "title": "Resolução",
      "description": "Escolha saída 480p ou 720p; padrão: 480p.",
      "type": "string",
      "enum": [
        "480p",
        "720p"
      ],
      "default": "480p"
    },
    "aspect_ratio": {
      "title": "Proporção (L:A)",
      "description": "Escolha 16:9, 1:1 ou 9:16; padrão: 16:9.",
      "type": "string",
      "enum": [
        "16:9",
        "1:1",
        "9:16"
      ],
      "default": "16:9"
    },
    "negative_prompt": {
      "title": "Prompt negativo",
      "description": "Texto opcional descrevendo elementos visuais a serem evitados.",
      "type": "string",
      "default": ""
    },
    "sample_guide_scale": {
      "title": "Intensidade do prompt",
      "description": "Controla a intensidade com que a saída segue o prompt; intervalo: 0–10, padrão: 5.",
      "maximum": 10,
      "minimum": 0,
      "type": "float",
      "default": 5
    },
    "lora_strength_model": {
      "title": "Intensidade da LoRA",
      "description": "Controla a influência da LoRA. Valores mais altos produzem um efeito mais intenso; intervalo: 0–1, padrão: 1.",
      "maximum": 1,
      "minimum": 0,
      "type": "float",
      "default": 1
    },
    "sample_steps": {
      "title": "Etapas de amostragem",
      "description": "Número de etapas de amostragem de 1 a 60; padrão: 30. Mais etapas aumentam o custo em créditos.",
      "type": "integer",
      "default": 30,
      "maximum": 60,
      "minimum": 1
    },
    "seed": {
      "title": "Seed",
      "description": "Semente inteira usada para reproduzir ou variar uma geração; padrão: 80682279.",
      "type": "integer",
      "default": 80682279
    },
    "frames": {
      "title": "Número de quadros",
      "description": "Escolha 17, 33, 49, 65 ou 81 quadros de saída.",
      "type": "integer",
      "enum": [
        17,
        33,
        49,
        65,
        81
      ]
    },
    "sample_shift": {
      "title": "Deslocamento de amostragem",
      "description": "Ajusta o deslocamento de amostragem de 0 a 10.",
      "maximum": 10,
      "minimum": 0,
      "type": "float"
    },
    "fast_mode": {
      "title": "Modo rápido",
      "description": "Escolha Desligado, Equilibrado ou Rápido. O processamento mais rápido pode reduzir a precisão.",
      "type": "string",
      "enum": [
        "Off",
        "Balanced",
        "Fast"
      ]
    }
  }
}

Esquema de saída

{
  "output": {
    "type": "object",
    "properties": {
      "image": {
        "type": "string",
        "format": "uri",
        "description": "URL de imagem única"
      },
      "video": {
        "type": "string",
        "format": "uri",
        "description": "URL de vídeo único"
      },
      "images": {
        "type": "array",
        "description": "várias URLs de imagem",
        "items": {
          "type": "string",
          "format": "uri"
        }
      },
      "videos": {
        "type": "array",
        "description": "várias URLs de vídeo",
        "items": {
          "type": "string",
          "format": "uri"
        }
      }
    }
  }
}
Siga-nos
  • LinkedIn
  • Facebook
  • Instagram
  • Twitter
Suporte
  • Discord
  • E-mail
  • Status do Sistema
  • afiliado
Modelos de Vídeo
  • MiniMax H3 Open
  • FLUX 3 Image to Video
  • MiniMax H3 Open Image to Video
  • Wan 2.6 Flash
  • Happy Horse 1.1 reference to video
  • Seedance 1.5 Pro Text to Video
  • Ver todos os modelos →
Modelos de Imagem
  • Seedream 5.0 Pro Image Edit
  • Flux 2 Flash Edit
  • Nano Banana Pro
  • seedream 4.0
  • GPT Image 2
  • Qwen Image Edit 2511 LoRA
  • Ver todos os modelos →
Legal
  • Termos de Serviço
  • Política de Privacidade
  • Política de Cookies
RunComfy
Copyright 2026 RunComfy. Todos os Direitos Reservados.

RunComfy é a principal ComfyUI plataforma, oferecendo ComfyUI online ambiente e serviços, juntamente com fluxos de trabalho do ComfyUI apresentando visuais impressionantes. RunComfy também oferece AI Models, permitindo que artistas utilizem as mais recentes ferramentas de AI para criar arte incrível.