Skip to main content
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"
}
Use this endpoint to animate one source image into a Runway video.

Before you call it

  • Send the required X-Runway-Version header, for example 2024-11-06
  • Use model: gen3a_turbo
  • Provide a stable HTTPS promptImage
  • Start with duration: 5 and a supported ratio value for the selected Runway model/version

Duration and ratio

SettingSupported valuesDefault starting pointBoundary behavior
durationRunway model/version dependent; use 5 or 10 for the broadest compatibility5CometAPI forwards the value to Runway. If the selected model/version rejects it, retry with 5.
ratio with X-Runway-Version: 2024-11-06Runway model/version dependent resolution-style values such as 1280:768, 768:1280, 1280:720, or 720:12801280:768Request values can normalize in the completed media; inspect the finished video before relying on exact pixels.
ratio with older compatibility versions16:9, 9:16, or the resolution-style values accepted by the selected model/version16:9 or 1280:768Prefer the current Runway resolution-style values for production integrations.
Runway official-format requests use 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

1

Submit the image-to-video request

Create the task with a source image and an optional short motion prompt.
2

Store the returned id

Save the task id for later polling.
3

Poll task status

Use Get Task Details. If the first poll returns task_not_exist, wait a few seconds and retry.

Authorizations

Authorization
string
header
required

Bearer token authentication. Use your CometAPI key.

Headers

X-Runway-Version
string
required

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

Body

application/json
promptImage
string
default:https://cdn.britannica.com/70/234870-050-D4D024BB/Orange-colored-cat-yawns-displaying-teeth.jpg
required

Source image URL.

model
string
default:gen3a_turbo
required

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
default:false

Whether to add a watermark to the output video.

duration
integer
default: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
default: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.

Response

200 - application/json

Task accepted.

id
string
required