Use a API RunComfy para executar minimax/minimax-h3-open/image-to-video. Para entradas e saídas aceitas, consulte o esquema.
curl --request POST \
--url https://model-api.runcomfy.net/v1/models/minimax/minimax-h3-open/image-to-video \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"image": "https://playgrounds-storage-public.runcomfy.net/tools/7411/media-files/ref-promo.webp",
"prompt": "[0s-2s] the gardener breathes and blinks, a water droplet slides down a tomato leaf. [2s-5s] she turns slightly toward camera with a warm smile as the camera pushes in. Camera: slow push-in then hold, no cuts. Audio: soft greenhouse ambience, light leaf rustle, distant drip irrigation. Keep the same person, outfit, and setting. No extra people, no text, no watermark."
}'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/minimax/minimax-h3-open/image-to-video \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"image": "https://playgrounds-storage-public.runcomfy.net/tools/7411/media-files/ref-promo.webp",
"prompt": "[0s-2s] the gardener breathes and blinks, a water droplet slides down a tomato leaf. [2s-5s] she turns slightly toward camera with a warm smile as the camera pushes in. Camera: slow push-in then hold, no cuts. Audio: soft greenhouse ambience, light leaf rustle, distant drip irrigation. Keep the same person, outfit, and setting. No extra people, no text, no watermark."
}'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": [
"image",
"prompt"
],
"properties": {
"image": {
"title": "Imagem",
"description": "URL da imagem do primeiro quadro. O enquadramento de saída segue a proporção desta imagem.",
"type": "string",
"default": "https://playgrounds-storage-public.runcomfy.net/tools/7411/media-files/ref-promo.webp"
},
"prompt": {
"title": "Prompt",
"description": "Movimento, câmera e áudio opcional: linha. Mantenha a identidade consistente com o imóvel.",
"type": "string",
"default": "[0s-2s] the gardener breathes and blinks, a water droplet slides down a tomato leaf. [2s-5s] she turns slightly toward camera with a warm smile as the camera pushes in. Camera: slow push-in then hold, no cuts. Audio: soft greenhouse ambience, light leaf rustle, distant drip irrigation. Keep the same person, outfit, and setting. No extra people, no text, no watermark."
},
"last_image": {
"title": "Última imagem",
"description": "Imagem opcional do último quadro para orientar a pose ou composição final.",
"type": "string"
},
"resolution": {
"title": "Resolução",
"description": "Resolução de saída. 480p é mais rápido/barato; 768p é mais nítido.",
"type": "string",
"enum": [
"480p",
"768p"
],
"default": "480p"
},
"duration": {
"title": "Duração",
"description": "Duração do vídeo gerado em segundos (5–15).",
"type": "integer",
"minimum": 5,
"maximum": 15,
"default": 5
},
"seed": {
"title": "Seed",
"description": "Semente fixa para resultados reproduzíveis. Use -1 para uma semente aleatória.",
"type": "integer",
"default": -1
}
}
}{
"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.