Vidu Q3 Pro テキストから動画
curl --request POST \
--url https://api.highwayapi.ai/v3/async/vidu-q3-pro-t2v \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"seed": 123,
"audio": true,
"prompt": "<string>",
"wm_url": "<string>",
"duration": 123,
"off_peak": true,
"watermark": true,
"resolution": "<string>",
"wm_position": 123,
"aspect_ratio": "<string>"
}
'import requests
url = "https://api.highwayapi.ai/v3/async/vidu-q3-pro-t2v"
payload = {
"seed": 123,
"audio": True,
"prompt": "<string>",
"wm_url": "<string>",
"duration": 123,
"off_peak": True,
"watermark": True,
"resolution": "<string>",
"wm_position": 123,
"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: true,
prompt: '<string>',
wm_url: '<string>',
duration: 123,
off_peak: true,
watermark: true,
resolution: '<string>',
wm_position: 123,
aspect_ratio: '<string>'
})
};
fetch('https://api.highwayapi.ai/v3/async/vidu-q3-pro-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/vidu-q3-pro-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([
'seed' => 123,
'audio' => true,
'prompt' => '<string>',
'wm_url' => '<string>',
'duration' => 123,
'off_peak' => true,
'watermark' => true,
'resolution' => '<string>',
'wm_position' => 123,
'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-t2v"
payload := strings.NewReader("{\n \"seed\": 123,\n \"audio\": true,\n \"prompt\": \"<string>\",\n \"wm_url\": \"<string>\",\n \"duration\": 123,\n \"off_peak\": true,\n \"watermark\": true,\n \"resolution\": \"<string>\",\n \"wm_position\": 123,\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-t2v")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.body("{\n \"seed\": 123,\n \"audio\": true,\n \"prompt\": \"<string>\",\n \"wm_url\": \"<string>\",\n \"duration\": 123,\n \"off_peak\": true,\n \"watermark\": true,\n \"resolution\": \"<string>\",\n \"wm_position\": 123,\n \"aspect_ratio\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.highwayapi.ai/v3/async/vidu-q3-pro-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 \"seed\": 123,\n \"audio\": true,\n \"prompt\": \"<string>\",\n \"wm_url\": \"<string>\",\n \"duration\": 123,\n \"off_peak\": true,\n \"watermark\": true,\n \"resolution\": \"<string>\",\n \"wm_position\": 123,\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-t2v
Vidu Q3 Pro テキストから動画
curl --request POST \
--url https://api.highwayapi.ai/v3/async/vidu-q3-pro-t2v \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"seed": 123,
"audio": true,
"prompt": "<string>",
"wm_url": "<string>",
"duration": 123,
"off_peak": true,
"watermark": true,
"resolution": "<string>",
"wm_position": 123,
"aspect_ratio": "<string>"
}
'import requests
url = "https://api.highwayapi.ai/v3/async/vidu-q3-pro-t2v"
payload = {
"seed": 123,
"audio": True,
"prompt": "<string>",
"wm_url": "<string>",
"duration": 123,
"off_peak": True,
"watermark": True,
"resolution": "<string>",
"wm_position": 123,
"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: true,
prompt: '<string>',
wm_url: '<string>',
duration: 123,
off_peak: true,
watermark: true,
resolution: '<string>',
wm_position: 123,
aspect_ratio: '<string>'
})
};
fetch('https://api.highwayapi.ai/v3/async/vidu-q3-pro-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/vidu-q3-pro-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([
'seed' => 123,
'audio' => true,
'prompt' => '<string>',
'wm_url' => '<string>',
'duration' => 123,
'off_peak' => true,
'watermark' => true,
'resolution' => '<string>',
'wm_position' => 123,
'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-t2v"
payload := strings.NewReader("{\n \"seed\": 123,\n \"audio\": true,\n \"prompt\": \"<string>\",\n \"wm_url\": \"<string>\",\n \"duration\": 123,\n \"off_peak\": true,\n \"watermark\": true,\n \"resolution\": \"<string>\",\n \"wm_position\": 123,\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-t2v")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.body("{\n \"seed\": 123,\n \"audio\": true,\n \"prompt\": \"<string>\",\n \"wm_url\": \"<string>\",\n \"duration\": 123,\n \"off_peak\": true,\n \"watermark\": true,\n \"resolution\": \"<string>\",\n \"wm_position\": 123,\n \"aspect_ratio\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.highwayapi.ai/v3/async/vidu-q3-pro-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 \"seed\": 123,\n \"audio\": true,\n \"prompt\": \"<string>\",\n \"wm_url\": \"<string>\",\n \"duration\": 123,\n \"off_peak\": true,\n \"watermark\": true,\n \"resolution\": \"<string>\",\n \"wm_position\": 123,\n \"aspect_ratio\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"task_id": "<string>"
}これは非同期 API であり、非同期タスクの
task_id のみを返します。
これは非同期API であり、非同期タスクの task_id のみを返します。その task_id を使用して タスク結果照会 API にリクエストし、生成結果を取得してください。
リクエストヘッダー
string
必須
列挙値:
application/jsonstring
必須
Bearer 認証形式: Bearer {{API Key}}。
リクエストボディ
integer
結果の再現性のためのランダムシード。0 を使用するとランダムになります。値の範囲:[0, 2147483647]
boolean
デフォルト:true
音声・動画の直接出力機能(セリフと効果音を含む)を使用するかどうか。Q3 モデルのみがこのパラメータをサポートします。
string
必須
動画生成のテキスト説明。最大 2000 文字。長さ制限:0 - 2000
string
ウォーターマーク画像 URL。
integer
デフォルト:5
動画の長さ(秒)。範囲は 1-16。値の範囲:[1, 16]
boolean
デフォルト:false
オフピークモードを使用します。タスクは 48 時間以内に処理され、費用はより低くなります。
boolean
デフォルト:false
ウォーターマークを追加するかどうか。
string
デフォルト:"720p"
出力動画の画質。選択可能な値:
540p, 720p, 1080pinteger
ウォーターマークの位置:1=左上, 2=右上, 3=左下, 4=右下。値の範囲:[1, 4]
string
デフォルト:"16:9"
出力動画のアスペクト比。選択可能な値:
16:9, 9:16, 4:3, 3:4, 1:1レスポンス情報
string
必須
task_id を使用して タスク結果照会 API にリクエストし、生成された出力を取得します。
⌘I