Vidu Q3 Turbo 先頭・末尾フレームからの動画生成
curl --request POST \
--url https://api.highwayapi.ai/v3/async/vidu-q3-turbo-f2v \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"seed": 123,
"audio": true,
"images": [
"<string>"
],
"is_rec": true,
"prompt": "<string>",
"duration": 123,
"off_peak": true,
"resolution": "<string>"
}
'import requests
url = "https://api.highwayapi.ai/v3/async/vidu-q3-turbo-f2v"
payload = {
"seed": 123,
"audio": True,
"images": ["<string>"],
"is_rec": True,
"prompt": "<string>",
"duration": 123,
"off_peak": True,
"resolution": "<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,
images: ['<string>'],
is_rec: true,
prompt: '<string>',
duration: 123,
off_peak: true,
resolution: '<string>'
})
};
fetch('https://api.highwayapi.ai/v3/async/vidu-q3-turbo-f2v', 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-turbo-f2v",
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,
'images' => [
'<string>'
],
'is_rec' => true,
'prompt' => '<string>',
'duration' => 123,
'off_peak' => true,
'resolution' => '<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-turbo-f2v"
payload := strings.NewReader("{\n \"seed\": 123,\n \"audio\": true,\n \"images\": [\n \"<string>\"\n ],\n \"is_rec\": true,\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"off_peak\": true,\n \"resolution\": \"<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-turbo-f2v")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.body("{\n \"seed\": 123,\n \"audio\": true,\n \"images\": [\n \"<string>\"\n ],\n \"is_rec\": true,\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"off_peak\": true,\n \"resolution\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.highwayapi.ai/v3/async/vidu-q3-turbo-f2v")
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 \"images\": [\n \"<string>\"\n ],\n \"is_rec\": true,\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"off_peak\": true,\n \"resolution\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"task_id": "<string>"
}動画
Vidu Q3 Turbo 先頭・末尾フレームからの動画生成
POST
/
v3
/
async
/
vidu-q3-turbo-f2v
Vidu Q3 Turbo 先頭・末尾フレームからの動画生成
curl --request POST \
--url https://api.highwayapi.ai/v3/async/vidu-q3-turbo-f2v \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"seed": 123,
"audio": true,
"images": [
"<string>"
],
"is_rec": true,
"prompt": "<string>",
"duration": 123,
"off_peak": true,
"resolution": "<string>"
}
'import requests
url = "https://api.highwayapi.ai/v3/async/vidu-q3-turbo-f2v"
payload = {
"seed": 123,
"audio": True,
"images": ["<string>"],
"is_rec": True,
"prompt": "<string>",
"duration": 123,
"off_peak": True,
"resolution": "<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,
images: ['<string>'],
is_rec: true,
prompt: '<string>',
duration: 123,
off_peak: true,
resolution: '<string>'
})
};
fetch('https://api.highwayapi.ai/v3/async/vidu-q3-turbo-f2v', 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-turbo-f2v",
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,
'images' => [
'<string>'
],
'is_rec' => true,
'prompt' => '<string>',
'duration' => 123,
'off_peak' => true,
'resolution' => '<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-turbo-f2v"
payload := strings.NewReader("{\n \"seed\": 123,\n \"audio\": true,\n \"images\": [\n \"<string>\"\n ],\n \"is_rec\": true,\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"off_peak\": true,\n \"resolution\": \"<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-turbo-f2v")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.body("{\n \"seed\": 123,\n \"audio\": true,\n \"images\": [\n \"<string>\"\n ],\n \"is_rec\": true,\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"off_peak\": true,\n \"resolution\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.highwayapi.ai/v3/async/vidu-q3-turbo-f2v")
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 \"images\": [\n \"<string>\"\n ],\n \"is_rec\": true,\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"off_peak\": true,\n \"resolution\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"task_id": "<string>"
}Vidu Q3 Turbo 先頭・末尾フレームからの動画生成は、先頭フレームと末尾フレームの画像に基づいて高品質な動画を生成し、テキストでモーション補間を誘導できます。最大 1080p 解像度に対応しています。
これは非同期API であり、非同期タスクの task_id のみを返します。この task_id を使用して タスク結果照会 API をリクエストし、生成結果を取得してください。
リクエストヘッダー
string
必須
列挙値:
application/jsonstring
必須
Bearer 認証形式: Bearer {{API Key}}。
リクエストボディ
integer
結果を再現するためのランダムシード。0 を渡すとランダムになります。
boolean
デフォルト:true
音声付き動画の直接出力機能を使用するかどうか。デフォルトは true です。false の場合は無音動画を出力し、true の場合は音声と映像が同期した動画(セリフと効果音を含む)を出力します。Q3 シリーズモデルのみ対応しています。
string[]
必須
2 枚の画像 URL または Base64 エンコード画像。1 枚目が先頭フレーム画像、2 枚目が末尾フレーム画像です。png、jpeg、jpg、webp 形式に対応しており、1 枚あたり 50MB を超えないようにしてください。先頭・末尾フレームの 2 枚の画像は解像度が近い必要があります(先頭フレーム/末尾フレームの比率が 0.8-1.25 の間)。アスペクト比は 1:4 未満または 4:1 超である必要があります。配列の長さ:2 - 2
boolean
推奨 prompt を使用するかどうか。有効にすると、システムが自動的に prompt を生成します。
string
先頭フレームと末尾フレームの間で期待する動画のモーション効果を説明するテキスト。最大 1500 文字。長さ制限:0 - 1500
integer
デフォルト:5
動画の長さ(秒)。範囲は 1-16 です。値の範囲:[1, 16]
boolean
デフォルト:false
オフピークモードを使用するかどうか。タスクは 48 時間以内に処理され、費用が低くなります。
string
デフォルト:"720p"
出力動画の解像度。使用可能な値:
540p, 720p, 1080pレスポンス情報
string
必須
task_id を使用して タスク結果照会 API をリクエストし、生成された出力を取得します。
⌘I