Skip to main content
POST
cURL
Usa questo endpoint per creare un task Runway di generazione di immagini.

Note sull’utilizzo

  • Invia l’header richiesto X-Runway-Version, ad esempio 2024-11-06
  • Usa model: gen4_image
  • Questa route richiede almeno un elemento referenceImages — una richiesta solo testuale restituisce reference_images_empty

Flusso del task

1

Invia la richiesta di generazione

Invia promptText, ratio, model e almeno un oggetto referenceImages.
2

Memorizza l'id restituito

Conserva l’id restituito, perché questa route è asincrona.
3

Interroga il task

Usa Ottenere un task Runway. Se un’interrogazione immediata restituisce task_not_exist, attendi qualche secondo e riprova.

Autorizzazioni

Authorization
string
header
obbligatorio

Bearer token authentication. Use your CometAPI key.

Intestazioni

X-Runway-Version
string
obbligatorio

Runway version header, for example 2024-11-06.

Corpo

application/json
promptText
string
predefinito:A paper boat floating on calm water at sunrise.
obbligatorio

A non-empty string up to 1000 characters.

ratio
string
predefinito:1280:720
obbligatorio

Aspect ratio of the output image, e.g. 1280:720.

seed
integer
predefinito:1
obbligatorio

Random seed for reproducible results.

model
string
predefinito:gen4_image
obbligatorio

The model variant to use.

referenceImages
object[]
obbligatorio

An array of up to three images to be used as references. At least one item is required. referenceImages is required.

contentModeration
object
obbligatorio

Risposta

200 - application/json

Task accepted.

id
string
obbligatorio