gen4_turbo

This documentation is valid for the following list of our models:

  • runway/gen4_turbo

This release brings faster, more scalable AI video generation with higher visual quality. This version allows for 10-second video generation. Gen4 Turbo delivers realistic motion, coherent subjects and styles across frames, and high prompt fidelity, supported by strong world modeling.

How to Make a Call

Step-by-Step Instructions

Generating a video using this model involves sequentially calling two endpoints:

  • The first one is for creating and sending a video generation task to the server (returns a generation ID).

  • The second one is for requesting the generated video from the server using the generation ID received from the first endpoint.

Below, you can find both corresponding API schemas.

API Schemas

Video Generation

You can generate a video using this API. In the basic setup, you need only an image URL and the aspect ratio of the desired result. The model can detect and use the aspect ratio from the input image, but for correct operation in this case, the image's width-to-height ratio must be between 0.5 and 2.

post
Body
modelstring · enumRequiredPossible values:
promptstring · max: 1000Optional

The text description of the scene, subject, or action to generate in the video.

image_urlstring · uriRequired

A HTTPS URL or data URI containing an encoded image to be used as the first frame of the generated video.

tail_image_urlstring · uriOptional

A HTTPS URL or data URI containing an encoded image to be used as the last frame of the generated video.

aspect_ratiostring · enumOptional

The aspect ratio of the generated video.

Default: 16:9Possible values:
durationinteger · enumOptional

The length of the output video in seconds.

Default: 5Possible values:
seedinteger · max: 4294967295Optional

Varying the seed integer is a way to get different results for the same other request parameters. Using the same value for an identical request will produce similar results. If unspecified, a random number is chosen.

Responses
200Success
application/json
post
/v2/video/generations
200Success

Retrieve the generated video from the server

After sending a request for video generation, this task is added to the queue. This endpoint lets you check the status of a video generation task using its id, obtained from the endpoint described above. If the video generation task status is complete, the response will include the final result — with the generated video URL and additional metadata.

get
Authorizations
AuthorizationstringRequired

Bearer key

Query parameters
generation_idstringRequiredExample: <REPLACE_WITH_YOUR_GENERATION_ID>
Responses
200Success
application/json
get
/v2/video/generations
200Success

Full Example: Generating and Retrieving the Video From the Server

How it works

Let’s take a beautiful but somewhat barren mountain landscape:

Then ask Gen4 Turbo to populate it with an epic reptilian creature using the following prompt:

"A menacing evil dragon appears in a distance above the tallest mountain, then rushes toward the camera with its jaws open, revealing massive fangs. We see it's coming"

We combine both methods above in one program: first it sends a video generation request to the server, then it checks for results every 10 seconds.

Response

The following video was generated by running the code example above. Processing time: ~65 sec. You may also check out the original video in 1280×720 resolution.

Just a humble GIF preview... and yet, somehow still scary!

Last updated

Was this helpful?