Vidu Q3 Pro 画像から動画
curl --request POST \
--url https://api.highwayapi.ai/v3/async/vidu-q3-pro-i2v \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"seed": 123,
"audio": "<string>",
"style": "<string>",
"images": [
"<string>"
],
"is_rec": true,
"prompt": "<string>",
"wm_url": "<string>",
"duration": 123,
"off_peak": true,
"watermark": true,
"resolution": "<string>",
"wm_position": "<string>",
"aspect_ratio": "<string>"
}
'import requests
url = "https://api.highwayapi.ai/v3/async/vidu-q3-pro-i2v"
payload = {
"seed": 123,
"audio": "<string>",
"style": "<string>",
"images": ["<string>"],
"is_rec": True,
"prompt": "<string>",
"wm_url": "<string>",
"duration": 123,
"off_peak": True,
"watermark": True,
"resolution": "<string>",
"wm_position": "<string>",
"aspect_ratio": "<string>"
}
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({
seed: 123,
audio: '<string>',
style: '<string>',
images: ['<string>'],
is_rec: true,
prompt: '<string>',
wm_url: '<string>',
duration: 123,
off_peak: true,
watermark: true,
resolution: '<string>',
wm_position: '<string>',
aspect_ratio: '<string>'
})
};
fetch('https://api.highwayapi.ai/v3/async/vidu-q3-pro-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/vidu-q3-pro-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([
'seed' => 123,
'audio' => '<string>',
'style' => '<string>',
'images' => [
'<string>'
],
'is_rec' => true,
'prompt' => '<string>',
'wm_url' => '<string>',
'duration' => 123,
'off_peak' => true,
'watermark' => true,
'resolution' => '<string>',
'wm_position' => '<string>',
'aspect_ratio' => '<string>'
]),
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/vidu-q3-pro-i2v"
payload := strings.NewReader("{\n \"seed\": 123,\n \"audio\": \"<string>\",\n \"style\": \"<string>\",\n \"images\": [\n \"<string>\"\n ],\n \"is_rec\": true,\n \"prompt\": \"<string>\",\n \"wm_url\": \"<string>\",\n \"duration\": 123,\n \"off_peak\": true,\n \"watermark\": true,\n \"resolution\": \"<string>\",\n \"wm_position\": \"<string>\",\n \"aspect_ratio\": \"<string>\"\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/vidu-q3-pro-i2v")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.body("{\n \"seed\": 123,\n \"audio\": \"<string>\",\n \"style\": \"<string>\",\n \"images\": [\n \"<string>\"\n ],\n \"is_rec\": true,\n \"prompt\": \"<string>\",\n \"wm_url\": \"<string>\",\n \"duration\": 123,\n \"off_peak\": true,\n \"watermark\": true,\n \"resolution\": \"<string>\",\n \"wm_position\": \"<string>\",\n \"aspect_ratio\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.highwayapi.ai/v3/async/vidu-q3-pro-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 \"seed\": 123,\n \"audio\": \"<string>\",\n \"style\": \"<string>\",\n \"images\": [\n \"<string>\"\n ],\n \"is_rec\": true,\n \"prompt\": \"<string>\",\n \"wm_url\": \"<string>\",\n \"duration\": 123,\n \"off_peak\": true,\n \"watermark\": true,\n \"resolution\": \"<string>\",\n \"wm_position\": \"<string>\",\n \"aspect_ratio\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"task_id": "<string>"
}動画
Vidu Q3 Pro 画像から動画
POST
/
v3
/
async
/
vidu-q3-pro-i2v
Vidu Q3 Pro 画像から動画
curl --request POST \
--url https://api.highwayapi.ai/v3/async/vidu-q3-pro-i2v \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"seed": 123,
"audio": "<string>",
"style": "<string>",
"images": [
"<string>"
],
"is_rec": true,
"prompt": "<string>",
"wm_url": "<string>",
"duration": 123,
"off_peak": true,
"watermark": true,
"resolution": "<string>",
"wm_position": "<string>",
"aspect_ratio": "<string>"
}
'import requests
url = "https://api.highwayapi.ai/v3/async/vidu-q3-pro-i2v"
payload = {
"seed": 123,
"audio": "<string>",
"style": "<string>",
"images": ["<string>"],
"is_rec": True,
"prompt": "<string>",
"wm_url": "<string>",
"duration": 123,
"off_peak": True,
"watermark": True,
"resolution": "<string>",
"wm_position": "<string>",
"aspect_ratio": "<string>"
}
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({
seed: 123,
audio: '<string>',
style: '<string>',
images: ['<string>'],
is_rec: true,
prompt: '<string>',
wm_url: '<string>',
duration: 123,
off_peak: true,
watermark: true,
resolution: '<string>',
wm_position: '<string>',
aspect_ratio: '<string>'
})
};
fetch('https://api.highwayapi.ai/v3/async/vidu-q3-pro-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/vidu-q3-pro-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([
'seed' => 123,
'audio' => '<string>',
'style' => '<string>',
'images' => [
'<string>'
],
'is_rec' => true,
'prompt' => '<string>',
'wm_url' => '<string>',
'duration' => 123,
'off_peak' => true,
'watermark' => true,
'resolution' => '<string>',
'wm_position' => '<string>',
'aspect_ratio' => '<string>'
]),
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/vidu-q3-pro-i2v"
payload := strings.NewReader("{\n \"seed\": 123,\n \"audio\": \"<string>\",\n \"style\": \"<string>\",\n \"images\": [\n \"<string>\"\n ],\n \"is_rec\": true,\n \"prompt\": \"<string>\",\n \"wm_url\": \"<string>\",\n \"duration\": 123,\n \"off_peak\": true,\n \"watermark\": true,\n \"resolution\": \"<string>\",\n \"wm_position\": \"<string>\",\n \"aspect_ratio\": \"<string>\"\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/vidu-q3-pro-i2v")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.body("{\n \"seed\": 123,\n \"audio\": \"<string>\",\n \"style\": \"<string>\",\n \"images\": [\n \"<string>\"\n ],\n \"is_rec\": true,\n \"prompt\": \"<string>\",\n \"wm_url\": \"<string>\",\n \"duration\": 123,\n \"off_peak\": true,\n \"watermark\": true,\n \"resolution\": \"<string>\",\n \"wm_position\": \"<string>\",\n \"aspect_ratio\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.highwayapi.ai/v3/async/vidu-q3-pro-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 \"seed\": 123,\n \"audio\": \"<string>\",\n \"style\": \"<string>\",\n \"images\": [\n \"<string>\"\n ],\n \"is_rec\": true,\n \"prompt\": \"<string>\",\n \"wm_url\": \"<string>\",\n \"duration\": 123,\n \"off_peak\": true,\n \"watermark\": true,\n \"resolution\": \"<string>\",\n \"wm_position\": \"<string>\",\n \"aspect_ratio\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"task_id": "<string>"
}Vidu Q3 Pro 画像から動画ツールは、静止画像を動的な動画に変換し、被写体の一貫性を保ちながら、自然な動きとより滑らかなシーンの動的効果を生成します。
これは非同期APIであり、非同期タスクの task_id のみを返します。この task_id を使用して タスク結果照会 API にリクエストし、生成結果を取得してください。
リクエストヘッダー
string
必須
列挙値:
application/jsonstring
必須
Bearer 認証形式: Bearer {{API Key}}。
リクエストボディ
integer
再現可能な生成に使用するランダムシード。0 または未指定の場合はランダムに生成されます値の範囲:[0, 2147483647]
string
動画のBGM用カスタム音声URL。mp3、wav、m4a、flac 形式に対応。最大 20MB
string
デフォルト:"general"
出力のビジュアルスタイル。general は写実スタイル、anime はアニメスタイルです選択可能な値:
general, animestring[]
必須
参照画像URLの配列。
.jpg、.jpeg、.png、.webp に対応。
各画像のサイズは 50MB 以下で、アスペクト比は 1:4 から 4:1 の範囲内である必要があります。
現在は 1 枚の画像入力のみ対応していますboolean
デフォルト:false
音声と映像のマッチングを有効化します。true に設定すると、音声のリズムと動画の動きが同期します
string
動画生成の動きの説明。シーンの動き、アクション、動的効果を記述します。長さ制限:0 - 1500
string
カスタム透かし画像URL。png、jpeg、jpg、webp 形式に対応。最大 10MB
integer
デフォルト:5
動画の長さ(秒)値の範囲:[1, 16]
boolean
デフォルト:false
オフピーク時間帯の料金を使用します。true に設定すると、コストを抑えるためにタスクはオフピーク時間帯までキューで待機して処理されます
boolean
デフォルト:false
出力動画に透かしを有効化します
string
デフォルト:"720p"
出力動画の解像度選択可能な値:
540p, 720p, 1080pstring
動画上の透かしの位置選択可能な値:
top-left, top-right, bottom-left, bottom-rightstring
デフォルト:"16:9"
出力動画のアスペクト比選択可能な値:
16:9, 9:16, 4:3, 3:4, 1:1レスポンス情報
string
必須
task_id を使用して タスク結果照会 API にリクエストし、生成された出力を取得します。
⌘I