PixVerse V4.5 Text-to-Video
curl --request POST \
--url https://api.highwayapi.ai/v3/async/pixverse-v4.5-t2v \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"prompt": "<string>",
"aspect_ratio": "<string>",
"resolution": "<string>",
"negative_prompt": "<string>",
"fast_mode": true,
"style": "<string>",
"seed": 123
}
'import requests
url = "https://api.highwayapi.ai/v3/async/pixverse-v4.5-t2v"
payload = {
"prompt": "<string>",
"aspect_ratio": "<string>",
"resolution": "<string>",
"negative_prompt": "<string>",
"fast_mode": True,
"style": "<string>",
"seed": 123
}
headers = {
"Content-Type": "<content-type>",
"Authorization": "<authorization>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '<content-type>', Authorization: '<authorization>'},
body: JSON.stringify({
prompt: '<string>',
aspect_ratio: '<string>',
resolution: '<string>',
negative_prompt: '<string>',
fast_mode: true,
style: '<string>',
seed: 123
})
};
fetch('https://api.highwayapi.ai/v3/async/pixverse-v4.5-t2v', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.highwayapi.ai/v3/async/pixverse-v4.5-t2v",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'prompt' => '<string>',
'aspect_ratio' => '<string>',
'resolution' => '<string>',
'negative_prompt' => '<string>',
'fast_mode' => true,
'style' => '<string>',
'seed' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.highwayapi.ai/v3/async/pixverse-v4.5-t2v"
payload := strings.NewReader("{\n \"prompt\": \"<string>\",\n \"aspect_ratio\": \"<string>\",\n \"resolution\": \"<string>\",\n \"negative_prompt\": \"<string>\",\n \"fast_mode\": true,\n \"style\": \"<string>\",\n \"seed\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.highwayapi.ai/v3/async/pixverse-v4.5-t2v")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.body("{\n \"prompt\": \"<string>\",\n \"aspect_ratio\": \"<string>\",\n \"resolution\": \"<string>\",\n \"negative_prompt\": \"<string>\",\n \"fast_mode\": true,\n \"style\": \"<string>\",\n \"seed\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.highwayapi.ai/v3/async/pixverse-v4.5-t2v")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '<content-type>'
request["Authorization"] = '<authorization>'
request.body = "{\n \"prompt\": \"<string>\",\n \"aspect_ratio\": \"<string>\",\n \"resolution\": \"<string>\",\n \"negative_prompt\": \"<string>\",\n \"fast_mode\": true,\n \"style\": \"<string>\",\n \"seed\": 123\n}"
response = http.request(request)
puts response.read_body{
"task_id": "<string>"
}Video
PixVerse V4.5 Text-to-Video
POST
/
v3
/
async
/
pixverse-v4.5-t2v
PixVerse V4.5 Text-to-Video
curl --request POST \
--url https://api.highwayapi.ai/v3/async/pixverse-v4.5-t2v \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"prompt": "<string>",
"aspect_ratio": "<string>",
"resolution": "<string>",
"negative_prompt": "<string>",
"fast_mode": true,
"style": "<string>",
"seed": 123
}
'import requests
url = "https://api.highwayapi.ai/v3/async/pixverse-v4.5-t2v"
payload = {
"prompt": "<string>",
"aspect_ratio": "<string>",
"resolution": "<string>",
"negative_prompt": "<string>",
"fast_mode": True,
"style": "<string>",
"seed": 123
}
headers = {
"Content-Type": "<content-type>",
"Authorization": "<authorization>"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': '<content-type>', Authorization: '<authorization>'},
body: JSON.stringify({
prompt: '<string>',
aspect_ratio: '<string>',
resolution: '<string>',
negative_prompt: '<string>',
fast_mode: true,
style: '<string>',
seed: 123
})
};
fetch('https://api.highwayapi.ai/v3/async/pixverse-v4.5-t2v', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.highwayapi.ai/v3/async/pixverse-v4.5-t2v",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'prompt' => '<string>',
'aspect_ratio' => '<string>',
'resolution' => '<string>',
'negative_prompt' => '<string>',
'fast_mode' => true,
'style' => '<string>',
'seed' => 123
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: <content-type>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.highwayapi.ai/v3/async/pixverse-v4.5-t2v"
payload := strings.NewReader("{\n \"prompt\": \"<string>\",\n \"aspect_ratio\": \"<string>\",\n \"resolution\": \"<string>\",\n \"negative_prompt\": \"<string>\",\n \"fast_mode\": true,\n \"style\": \"<string>\",\n \"seed\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "<content-type>")
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.highwayapi.ai/v3/async/pixverse-v4.5-t2v")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.body("{\n \"prompt\": \"<string>\",\n \"aspect_ratio\": \"<string>\",\n \"resolution\": \"<string>\",\n \"negative_prompt\": \"<string>\",\n \"fast_mode\": true,\n \"style\": \"<string>\",\n \"seed\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.highwayapi.ai/v3/async/pixverse-v4.5-t2v")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = '<content-type>'
request["Authorization"] = '<authorization>'
request.body = "{\n \"prompt\": \"<string>\",\n \"aspect_ratio\": \"<string>\",\n \"resolution\": \"<string>\",\n \"negative_prompt\": \"<string>\",\n \"fast_mode\": true,\n \"style\": \"<string>\",\n \"seed\": 123\n}"
response = http.request(request)
puts response.read_body{
"task_id": "<string>"
}Generate high-quality videos from text descriptions using PixVerse’s latest v4.5 model. Supports multiple resolutions, aspect ratios, and motion modes for diverse video creation.
This is an asynchronous API and will only return the task_id of the asynchronous task. You should use this task_id to request the Get Task Result API to retrieve the video generation result.
Request Headers
string
required
Enum value:
application/jsonstring
required
Bearer authentication format: Bearer {{API Key}}.
Request Body
string
required
Text prompt for video generation.
- Maximum length: 2048 characters
- Clearly describe the desired scene and actions
string
required
Video aspect ratio. Default value:
Accepted values:
16:9Accepted values:
16:9, 4:3, 1:1, 3:4, 9:16string
required
Video quality. Default value:
Accepted values:
540pAccepted values:
- When fast_mode is false:
360p,540p,720p,1080p - When fast_mode is true:
360p,540p,720p
string
Negative prompt for generation.
- Maximum length: 2048 characters
boolean
Whether to enable fast mode, which generates videos faster but may reduce quality and lower the price.Default value:
false.string
Style preset (v3.5 only).
Accepted values:
Accepted values:
anime, 3d_animation, clay, comic, cyberpunkinteger
Random seed used for generation.
Response Information
string
required
The task_id of the asynchronous task. You should use this task_id to request the Get Task Result API to obtain the generation result.
⌘I