Skip to Content
Video ModelsPixverse V5

Pixverse V5

Overview

Pixverse V5 is a versatile video generation model that supports both text-to-video and image-to-video modes with multiple resolution options and flexible aspect ratios.

Test API KEY: key_00000000000000000000000000000000

Endpoints

1. Create Task

Request

POST https://api.pixwith.ai/api/task/create

Headers

HeaderValueRequired
Content-Typeapplication/jsonYes
Api-Key{API_KEY}Yes

Request Parameters

ParameterTypeRequiredDescription
promptstringYesThe input prompt (e.g., “A cinematic shot of a cat walking”)
image_urlsarrayConditional[“https://cdn.pixwith.ai/xxx.jpg ”]. Required for image-to-video mode. Provide 1 image.
model_idstringYes2-27
optionsobjectYesConfiguration options for the task
options.prompt_optimizationbooleanYesIf true, all prompt words will be automatically translated into English.
options.num_outputsintYesNumber of videos to generate. Valid values: 1, 2, 3, or 4
options.resolutionstringYesResolution of the output. Valid values: '360p', '540p', '720p', or '1080p'
options.aspect_ratiostringYesAspect ratio of the output. Valid values: '16:9', '4:3', '1:1', '3:4', or '9:16'
options.durationintYesDuration in seconds. Valid values: 5 or 8

Example Request - Text-to-Video

{ "prompt": "A cinematic shot of a cat walking through a beautiful garden", "model_id": "2-27", "options": { "prompt_optimization": true, "num_outputs": 1, "resolution": "720p", "aspect_ratio": "16:9", "duration": 5 } }

Example Request - Image-to-Video

{ "prompt": "The cat starts walking towards the camera with smooth motion", "image_urls": [ "https://cdn.pixwith.ai/images/cf0ddb5ad6a0f0c85ab4d1dceb9fd89c_0.jpeg" ], "model_id": "2-27", "options": { "prompt_optimization": true, "num_outputs": 1, "resolution": "720p", "aspect_ratio": "16:9", "duration": 5 } }

Response Parameters

ParameterTypeDescription
codeint1=success, 0=error
messagestringSuccess and failure messages
dataobject
data.task_idstring
data.estimated_timeintEstimated time in seconds

Response

{ "code": 1, "message": "success", "data": { "task_id": "d425ab4dc256f0ebaa84862b9cea8a3d", "estimated_time": 150 } }
Last updated on