Usa l'API RunComfy per eseguire kling/kling-3.0/standard/text-to-video. Per input e output accettati, consulta lo schema.
curl --request POST \
--url https://model-api.runcomfy.net/v1/models/kling/kling-3.0/standard/text-to-video \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "Cinematic multi-shot of a young American father teaching his 6-year-old daughter to ride a bike on a sun-dappled suburban street in autumn. Wide establishing shot of the leafy neighborhood with Craftsman-style houses, then cut to a low tracking shot following the wobbling pink bike as the father runs alongside holding the seat, his blue flannel shirt fluttering. Cut to a close-up of the girl's face, golden braids whipping in the wind, her wide blue eyes shifting from nervous to joyful as she breaks into laughter. Final shot: a slow-motion crane pull-back as he lets go and she pedals freely down the street, golden hour light, lens flares, warm cinematic color grade, shot on 35mm film, shallow depth of field."
}'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/kling/kling-3.0/standard/text-to-video \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"prompt": "Cinematic multi-shot of a young American father teaching his 6-year-old daughter to ride a bike on a sun-dappled suburban street in autumn. Wide establishing shot of the leafy neighborhood with Craftsman-style houses, then cut to a low tracking shot following the wobbling pink bike as the father runs alongside holding the seat, his blue flannel shirt fluttering. Cut to a close-up of the girl's face, golden braids whipping in the wind, her wide blue eyes shifting from nervous to joyful as she breaks into laughter. Final shot: a slow-motion crane pull-back as he lets go and she pedals freely down the street, golden hour light, lens flares, warm cinematic color grade, shot on 35mm film, shallow depth of field."
}'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": "Descrizione testuale della scena, del movimento, dello stile della telecamera e dell'atmosfera.",
"type": "string",
"default": "Cinematic multi-shot of a young American father teaching his 6-year-old daughter to ride a bike on a sun-dappled suburban street in autumn. Wide establishing shot of the leafy neighborhood with Craftsman-style houses, then cut to a low tracking shot following the wobbling pink bike as the father runs alongside holding the seat, his blue flannel shirt fluttering. Cut to a close-up of the girl's face, golden braids whipping in the wind, her wide blue eyes shifting from nervous to joyful as she breaks into laughter. Final shot: a slow-motion crane pull-back as he lets go and she pedals freely down the street, golden hour light, lens flares, warm cinematic color grade, shot on 35mm film, shallow depth of field."
},
"negative_prompt": {
"title": "Richiesta negativa",
"description": "Elementi da escludere dal video.",
"type": "string"
},
"duration": {
"title": "Durata",
"description": "Durata del video in secondi.",
"type": "integer",
"minimum": 3,
"maximum": 15,
"default": 5
},
"aspect_ratio": {
"title": "Proporzioni",
"description": "Rapporto di uscita del video generato.",
"type": "string",
"enum": [
"16:9",
"9:16",
"1:1"
],
"default": "16:9"
},
"cfg_scale": {
"title": "Scala CFG",
"description": "Forza di guida rapida.",
"type": "float",
"minimum": 0,
"maximum": 1,
"default": 0.5
},
"sound": {
"title": "Suono",
"description": "Genera audio sincronizzato insieme al video.",
"type": "boolean",
"default": true
},
"shot_type": {
"title": "Tipo di tiro",
"description": "Modalità di modifica: intelligente (impostazione predefinita, determina automaticamente l'ambito) o personalizzata.",
"type": "string",
"enum": [
"intelligent",
"customize"
],
"default": "intelligent"
},
"multi_prompt": {
"title": "Richiesta multipla",
"description": "Segmenti di istruzioni aggiuntivi per guidare le transizioni e le progressioni delle scene. La somma delle durate in multi_prompt deve essere uguale alla durata totale del video",
"type": "array",
"items": {
"prompt": {
"title": "Prompt",
"description": "Segmenti di istruzioni aggiuntivi per guidare le transizioni e le progressioni delle scene.",
"type": "string",
"format": "str"
},
"duration": {
"title": "Durata",
"description": "Durata del segmento di prompt in secondi.",
"type": "integer",
"format": "int_slider_with_range",
"minimum": 3,
"maximum": 15,
"default": 5
}
},
"maxItems": 20,
"minItems": 0
}
}
}{
"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.