Image to Video
Use CometAPI to call Runway image_to_video and convert a still image URL into raw video output, with X-Runway-Version support for compatibility.
Before you call it
- Send the required
X-Runway-Versionheader, for example2024-11-06 - Use
model: gen3a_turbo - Provide a stable HTTPS
promptImage - Start with
duration: 5and a supported ratio value for the selected Runway model/version
Duration and ratio
| Setting | Supported values | Default starting point | Boundary behavior |
|---|---|---|---|
duration | Runway model/version dependent; use 5 or 10 for the broadest compatibility | 5 | CometAPI forwards the value to Runway. If the selected model/version rejects it, retry with 5. |
ratio with X-Runway-Version: 2024-11-06 | Runway model/version dependent resolution-style values such as 1280:768, 768:1280, 1280:720, or 720:1280 | 1280:768 | Request values can normalize in the completed media; inspect the finished video before relying on exact pixels. |
ratio with older compatibility versions | 16:9, 9:16, or the resolution-style values accepted by the selected model/version | 16:9 or 1280:768 | Prefer the current Runway resolution-style values for production integrations. |
ratio, not size. Read resolution-style ratio values as their WxH equivalent: 1280:720 targets 1280x720, 720:1280 targets 720x1280, and 1280:768 can still render as 1280x720 depending on the selected model/version.
Task flow
Submit the image-to-video request
Poll task status
task_not_exist, wait a few seconds and retry.Authorizations
Bearer token authentication. Use your CometAPI key.
Headers
Runway version header, for example 2024-11-06.
Body
Source image URL.
Runway image-to-video model ID. Choose an available model from the Models page.
Random seed for reproducible results. Range: 0–999999999.
Text prompt describing the desired motion or scene. Maximum 512 characters.
Whether to add a watermark to the output video.
Video duration in seconds. Runway support is model/version dependent; use 5 or 10 for the broadest compatibility. CometAPI forwards this value to Runway.
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.
Response
Task accepted.