post https://api.aivideoapi.com/runway/generate/image
Example body:
{
"img_prompt": "https://files.aivideoapi.com/example/ocean.jpg",
"model": "gen3",
"image_as_end_frame": false,
"flip": false,
"motion": 5,
"seed": 0,
"callback_url": "",
"time": 5
}
Guidance
img_prompt
(required, string): img url or base64 image- If you see the error about
The img_prompt should be a direct, unprotected image link
, you may need to checkcontent_type
to beimage/png
,image/jpeg
,image/webp
orimage/jpg
- If you see the error about
model
(optional, string): default to begen3
. Image to Video model will be usingGen3 Alpha Turbo
if model isgen3
image_as_end_frame
(optional, bool): default to be false. If true you'll assign the input image as the last frameflip
(optional, bool): default to be false. TheGen3 Alpha Turbo
model has a fixed video resolution of1280x768
or768*1280
. If you wanna use the portrait mode just set theflip
to betrue
motion
(optional, int): default to be 5; Increase or decrease the intensity of motion in your video. Higher values result in more motion. Gen3 Alpha won't use this parameters.seed
(optional, int): default to be 0, means random value.callback_url
(optional, string): Thecallback_url
is where a GET request will be sent once the job finishes, whether it’s successful or not. It will include the UUID in this format:<your-callback-url>?uuid=<uuid>
time
(optional, string): default 5s for gen3 model, and 4s for gen2 model. You can use either 5 or 10 for gen3 models