Generate Video
AI Studio
Generate Video
Generate an AI video from a text prompt using a selection of AI video models
POST
Generate Video
Overview
The Generate Video API creates an AI-generated video based on a text prompt. You can choose from multiple AI video models, specify an aspect ratio and duration, and optionally provide a first frame image, a video to extend, or reference images to guide the output. The API returns a job ID that you can use to poll for the result once the video generation is complete.A valid API key is required to use this endpoint. Obtain your API key from the API Access page in your Pictory dashboard.
API Endpoint
Request Headers
string
required
API key for authentication (starts with
pictai_)string
required
Must be
application/jsonRequest Body
string
required
A text description of the video you want to generate. The prompt must be between 5 and 5,000 characters.Example:
"A drone flying over a lush green forest with sunlight filtering through the canopy"string
The AI model to use for video generation. Each model offers different quality levels, durations, and aspect ratios. Defaults to
pixverse5.5 if not specified.Supported models: veo3.1, veo3.1_fast, pixverse5.5Model Capabilities and Pricing:string
The aspect ratio for the generated video. The available values depend on the selected model. Defaults to the first supported aspect ratio of the chosen model. Refer to the model table above for supported aspect ratios per model.
string
The duration of the generated video. The available values depend on the selected model. Defaults to the first supported duration of the chosen model. Refer to the model table above for supported durations per model.
string
An optional URL of an image to use as the first frame of the video. This guides the visual starting point for the generation. The URL must be a valid, publicly accessible URI.
string
An optional URL of an existing video to extend. The AI model will generate additional content that continues from the end of the provided video. The URL must be a valid, publicly accessible URI.
array
An optional array of image URLs (1 to 3) to use as visual references for the generated video. The AI model will use these images to influence the style and content of the output. Each URL must be a valid, publicly accessible URI.
string
An optional webhook URL that will receive a notification when the video generation job completes. The URL must be a valid URI.
Response
Success Response (200)
boolean
true when the job has been created successfullyobject
string
The unique identifier (UUID) of the video generation job. Use this ID to poll for the result using the Get Video Generation Job endpoint.
Response Examples
Status Codes
Parameter Exclusivity
ThefirstFrameImageUrl, extendVideoUrl, and referenceImageUrls parameters are mutually exclusive. You may use only one of these in a single request. Providing more than one will result in a 400 validation error.
Code Examples
Next Steps
After receiving thejobId, poll for the video generation result using the Get Video Generation Job endpoint. Use a polling interval of 10–30 seconds to check the job status.