Usa l'API RunComfy per eseguire blackforestlabs/flux-3/video. Per input e output accettati, consulta lo schema.
curl --request POST \
--url https://model-api.runcomfy.net/v1/models/blackforestlabs/flux-3/video \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "A powerful dappled-grey stallion gallops across a windswept green moor under a brooding storm sky, mane and tail streaming, clumps of turf kicking up in slow motion, distant thunder rumbling and hooves pounding the earth, cinematic low-angle tracking shot, moody desaturated color, anamorphic look."
}'Imposta la variabile d'ambiente YOUR_API_TOKEN con la tua chiave API (gestione nel Profilo) e includi in ogni richiesta un token Bearer nell'intestazione Authorization : Authorization: Bearer $YOUR_API_TOKEN.
Invia un job di generazione asincrono e ricevi subito un request_id e URL per stato, risultati e annullamento.
curl --request POST \
--url https://model-api.runcomfy.net/v1/models/blackforestlabs/flux-3/video \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "A powerful dappled-grey stallion gallops across a windswept green moor under a brooding storm sky, mane and tail streaming, clumps of turf kicking up in slow motion, distant thunder rumbling and hooves pounding the earth, cinematic low-angle tracking shot, moody desaturated color, anamorphic look."
}'Recupera lo stato corrente per 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>"Recupera output finali e metadati per il request_id; se il job non è completo, la risposta restituisce lo stato corrente per continuare il polling.
curl --request GET \
--url https://model-api.runcomfy.net/v1/requests/{request_id}/result \
--header "Authorization: Bearer <token>"Annulla un job in coda tramite request_id; i job in corso non possono essere annullati.
curl --request POST \
--url https://model-api.runcomfy.net/v1/requests/{request_id}/cancel \
--header "Authorization: Bearer <token>"Fornisci un URL HTTPS raggiungibile pubblicamente. L'host deve consentire fetch lato server (senza login/cookie), senza rate limit eccessivo o blocco bot. Consigliato: immagini ≤ 50 MB (~4K), video ≤ 100 MB (~2–5 min a 720p). Per asset privati, URL stabili o pre-firmati.
{
"type": "object",
"title": "Schema di input",
"required": [
"prompt"
],
"properties": {
"prompt": {
"title": "Prompt",
"description": "Prompt testuale per il video (si consigliano al massimo circa 500 caratteri in cinese o 1000 parole in inglese). ",
"type": "string",
"default": "A powerful dappled-grey stallion gallops across a windswept green moor under a brooding storm sky, mane and tail streaming, clumps of turf kicking up in slow motion, distant thunder rumbling and hooves pounding the earth, cinematic low-angle tracking shot, moody desaturated color, anamorphic look."
},
"images": {
"title": "Immagini",
"description": "Immagini di riferimento per la modalità di riferimento multimodale (0–9). Formati supportati: JPEG, PNG, WebP, BMP, TIFF e GIF.",
"type": "array",
"items": {
"type": "string",
"format": "image_uri"
},
"maxItems": 9
},
"videos": {
"title": "Video",
"description": "Video di riferimento per la modalità di riferimento multimodale (0–3). Formati supportati: MP4 e MOV. La durata deve essere compresa tra 2 e 15 secondi.",
"type": "array",
"items": {
"type": "string",
"format": "video_uri"
},
"maxItems": 3
},
"audios": {
"title": "URL audio",
"description": "Audio di riferimento per la modalità di riferimento multimodale (0–3). Formati supportati: WAV e MP3. La durata deve essere compresa tra 2 e 15 secondi e il file deve essere inferiore a 15 MB.",
"type": "array",
"items": {
"type": "string",
"format": "audio_uri"
},
"maxItems": 3
},
"aspect_ratio": {
"title": "Proporzioni (L:A)",
"description": "L’impostazione predefinita è adattiva: il modello sceglie il rapporto più vicino e quello effettivo viene restituito quando si consulta l’attività.",
"type": "string",
"enum": [
"adaptive",
"16:9",
"9:16",
"4:3",
"3:4",
"1:1",
"21:9"
],
"default": "adaptive"
},
"duration": {
"title": "Durata (secondi)",
"description": "Numero intero di secondi nell’intervallo [4, 15].",
"type": "integer",
"minimum": 4,
"maximum": 15,
"default": 5
},
"resolution": {
"title": "Risoluzione",
"description": "",
"type": "string",
"enum": [
"480p",
"720p",
"1080p",
"4k"
],
"default": "720p"
},
"generate_audio": {
"title": "Genera audio",
"description": "Se l’opzione è attiva, il modello restituisce un video con audio sincronizzato (voce, effetti sonori e musica). ",
"type": "boolean",
"default": true
},
"seed": {
"title": "Seed",
"description": "Seed casuale per la generazione del video. ",
"type": "integer"
},
"tools": {
"title": "Ricerca sul Web",
"description": " Quando è incluso `web_search`, il modello può effettuare una ricerca online in base al prompt, ad esempio su prodotti specifici o sul meteo attuale. Questo può migliorare l’aggiornamento dei dati, ma aumenta la latenza. ",
"type": "boolean",
"default": false
}
}
}{
"output": {
"type": "object",
"properties": {
"image": {
"type": "string",
"format": "uri",
"description": "URL immagine singola"
},
"video": {
"type": "string",
"format": "uri",
"description": "URL video singolo"
},
"images": {
"type": "array",
"description": "più URL immagine",
"items": {
"type": "string",
"format": "uri"
}
},
"videos": {
"type": "array",
"description": "più URL video",
"items": {
"type": "string",
"format": "uri"
}
}
}
}
}RunComfy è la piattaforma principale ComfyUI che offre ComfyUI online ambiente e servizi, insieme a workflow di ComfyUI con visuali mozzafiato. RunComfy offre anche AI Models, consentire agli artisti di sfruttare gli ultimi strumenti di AI per creare arte incredibile.