Vidu Q3 Pro 開始・終了フレームから動画生成
curl --request POST \
--url https://api.highwayapi.ai/v3/async/vidu-q3-pro-f2v \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"seed": 123,
"audio": true,
"images": [
"<string>"
],
"is_rec": true,
"prompt": "<string>",
"wm_url": "<string>",
"duration": 123,
"off_peak": true,
"watermark": true,
"resolution": "<string>",
"wm_position": 123
}
'import requests
url = "https://api.highwayapi.ai/v3/async/vidu-q3-pro-f2v"
payload = {
"seed": 123,
"audio": True,
"images": ["<string>"],
"is_rec": True,
"prompt": "<string>",
"wm_url": "<string>",
"duration": 123,
"off_peak": True,
"watermark": True,
"resolution": "<string>",
"wm_position": 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({
seed: 123,
audio: true,
images: ['<string>'],
is_rec: true,
prompt: '<string>',
wm_url: '<string>',
duration: 123,
off_peak: true,
watermark: true,
resolution: '<string>',
wm_position: 123
})
};
fetch('https://api.highwayapi.ai/v3/async/vidu-q3-pro-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-pro-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>',
'wm_url' => '<string>',
'duration' => 123,
'off_peak' => true,
'watermark' => true,
'resolution' => '<string>',
'wm_position' => 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/vidu-q3-pro-f2v"
payload := strings.NewReader("{\n \"seed\": 123,\n \"audio\": true,\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\": 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/vidu-q3-pro-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 \"wm_url\": \"<string>\",\n \"duration\": 123,\n \"off_peak\": true,\n \"watermark\": true,\n \"resolution\": \"<string>\",\n \"wm_position\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.highwayapi.ai/v3/async/vidu-q3-pro-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 \"wm_url\": \"<string>\",\n \"duration\": 123,\n \"off_peak\": true,\n \"watermark\": true,\n \"resolution\": \"<string>\",\n \"wm_position\": 123\n}"
response = http.request(request)
puts response.read_body{
"task_id": "<string>"
}動画
Vidu Q3 Pro 開始・終了フレームから動画生成
POST
/
v3
/
async
/
vidu-q3-pro-f2v
Vidu Q3 Pro 開始・終了フレームから動画生成
curl --request POST \
--url https://api.highwayapi.ai/v3/async/vidu-q3-pro-f2v \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"seed": 123,
"audio": true,
"images": [
"<string>"
],
"is_rec": true,
"prompt": "<string>",
"wm_url": "<string>",
"duration": 123,
"off_peak": true,
"watermark": true,
"resolution": "<string>",
"wm_position": 123
}
'import requests
url = "https://api.highwayapi.ai/v3/async/vidu-q3-pro-f2v"
payload = {
"seed": 123,
"audio": True,
"images": ["<string>"],
"is_rec": True,
"prompt": "<string>",
"wm_url": "<string>",
"duration": 123,
"off_peak": True,
"watermark": True,
"resolution": "<string>",
"wm_position": 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({
seed: 123,
audio: true,
images: ['<string>'],
is_rec: true,
prompt: '<string>',
wm_url: '<string>',
duration: 123,
off_peak: true,
watermark: true,
resolution: '<string>',
wm_position: 123
})
};
fetch('https://api.highwayapi.ai/v3/async/vidu-q3-pro-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-pro-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>',
'wm_url' => '<string>',
'duration' => 123,
'off_peak' => true,
'watermark' => true,
'resolution' => '<string>',
'wm_position' => 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/vidu-q3-pro-f2v"
payload := strings.NewReader("{\n \"seed\": 123,\n \"audio\": true,\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\": 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/vidu-q3-pro-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 \"wm_url\": \"<string>\",\n \"duration\": 123,\n \"off_peak\": true,\n \"watermark\": true,\n \"resolution\": \"<string>\",\n \"wm_position\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.highwayapi.ai/v3/async/vidu-q3-pro-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 \"wm_url\": \"<string>\",\n \"duration\": 123,\n \"off_peak\": true,\n \"watermark\": true,\n \"resolution\": \"<string>\",\n \"wm_position\": 123\n}"
response = http.request(request)
puts response.read_body{
"task_id": "<string>"
}Vidu Q3 Pro 開始・終了フレームから動画生成は、開始フレーム画像と終了フレーム画像に基づいて高品質な動画を生成し、テキストによって動きの補間をガイドします。最大 1080p 解像度に対応しています。
これは非同期API であり、非同期タスクの task_id のみを返します。この task_id を使用して タスク結果照会 API をリクエストし、生成結果を取得してください。
リクエストヘッダー
string
必須
列挙値:
application/jsonstring
必須
Bearer 認証形式: Bearer {{API Key}}。
リクエストボディ
integer
ランダムシード。結果を再現可能にするために使用します。0 を渡すとランダムになります。
boolean
デフォルト:true
動画生成時に音声も同時に生成するかどうか。
string[]
必須
2 枚の画像 URL または Base64 エンコード画像。1 枚目は開始フレーム画像、2 枚目は終了フレーム画像です。png、jpeg、jpg、webp 形式に対応し、1 枚あたり 50MB 以下、ピクセルは 128x128 以上、アスペクト比は 1:4 未満または 4:1 より大きい必要があります。開始フレームと終了フレームの 2 枚の画像は解像度が近い必要があります(開始フレーム/終了フレームの比率が 0.8〜1.25 の間)。配列の長さ:2 - 2
boolean
推奨モードを有効にするかどうか。
string
開始フレームと終了フレームの間に期待する動画の動き効果を説明するテキスト。長さ制限:0 - 1500
string
カスタム透かし画像 URL。
integer
デフォルト:5
生成する動画の長さ(秒)。範囲は 1〜16。値の範囲:[1, 16]
boolean
デフォルト:false
オフピークモードを使用するかどうか。費用がより低くなります。
boolean
透かしを追加するかどうか。
string
デフォルト:"720p"
生成する動画の解像度。選択可能な値:
540p, 720p, 1080pinteger
デフォルト:3
透かしの位置: 1=左上、2=右上、3=右下、4=左下。値の範囲:[1, 4]
レスポンス情報
string
必須
task_id を使用して タスク結果照会 API をリクエストし、生成された出力を取得します。
⌘I