gen3a_turbo

Description of the gen3a_turbo model: Pricing, API Reference, Examples.

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

  • gen3a_turbo

An advanced AI model designed for converting images into high-quality videos. It allows users to generate dynamic video content with smooth motion and detailed textures from still images or text prompts, significantly enhancing creative workflows in multimedia production.

Setup your API Key

If you don’t have an API key for the AI/ML API yet, feel free to use our Quickstart guide.

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
Query parameters
generation_idstringRequired
Responses
200

Successfully generated video

application/json
get
/v2/video/generations
200

Successfully generated video

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: ~25 sec. You may also check out the original video in 1280×720 resolution.

"What... the hell are you?" (c)

Last updated

Was this helpful?