Gerar um vídeo a partir de um vídeo
Use o CometAPI Runway POST /runwayml/v1/video_to_video para iniciar tarefas de geração de vídeo para vídeo, definir X-Runway-Version e transformar clipes de origem.
Use este endpoint para transformar um clipe de origem existente com o fluxo de trabalho de vídeo para vídeo do Runway. Ele inicia uma tarefa assíncrona em vez de retornar a saída final imediatamente.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.
Antes de chamá-lo
- Prepare um vídeo de origem que atenda aos requisitos de entrada do provedor
- Inclua o cabeçalho
X-Runway-Versionobrigatório para o conjunto de recursos que você deseja - Comece com um prompt curto que descreva a mudança, não um storyboard completo
Fluxo da tarefa
Enviar o clipe de origem e o prompt
Consultar detalhes da tarefa
Autorizações
Bearer token authentication. Use your CometAPI key.
Cabeçalhos
Runway API version header, for example 2024-11-06.
Corpo
HTTPS URL of the source video, or a base64 data URI containing the video.
Text prompt describing the desired output. Maximum 1000 characters.
Random seed for reproducible results. Range: 0–4294967295.
Model variant to use.
Optional reference images to guide generation. Each item must include type (e.g. image) and uri (HTTPS URL).
Aspect ratio of the output video, e.g. 1280:720.
Resposta
success
The ID of the task that was created. Use this to retrieve the task later.