Utilisez l'API RunComfy pour exécuter bytedance/seedance-v1.5-pro/image-to-video. Pour les entrées et sorties acceptées, voir le schéma.
curl --request POST \
--url https://model-api.runcomfy.net/v1/models/bytedance/seedance-v1.5-pro/image-to-video \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "A gentle breeze blows softly, and the real girl's body remains stable. Her long hair, including the hair below, flutters naturally. The anime girl on the phone screen first closes her eyes for 2 seconds, then slowly opens them, with her mouth remaining still and silent. Her hair, including the hair below, also flutters naturally in the breeze in perfect synchronization. The rhythm and direction of the hair fluttering of the two girls are exactly the same. The subway train moves rapidly, emitting a low rumbling echo. ",
"first_frame_image_url": "https://playgrounds-storage-public.runcomfy.net/tools/7272/media-files/input-1-1.png"
}'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/bytedance/seedance-v1.5-pro/image-to-video \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "A gentle breeze blows softly, and the real girl's body remains stable. Her long hair, including the hair below, flutters naturally. The anime girl on the phone screen first closes her eyes for 2 seconds, then slowly opens them, with her mouth remaining still and silent. Her hair, including the hair below, also flutters naturally in the breeze in perfect synchronization. The rhythm and direction of the hair fluttering of the two girls are exactly the same. The subway train moves rapidly, emitting a low rumbling echo. ",
"first_frame_image_url": "https://playgrounds-storage-public.runcomfy.net/tools/7272/media-files/input-1-1.png"
}'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",
"first_frame_image_url"
],
"properties": {
"prompt": {
"title": "Prompt",
"description": "Le prompt doit contenir moins de 500 caractères pour obtenir de meilleurs résultats.",
"type": "string",
"default": "A gentle breeze blows softly, and the real girl's body remains stable. Her long hair, including the hair below, flutters naturally. The anime girl on the phone screen first closes her eyes for 2 seconds, then slowly opens them, with her mouth remaining still and silent. Her hair, including the hair below, also flutters naturally in the breeze in perfect synchronization. The rhythm and direction of the hair fluttering of the two girls are exactly the same. The subway train moves rapidly, emitting a low rumbling echo. "
},
"first_frame_image_url": {
"title": "Image de départ",
"description": "",
"type": "string",
"validations": [
{
"validation_rule": "width_pixels<",
"validation_value": 6000,
"validation_error": "La largeur et la hauteur de l'image ne doivent pas dépasser 6000 pixels."
},
{
"validation_rule": "height_pixels<",
"validation_value": 6000,
"validation_error": "La largeur et la hauteur de l'image ne doivent pas dépasser 6000 pixels."
},
{
"validation_rule": "width_pixels>",
"validation_value": 300,
"validation_error": "La largeur et la hauteur de l'image ne doivent pas être inférieures à 300 pixels."
},
{
"validation_rule": "height_pixels>",
"validation_value": 300,
"validation_error": "La largeur et la hauteur de l'image ne doivent pas être inférieures à 300 pixels."
},
{
"validation_rule": "width/height>",
"validation_value": 0.4,
"validation_error": "Le rapport d'aspect doit être compris entre 0,4 et 2,5."
},
{
"validation_rule": "width/height<",
"validation_value": 2.5,
"validation_error": "Le rapport d'aspect doit être compris entre 0,4 et 2,5."
},
{
"validation_rule": "file_size_mb<",
"validation_value": 30,
"validation_error": "La taille du fichier doit être inférieure à 30 Mo."
}
],
"default": "https://playgrounds-storage-public.runcomfy.net/tools/7272/media-files/input-1-1.png"
},
"resolution": {
"title": "Résolution",
"description": "",
"type": "string",
"enum": [
"480p",
"720p",
"1080p"
],
"default": "480p"
},
"ratio": {
"title": "Rapport d'aspect (L:H)",
"description": "",
"type": "string",
"enum": [
"16:9",
"4:3",
"1:1",
"3:4",
"9:16",
"21:9",
"adaptive"
],
"default": "adaptive"
},
"duration": {
"title": "Durée",
"description": "",
"type": "integer",
"enum": [
4,
5,
6,
7,
8,
9,
10,
11,
12
],
"default": 5
},
"generate_audio": {
"title": "Générer l'audio",
"description": "",
"type": "boolean",
"default": true
},
"camera_fixed": {
"title": "Caméra fixe",
"description": "Définit si la caméra reste fixe dans la vidéo.",
"type": "boolean",
"default": true
}
}
}{
"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.