Minimax Hailuo 2.3 テキストから動画生成
curl --request POST \
--url https://api.highwayapi.ai/v3/async/minimax-hailuo-2.3-t2v \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"prompt": "<string>",
"duration": 123,
"resolution": "<string>",
"enable_prompt_expansion": true,
"fast_pretreatment": true
}
'import requests
url = "https://api.highwayapi.ai/v3/async/minimax-hailuo-2.3-t2v"
payload = {
"prompt": "<string>",
"duration": 123,
"resolution": "<string>",
"enable_prompt_expansion": True,
"fast_pretreatment": True
}
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({
prompt: '<string>',
duration: 123,
resolution: '<string>',
enable_prompt_expansion: true,
fast_pretreatment: true
})
};
fetch('https://api.highwayapi.ai/v3/async/minimax-hailuo-2.3-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/minimax-hailuo-2.3-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([
'prompt' => '<string>',
'duration' => 123,
'resolution' => '<string>',
'enable_prompt_expansion' => true,
'fast_pretreatment' => true
]),
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/minimax-hailuo-2.3-t2v"
payload := strings.NewReader("{\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"resolution\": \"<string>\",\n \"enable_prompt_expansion\": true,\n \"fast_pretreatment\": true\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/minimax-hailuo-2.3-t2v")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.body("{\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"resolution\": \"<string>\",\n \"enable_prompt_expansion\": true,\n \"fast_pretreatment\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.highwayapi.ai/v3/async/minimax-hailuo-2.3-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 \"prompt\": \"<string>\",\n \"duration\": 123,\n \"resolution\": \"<string>\",\n \"enable_prompt_expansion\": true,\n \"fast_pretreatment\": true\n}"
response = http.request(request)
puts response.read_body{
"task_id": "<string>"
}動画
Minimax Hailuo 2.3 テキストから動画生成
POST
/
v3
/
async
/
minimax-hailuo-2.3-t2v
Minimax Hailuo 2.3 テキストから動画生成
curl --request POST \
--url https://api.highwayapi.ai/v3/async/minimax-hailuo-2.3-t2v \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"prompt": "<string>",
"duration": 123,
"resolution": "<string>",
"enable_prompt_expansion": true,
"fast_pretreatment": true
}
'import requests
url = "https://api.highwayapi.ai/v3/async/minimax-hailuo-2.3-t2v"
payload = {
"prompt": "<string>",
"duration": 123,
"resolution": "<string>",
"enable_prompt_expansion": True,
"fast_pretreatment": True
}
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({
prompt: '<string>',
duration: 123,
resolution: '<string>',
enable_prompt_expansion: true,
fast_pretreatment: true
})
};
fetch('https://api.highwayapi.ai/v3/async/minimax-hailuo-2.3-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/minimax-hailuo-2.3-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([
'prompt' => '<string>',
'duration' => 123,
'resolution' => '<string>',
'enable_prompt_expansion' => true,
'fast_pretreatment' => true
]),
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/minimax-hailuo-2.3-t2v"
payload := strings.NewReader("{\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"resolution\": \"<string>\",\n \"enable_prompt_expansion\": true,\n \"fast_pretreatment\": true\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/minimax-hailuo-2.3-t2v")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.body("{\n \"prompt\": \"<string>\",\n \"duration\": 123,\n \"resolution\": \"<string>\",\n \"enable_prompt_expansion\": true,\n \"fast_pretreatment\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.highwayapi.ai/v3/async/minimax-hailuo-2.3-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 \"prompt\": \"<string>\",\n \"duration\": 123,\n \"resolution\": \"<string>\",\n \"enable_prompt_expansion\": true,\n \"fast_pretreatment\": true\n}"
response = http.request(request)
puts response.read_body{
"task_id": "<string>"
}Minimax Hailuo 2.3 は新たにアップグレードされた動画生成モデルで、身体動作、物理効果、指示の理解と実行能力などの面でより優れた性能を発揮します。
これは非同期API であり、非同期タスクの task_id のみを返します。この task_id を使用して タスク結果照会 API にリクエストし、動画生成結果を取得してください。
リクエストヘッダー
string
必須
列挙値:
application/jsonstring
必須
Bearer 認証形式: Bearer {{API Key}}。
リクエストボディ
string
必須
生成内容を指示するためのプロンプトテキスト。範囲:
1 <= x <= 2000。15 種類のカメラワーク指示に対応しています:- 左右移動: [左移], [右移]
- 左右パン: [左摇], [右摇]
- ドリーイン・ドリーアウト: [推进], [拉远]
- 上昇・下降: [上升], [下降]
- 上下チルト: [上摇], [下摇]
- ズーム: [变焦推近], [变焦拉远]
- その他: [晃动], [跟随], [固定]
- 組み合わせカメラワーク: 同じ [] 内の複数の指示は同時に有効になります。例: [左摇,上升]。組み合わせは 3 つ以下を推奨します
- 順次カメラワーク: prompt 内で前後に出現する指示は順番に有効になります。例: ”…[推进], その後…[拉远]”
- 自然言語: 自然言語でカメラワークを説明することもできますが、標準指示を使用するとより正確な応答が得られます
integer
生成する動画の長さ(秒)。デフォルト値:
指定可能な値:
6指定可能な値:
6、10string
生成する動画の解像度。デフォルト値:
768P- 6 秒動画で対応:
768P、1080P - 10 秒動画でのみ対応:
768P
boolean
プロンプト最適化を有効にするかどうか。デフォルト値:
true。boolean
デフォルト:false
プロンプト最適化にかかる時間を短縮するかどうか。デフォルト値:
false。レスポンス情報
string
必須
非同期タスクの task_id。この task_id を使用して タスク結果照会 API にリクエストし、生成結果を取得してください
⌘I