Vidu Q3 Turbo 画像から動画
curl --request POST \
--url https://api.highwayapi.ai/v3/async/vidu-q3-turbo-i2v \
--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,
"audio_type": "<string>",
"resolution": "<string>"
}
'import requests
url = "https://api.highwayapi.ai/v3/async/vidu-q3-turbo-i2v"
payload = {
"seed": 123,
"audio": True,
"images": ["<string>"],
"is_rec": True,
"prompt": "<string>",
"duration": 123,
"off_peak": True,
"audio_type": "<string>",
"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,
audio_type: '<string>',
resolution: '<string>'
})
};
fetch('https://api.highwayapi.ai/v3/async/vidu-q3-turbo-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-turbo-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' => true,
'images' => [
'<string>'
],
'is_rec' => true,
'prompt' => '<string>',
'duration' => 123,
'off_peak' => true,
'audio_type' => '<string>',
'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-i2v"
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 \"audio_type\": \"<string>\",\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-i2v")
.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 \"audio_type\": \"<string>\",\n \"resolution\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.highwayapi.ai/v3/async/vidu-q3-turbo-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\": true,\n \"images\": [\n \"<string>\"\n ],\n \"is_rec\": true,\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"off_peak\": true,\n \"audio_type\": \"<string>\",\n \"resolution\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"task_id": "<string>"
}動画
Vidu Q3 Turbo 画像から動画
POST
/
v3
/
async
/
vidu-q3-turbo-i2v
Vidu Q3 Turbo 画像から動画
curl --request POST \
--url https://api.highwayapi.ai/v3/async/vidu-q3-turbo-i2v \
--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,
"audio_type": "<string>",
"resolution": "<string>"
}
'import requests
url = "https://api.highwayapi.ai/v3/async/vidu-q3-turbo-i2v"
payload = {
"seed": 123,
"audio": True,
"images": ["<string>"],
"is_rec": True,
"prompt": "<string>",
"duration": 123,
"off_peak": True,
"audio_type": "<string>",
"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,
audio_type: '<string>',
resolution: '<string>'
})
};
fetch('https://api.highwayapi.ai/v3/async/vidu-q3-turbo-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-turbo-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' => true,
'images' => [
'<string>'
],
'is_rec' => true,
'prompt' => '<string>',
'duration' => 123,
'off_peak' => true,
'audio_type' => '<string>',
'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-i2v"
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 \"audio_type\": \"<string>\",\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-i2v")
.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 \"audio_type\": \"<string>\",\n \"resolution\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.highwayapi.ai/v3/async/vidu-q3-turbo-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\": true,\n \"images\": [\n \"<string>\"\n ],\n \"is_rec\": true,\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"off_peak\": true,\n \"audio_type\": \"<string>\",\n \"resolution\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"task_id": "<string>"
}Vidu Q3 Turbo 画像から動画への変換ツールは、静止画像を動的な動画に変換できます。テキストによるモーション生成のガイドに対応し、複数の解像度とアスペクト比を選択できます。
これは非同期API であり、非同期タスクの task_id のみを返します。この task_id を使用して タスク結果取得 API にリクエストし、生成結果を取得してください。
リクエストヘッダー
string
必須
列挙値:
application/jsonstring
必須
Bearer 認証形式: Bearer {{API Key}}。
リクエストボディ
integer
再現可能な生成に使用するランダムシード。0 または未指定の場合はランダムに生成されます。値の範囲:[0, 2147483647]
boolean
デフォルト:true
音声付き動画を直接出力する機能を使用するかどうか。true に設定すると、セリフおよび背景音付きの動画を出力します。Q3 モデルのデフォルトは true です。
string[]
必須
参照画像 URL の配列。
.jpg、.jpeg、.png、.webp に対応しています。
各画像のサイズは 50MB 以下で、アスペクト比は 1:4 から 4:1 の間である必要があります。boolean
デフォルト:false
音画マッチングを有効にします。true に設定すると、音声のリズムと動画の動きが同期します。
string
動画生成のモーション説明。シーンの動き、アクション、動的効果を記述します。長さ制限:0 - 5000
integer
デフォルト:5
動画の長さ(秒)。値の範囲:[1, 16]
boolean
デフォルト:false
オフピーク時間帯の料金を使用します。true に設定すると、コスト削減のため、タスクはオフピーク時間帯の処理を待機するキューに入ります。
string
デフォルト:"all"
音声タイプ。audio が true の場合に有効です。all = 音響効果+音声、speech_only = 音声のみ、sound_effect_only = 音響効果のみ。選択可能な値:
all, speech_only, sound_effect_onlystring
デフォルト:"720p"
出力動画の解像度。選択可能な値:
540p, 720p, 1080pレスポンス情報
string
必須
task_id を使用して タスク結果取得 API にリクエストし、生成された出力を取得します。
⌘I