Video generation
Learn how to generate videos from text prompts
Alting offers a standardized API for generating videos using text prompts. This guide will show you how to generate videos using one of our supported models.
Quickstart
To generate videos from text prompts, you can use the video generations endpoint in the REST API, as seen in the examples below.
Choosing a model
When making a video generation request, you'll need to specify which model to use. We offer several video generation models with different capabilities and pricing.
Request parameters
The video generation endpoint accepts the following parameters:
- model (required): The ID of the model to use for generation
- prompt (required): A text description of the video you want to generate
Response format
The initial response will include a generation ID that you can use to check the status of your request. The generation endpoint is asynchronous, so you'll need to poll the status endpoint until the video is ready.
Once the video is ready, the status endpoint will return a URL where you can download the generated video.