Passer au contenu principal
POST
/
runwayml
/
v1
/
image_to_video
Create a Runway image-to-video task
curl --request POST \
  --url https://api.cometapi.com/runwayml/v1/image_to_video \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Runway-Version: <x-runway-version>' \
  --data '
{
  "promptImage": "https://cdn.britannica.com/70/234870-050-D4D024BB/Orange-colored-cat-yawns-displaying-teeth.jpg",
  "model": "gen3a_turbo"
}
'
{
  "id": "d0658ae1-bbdd-4adc-aaba-fd8070e14d79"
}

Documentation Index

Fetch the complete documentation index at: https://apidoc.cometapi.com/llms.txt

Use this file to discover all available pages before exploring further.

Utilisez ce endpoint pour animer une image source en une vidéo Runway.

Avant de l’appeler

  • Envoyez l’en-tête X-Runway-Version requis, par exemple 2024-11-06
  • Utilisez model: gen3a_turbo
  • Fournissez un promptImage HTTPS stable
  • Commencez avec duration: 5 et un ratio courant tel que 1280:720

Flux de la tâche

1

Soumettre la requête image-to-video

Créez la tâche avec une image source et un court prompt de mouvement facultatif.
2

Stocker l’id retourné

Enregistrez l’id de la tâche pour l’interroger plus tard.
3

Interroger le statut de la tâche

Utilisez Obtenir les détails de la tâche. Si la première interrogation renvoie task_not_exist, attendez quelques secondes puis réessayez.

Autorisations

Authorization
string
header
requis

Bearer token authentication. Use your CometAPI key.

En-têtes

X-Runway-Version
string
requis

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

Corps

application/json
promptImage
string
défaut:https://cdn.britannica.com/70/234870-050-D4D024BB/Orange-colored-cat-yawns-displaying-teeth.jpg
requis

Source image URL.

model
string
défaut:gen3a_turbo
requis

Runway image-to-video model ID. Choose a current model from the Models page.

seed
integer

Random seed for reproducible results. Range: 0–999999999.

promptText
string

Text prompt describing the desired motion or scene. Maximum 512 characters.

watermark
boolean
défaut:false

Whether to add a watermark to the output video.

duration
integer
défaut:5

Video duration in seconds. Accepted values: 5 or 10.

ratio
enum<string>
défaut:1280:720

Aspect ratio of the output video.

Options disponibles:
1280:720,
720:1280,
1104:832,
832:1104,
960:960,
1584:672,
1280:768,
768:1280

Réponse

200 - application/json

Task accepted.

id
string
requis