PixVerse V6 Transition
curl --request POST \
--url https://api.aihubmax.com/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "pixverse-v6-transition",
"prompt": "Seamlessly transition from the snowy mountain to a summer green valley",
"image_url": "https://example.com/mountain-start.jpg",
"image_tail_url": "https://example.com/valley-end.jpg",
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": 5,
"generate_audio": true,
"thinking_type": "auto"
}
'import requests
url = "https://api.aihubmax.com/v1/videos/generations"
payload = {
"model": "pixverse-v6-transition",
"prompt": "Seamlessly transition from the snowy mountain to a summer green valley",
"image_url": "https://example.com/mountain-start.jpg",
"image_tail_url": "https://example.com/valley-end.jpg",
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": 5,
"generate_audio": True,
"thinking_type": "auto"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'pixverse-v6-transition',
prompt: 'Seamlessly transition from the snowy mountain to a summer green valley',
image_url: 'https://example.com/mountain-start.jpg',
image_tail_url: 'https://example.com/valley-end.jpg',
aspect_ratio: '16:9',
resolution: '720p',
duration: 5,
generate_audio: true,
thinking_type: 'auto'
})
};
fetch('https://api.aihubmax.com/v1/videos/generations', 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.aihubmax.com/v1/videos/generations",
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([
'model' => 'pixverse-v6-transition',
'prompt' => 'Seamlessly transition from the snowy mountain to a summer green valley',
'image_url' => 'https://example.com/mountain-start.jpg',
'image_tail_url' => 'https://example.com/valley-end.jpg',
'aspect_ratio' => '16:9',
'resolution' => '720p',
'duration' => 5,
'generate_audio' => true,
'thinking_type' => 'auto'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.aihubmax.com/v1/videos/generations"
payload := strings.NewReader("{\n \"model\": \"pixverse-v6-transition\",\n \"prompt\": \"Seamlessly transition from the snowy mountain to a summer green valley\",\n \"image_url\": \"https://example.com/mountain-start.jpg\",\n \"image_tail_url\": \"https://example.com/valley-end.jpg\",\n \"aspect_ratio\": \"16:9\",\n \"resolution\": \"720p\",\n \"duration\": 5,\n \"generate_audio\": true,\n \"thinking_type\": \"auto\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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.aihubmax.com/v1/videos/generations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"pixverse-v6-transition\",\n \"prompt\": \"Seamlessly transition from the snowy mountain to a summer green valley\",\n \"image_url\": \"https://example.com/mountain-start.jpg\",\n \"image_tail_url\": \"https://example.com/valley-end.jpg\",\n \"aspect_ratio\": \"16:9\",\n \"resolution\": \"720p\",\n \"duration\": 5,\n \"generate_audio\": true,\n \"thinking_type\": \"auto\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aihubmax.com/v1/videos/generations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"pixverse-v6-transition\",\n \"prompt\": \"Seamlessly transition from the snowy mountain to a summer green valley\",\n \"image_url\": \"https://example.com/mountain-start.jpg\",\n \"image_tail_url\": \"https://example.com/valley-end.jpg\",\n \"aspect_ratio\": \"16:9\",\n \"resolution\": \"720p\",\n \"duration\": 5,\n \"generate_audio\": true,\n \"thinking_type\": \"auto\"\n}"
response = http.request(request)
puts response.read_body{
"created": 1757165031,
"id": "task-unified-1757165031-uyujaw3d",
"model": "<string>",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 45
},
"type": "video"
}{
"error": {
"message": "请求格式错误",
"type": "invalid_request_error"
}
}{
"error": {
"message": "API密钥无效",
"type": "authentication_error"
}
}{
"error": {
"message": "账户余额不足",
"type": "insufficient_quota"
}
}{
"error": {
"message": "参数校验失败",
"type": "validation_error"
}
}{
"error": {
"message": "请求频率超限",
"type": "rate_limit_error"
}
}{
"error": {
"message": "服务器内部错误",
"type": "server_error"
}
}{
"error": {
"message": "服务暂不可用,请稍后重试",
"type": "service_unavailable"
}
}PixVerse V6
PixVerse V6 转场视频
- PixVerse V6 转场视频模型,基于起始图片生成过渡视频,可选尾帧图片约束结尾画面
- 支持 1-15 秒与 360p / 540p / 720p / 1080p 输出
- 支持风格化、音频生成、多镜头与提示词优化
- 异步处理模式,使用返回的任务ID 进行查询
- 生成的视频链接,有效期为24小时,请尽快保存
POST
/
v1
/
videos
/
generations
PixVerse V6 Transition
curl --request POST \
--url https://api.aihubmax.com/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "pixverse-v6-transition",
"prompt": "Seamlessly transition from the snowy mountain to a summer green valley",
"image_url": "https://example.com/mountain-start.jpg",
"image_tail_url": "https://example.com/valley-end.jpg",
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": 5,
"generate_audio": true,
"thinking_type": "auto"
}
'import requests
url = "https://api.aihubmax.com/v1/videos/generations"
payload = {
"model": "pixverse-v6-transition",
"prompt": "Seamlessly transition from the snowy mountain to a summer green valley",
"image_url": "https://example.com/mountain-start.jpg",
"image_tail_url": "https://example.com/valley-end.jpg",
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": 5,
"generate_audio": True,
"thinking_type": "auto"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'pixverse-v6-transition',
prompt: 'Seamlessly transition from the snowy mountain to a summer green valley',
image_url: 'https://example.com/mountain-start.jpg',
image_tail_url: 'https://example.com/valley-end.jpg',
aspect_ratio: '16:9',
resolution: '720p',
duration: 5,
generate_audio: true,
thinking_type: 'auto'
})
};
fetch('https://api.aihubmax.com/v1/videos/generations', 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.aihubmax.com/v1/videos/generations",
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([
'model' => 'pixverse-v6-transition',
'prompt' => 'Seamlessly transition from the snowy mountain to a summer green valley',
'image_url' => 'https://example.com/mountain-start.jpg',
'image_tail_url' => 'https://example.com/valley-end.jpg',
'aspect_ratio' => '16:9',
'resolution' => '720p',
'duration' => 5,
'generate_audio' => true,
'thinking_type' => 'auto'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.aihubmax.com/v1/videos/generations"
payload := strings.NewReader("{\n \"model\": \"pixverse-v6-transition\",\n \"prompt\": \"Seamlessly transition from the snowy mountain to a summer green valley\",\n \"image_url\": \"https://example.com/mountain-start.jpg\",\n \"image_tail_url\": \"https://example.com/valley-end.jpg\",\n \"aspect_ratio\": \"16:9\",\n \"resolution\": \"720p\",\n \"duration\": 5,\n \"generate_audio\": true,\n \"thinking_type\": \"auto\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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.aihubmax.com/v1/videos/generations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"pixverse-v6-transition\",\n \"prompt\": \"Seamlessly transition from the snowy mountain to a summer green valley\",\n \"image_url\": \"https://example.com/mountain-start.jpg\",\n \"image_tail_url\": \"https://example.com/valley-end.jpg\",\n \"aspect_ratio\": \"16:9\",\n \"resolution\": \"720p\",\n \"duration\": 5,\n \"generate_audio\": true,\n \"thinking_type\": \"auto\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aihubmax.com/v1/videos/generations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"pixverse-v6-transition\",\n \"prompt\": \"Seamlessly transition from the snowy mountain to a summer green valley\",\n \"image_url\": \"https://example.com/mountain-start.jpg\",\n \"image_tail_url\": \"https://example.com/valley-end.jpg\",\n \"aspect_ratio\": \"16:9\",\n \"resolution\": \"720p\",\n \"duration\": 5,\n \"generate_audio\": true,\n \"thinking_type\": \"auto\"\n}"
response = http.request(request)
puts response.read_body{
"created": 1757165031,
"id": "task-unified-1757165031-uyujaw3d",
"model": "<string>",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 45
},
"type": "video"
}{
"error": {
"message": "请求格式错误",
"type": "invalid_request_error"
}
}{
"error": {
"message": "API密钥无效",
"type": "authentication_error"
}
}{
"error": {
"message": "账户余额不足",
"type": "insufficient_quota"
}
}{
"error": {
"message": "参数校验失败",
"type": "validation_error"
}
}{
"error": {
"message": "请求频率超限",
"type": "rate_limit_error"
}
}{
"error": {
"message": "服务器内部错误",
"type": "server_error"
}
}{
"error": {
"message": "服务暂不可用,请稍后重试",
"type": "service_unavailable"
}
}授权
所有接口均需要使用Bearer Token进行认证
使用时在请求头中添加:
Authorization: Bearer YOUR_API_KEY
请求体
application/json
pixverse-v6-transition:图片转场视频,可选尾帧图片约束结尾画面
示例:
"pixverse-v6-transition"
文本提示词,描述想要生成或延长的视频内容
说明:
- 支持中英文
- 建议明确描述主体、动作、场景与镜头语言
示例:
"A cinematic dolly shot through a neon cyberpunk alley at night"
起始图片的公开 URL
说明:
- 作为转场视频的首帧
- 必须为公开可访问的 URL
示例:
"https://example.com/mountain-start.jpg"
输出视频分辨率
可选值:
360p540p720p— 默认1080p
示例:
"720p"
输出视频时长(秒)
说明:
- 支持
1到15秒 - 默认
5秒
示例:
5
是否生成配套音频
说明:
- 启用后可生成背景音、音效或对白
- 默认关闭
示例:
false
负面提示词,描述不希望出现的元素
说明:
- 可用逗号分隔多个关键词
非必须不要传这个参数。
示例:
"blurry, low quality, watermark"
输出风格
可选值:
anime3d_animationclaycomiccyberpunk
非必须不要传这个参数。
示例:
"cyberpunk"
随机种子
说明:
- 相同参数配合相同 seed 可提高结果复现性
- 不传则随机
非必须不要传这个参数。
示例:
42
结束图片的公开 URL
说明:
- 作为转场视频的尾帧约束
- 不传时由模型根据提示词推导结尾画面
示例:
"https://example.com/valley-end.jpg"
输出视频宽高比
可选值:
16:94:31:13:49:162:33:221:9
示例:
"16:9"
是否启用多镜头生成
说明:
- 启用后可生成带动态镜头变化的多片段视频
非必须不要传这个参数。
示例:
true
提示词优化模式
可选值:
enabled— 总是优化disabled— 不优化auto— 由模型决定
非必须不要传这个参数。
示例:
"auto"
响应
任务创建成功
任务创建时间戳
示例:
1757165031
任务ID
示例:
"task-unified-1757165031-uyujaw3d"
实际使用的模型名称
任务的具体类型
可用选项:
video.generation.task 任务进度百分比 (0-100)
必填范围:
0 <= x <= 100示例:
0
任务状态
可用选项:
pending, processing, completed, failed 示例:
"pending"
异步任务信息
Show child attributes
Show child attributes
任务的输出类型
可用选项:
video 示例:
"video"
⌘I