Use a API RunComfy para executar wan-ai/wan-2.7/image-to-video. Para entradas e saídas aceitas, consulte o esquema.
curl --request POST \
--url https://model-api.runcomfy.net/v1/models/wan-ai/wan-2.7/image-to-video \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "Slow cinematic camera drift around the subject, natural subtle motion, soft studio lighting, stable identity and background, premium ad style.",
"image_url": "https://playgrounds-storage-public.runcomfy.net/tools/7337/media-files/ref-promo.webp"
}'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.
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.7/image-to-video \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "Slow cinematic camera drift around the subject, natural subtle motion, soft studio lighting, stable identity and background, premium ad style.",
"image_url": "https://playgrounds-storage-public.runcomfy.net/tools/7337/media-files/ref-promo.webp"
}'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>"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>"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>"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.
{
"type": "object",
"title": "Esquema de entrada",
"required": [
"prompt",
"image_url"
],
"properties": {
"prompt": {
"title": "Prompt",
"description": "",
"type": "string",
"maxLength": 5000,
"default": "Slow cinematic camera drift around the subject, natural subtle motion, soft studio lighting, stable identity and background, premium ad style."
},
"image_url": {
"title": "Imagem",
"description": "O formato da imagem deve ser JPEG, JPG, PNG, BMP, WEBP.",
"type": "string",
"default": "https://playgrounds-storage-public.runcomfy.net/tools/7337/media-files/ref-promo.webp"
},
"end_image_url": {
"title": "Imagem final",
"description": "O formato da imagem deve ser JPEG, JPG, PNG, BMP, WEBP.",
"type": "string"
},
"audio_url": {
"title": "Áudio",
"description": "O formato de áudio deve ser WAV, MP3. A duração deste áudio deve estar entre 2 e 30 segundos.",
"type": "string"
},
"resolution": {
"title": "Resolução",
"description": "",
"type": "string",
"enum": [
"720p",
"1080p"
],
"default": "1080p"
},
"duration": {
"title": "Duração",
"description": "",
"type": "integer",
"enum": [
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15
],
"default": 5
},
"negative_prompt": {
"title": "Prompt negativo",
"description": "Conteúdo a evitar no vídeo.",
"type": "string",
"maxLength": 500,
"default": ""
},
"enable_prompt_expansion": {
"title": "Expansão de prompt",
"description": "Habilite a reescrita inteligente de prompts.",
"type": "boolean",
"default": true
},
"seed": {
"title": "Seed",
"description": "",
"type": "integer",
"minimum": 0,
"maximum": 2147483647,
"default": 0
}
}
}{
"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"
}
}
}
}
}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.