Image-to-Video
POST /runway/pro/generate creates Runway GEN-4 video from reference images, with raw graphic transfer support and X-Runway-Version control.
generate route with one or more reference images.
Before you call it
- Send the required
X-Runway-Versionheader, for example2024-11-06 - Use
model: gen4 - Provide the source
imageand the prompt that describes motion or transformation - Keep the first request simple before layering style and motion-vector tuning
Duration and ratio
| Setting | Supported values | Default starting point | Boundary behavior |
|---|---|---|---|
options.seconds | 5, 10 for standard Runway video generations | 5 | Use one of the model-supported clip lengths for production requests. |
ratio | 1280:720, 720:1280, or the ratio accepted by the selected compatibility model | 1280:720 | Keep the source image close to the requested frame shape to avoid cropping. |
ratio required by the Runway compatibility route. In user-facing terms, 1280:720 targets 1280x720 and 720:1280 targets 720x1280.
Task flow
Create the compatibility-format task
Poll the task
task_not_exist, wait a few seconds and retry.Authorizations
Bearer token authentication. Use your CometAPI key.
Headers
Optional Runway version header, for example 2024-11-06.
Body
Webhook URL that receives a POST request with the result when the task completes.
Requested output frame shape. Use colon-separated values such as 1280:720 or 720:1280; read them as 1280x720 and 720x1280 targets.
Text prompt describing the desired video content or motion.
Model version to use, e.g. gen4.
URL of the source image to animate.
Artistic style for the generated video, e.g. cinematic.
Advanced generation options.
URL of the end-frame image. When provided, the video transitions toward this frame.