Skip to main content
POST
cURL
Use este endpoint para animar uma imagem de origem em um vídeo do Runway.

Antes de chamar

  • Envie o cabeçalho obrigatório X-Runway-Version, por exemplo 2024-11-06
  • Use model: gen3a_turbo
  • Forneça um promptImage HTTPS estável
  • Comece com duration: 5 e um valor de ratio compatível com o modelo/versão do Runway selecionado

Duração e ratio

As solicitações no formato oficial do Runway usam ratio, não size. Interprete os valores de ratio no estilo resolução como o equivalente em WxH: 1280:720 corresponde a 1280x720, 720:1280 corresponde a 720x1280, e 1280:768 ainda pode ser renderizado como 1280x720 dependendo do modelo/versão selecionado.

Fluxo da tarefa

1

Enviar a solicitação de image-to-video

Crie a tarefa com uma imagem de origem e um Prompt curto de movimento opcional.
2

Armazenar o id retornado

Salve o id da tarefa para consulta posterior.
3

Consultar o status da tarefa

Use Obter uma tarefa do Runway. Se a primeira consulta retornar task_not_exist, aguarde alguns segundos e tente novamente.

Autorizações

Authorization
string
header
obrigatório

Bearer token authentication. Use your CometAPI key.

Cabeçalhos

X-Runway-Version
string
obrigatório

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

Corpo

application/json
promptImage
string
padrão:https://cdn.britannica.com/70/234870-050-D4D024BB/Orange-colored-cat-yawns-displaying-teeth.jpg
obrigatório

Source image URL.

model
string
padrão:gen3a_turbo
obrigatório

Runway image-to-video model ID. Choose an available 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
padrão:false

Whether to add a watermark to the output video.

duration
integer
padrão:5

Video duration in seconds. Runway support is model/version dependent; use 5 or 10 for the broadest compatibility. CometAPI forwards this value to Runway.

ratio
string
padrão:1280:768

Requested output ratio. Accepted values are Runway model/version dependent. With X-Runway-Version 2024-11-06, use a resolution-style value accepted by the selected model, such as 1280:768, 768:1280, 1280:720, or 720:1280. Read these as WxH targets, but completed media may normalize, so inspect the returned file before relying on exact pixels.

Resposta

200 - application/json

Task accepted.

id
string
obrigatório