Skip to main content
POST
Generate AI Video
Create dynamic AI-generated videos from text prompts or image references.

Create a Video Generation Task

Authentication

All API requests require a Bearer Token.

Usage Guide

  • Create short AI videos of 5–10 seconds.
  • Generate videos from text descriptions or reference images.
  • Suitable for social media content, digital art, and concept visualization.

Parameters

Prompt

string
required
Use prompt to be specific about the subject, action, style, and setting. With an image, describe how to animate or modify the image..Maximum length: 1,800 characters.

Image Reference

string
imageUrl is optional. When supplied, the AI creates a video by animating or extending the referenced image.When imageUrl is provided, aspectRatio is invalid and the final aspect ratio is determined by the image.

Duration

number
required
Generated video duration in seconds.Supported values:
  • 5
  • 10
Note: 10-second videos do not support 1080p resolution.
Default: 5

Quality

string
required
Specify the resolution of the output video.Supported output resolutions:
  • 720p
  • 1080p
Note: 10-second videos do not support 1080p resolution.
Default: 720p

Aspect Ratio

string
Applies to multi-image generation. In single-image mode, video dimensions follow the source image dimensions.Supported values: 3:4, 4:3, 1:1, 16:9, 9:16.For text-only generation, aspectRatio must be explicitly specified.

Watermark

string
Use waterMark controls watermark text in the bottom-right corner.
  • Empty string: no watermark.
  • Non-empty string: displays the specified text.
Example: whollyapi.com

Request Example

Text-to-Video Example

Image-to-Video Example

Create Task Response

number
Response status code.
string
Response message. Contains the error description when the request fails.Example: success
object
required
The task data object containing task id.
string
required
The unique identifier for this task.Example: ee603959-98c4-debb-bgfgbfg45

Query Task Status

After submitting a task, use the unified query endpoint to check the task progress and retrieve the generated results.

Get Task Details

Check task status, monitor generation progress, and retrieve results.

Error Response

Developer Notes

  • Generated videos are stored for 14 days before automatic deletion.
  • Text-only generation requires aspectRatio.
  • With imageUrl, the image determines the final aspect ratio.
  • 10-second videos cannot be generated at 1080p.

Response Status Codes

The source also documents these broader error codes: