PixVerse V4.5 画像から動画
curl --request POST \
--url https://api.highwayapi.ai/v3/async/pixverse-v4.5-i2v \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"prompt": "<string>",
"image": "<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-i2v"
payload = {
"prompt": "<string>",
"image": "<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>',
image: '<string>',
resolution: '<string>',
negative_prompt: '<string>',
fast_mode: true,
style: '<string>',
seed: 123
})
};
fetch('https://api.highwayapi.ai/v3/async/pixverse-v4.5-i2v', 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-i2v",
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>',
'image' => '<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-i2v"
payload := strings.NewReader("{\n \"prompt\": \"<string>\",\n \"image\": \"<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-i2v")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.body("{\n \"prompt\": \"<string>\",\n \"image\": \"<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-i2v")
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 \"image\": \"<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>"
}動画
PixVerse V4.5 画像から動画
POST
/
v3
/
async
/
pixverse-v4.5-i2v
PixVerse V4.5 画像から動画
curl --request POST \
--url https://api.highwayapi.ai/v3/async/pixverse-v4.5-i2v \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"prompt": "<string>",
"image": "<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-i2v"
payload = {
"prompt": "<string>",
"image": "<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>',
image: '<string>',
resolution: '<string>',
negative_prompt: '<string>',
fast_mode: true,
style: '<string>',
seed: 123
})
};
fetch('https://api.highwayapi.ai/v3/async/pixverse-v4.5-i2v', 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-i2v",
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>',
'image' => '<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-i2v"
payload := strings.NewReader("{\n \"prompt\": \"<string>\",\n \"image\": \"<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-i2v")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.body("{\n \"prompt\": \"<string>\",\n \"image\": \"<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-i2v")
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 \"image\": \"<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>"
}PixVerse の最新 v4.5 モデルを使用して、テキスト説明と画像から高品質な動画を生成します。多様な動画制作を実現するため、複数の解像度、アスペクト比、モーションモードに対応しています。
これは非同期API であり、非同期タスクの task_id のみを返します。その task_id を使用して タスク結果照会 API をリクエストし、動画生成結果を取得してください。
リクエストヘッダー
string
必須
列挙値:
application/jsonstring
必須
Bearer 認証形式: Bearer {{API Key}}。
リクエストボディ
string
必須
動画生成用のテキストプロンプト。
- 最大長:2048 文字
- 必要なシーンと動作を明確に説明してください
string
必須
動画の最初のフレーム。
- 対応画像形式には .jpg/.jpeg/.png が含まれます
- 画像ファイルサイズは 10MB を超えてはいけません
- 画像解像度は 300*300 ピクセル未満であってはいけません
- 画像のアスペクト比は 1:2.5 ~ 2.5:1 の範囲内である必要があります
string
必須
動画品質。デフォルト値:
使用可能な値:
540p使用可能な値:
- fast_mode が false の場合:
360p、540p、720p、1080p - fast_mode が true の場合:
360p、540p、720p
string
生成用のネガティブプロンプト。
- 最大長:2048 文字
boolean
高速モードを有効にするかどうか。このモードでは動画をより高速に生成しますが、品質が低下する可能性があり、価格も低くなります。デフォルト値:
false。string
スタイルプリセット(v3.5 のみ)。
使用可能な値:
使用可能な値:
anime、3d_animation、clay、comic、cyberpunkinteger
生成に使用するランダムシード。
レスポンス情報
string
必須
非同期タスクの task_id。この task_id を使用して タスク結果照会 API をリクエストし、生成結果を取得してください
⌘I