curl --request POST \
--url https://api.apimart.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "MiniMax-Hailuo-02",
"prompt": "잔디밭에서 뛰어다니는 귀여운 고양이",
"duration": 5,
"resolution": "768p",
"prompt_optimizer": true,
"fast_pretreatment": false,
"watermark": false
}'
import requests
url = "https://api.apimart.ai/v1/videos/generations"
payload = {
"model": "MiniMax-Hailuo-02",
"prompt": "잔디밭에서 뛰어다니는 귀여운 고양이",
"duration": 5,
"resolution": "768p",
"prompt_optimizer": True,
"fast_pretreatment": False,
"watermark": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const url = "https://api.apimart.ai/v1/videos/generations";
const payload = {
model: "MiniMax-Hailuo-02",
prompt: "잔디밭에서 뛰어다니는 귀여운 고양이",
duration: 5,
resolution: "768p",
prompt_optimizer: true,
fast_pretreatment: false,
watermark: false
};
const headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
};
fetch(url, {
method: "POST",
headers: headers,
body: JSON.stringify(payload)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
package main
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
)
func main() {
url := "https://api.apimart.ai/v1/videos/generations"
payload := map[string]interface{}{
"model": "MiniMax-Hailuo-02",
"prompt": "잔디밭에서 뛰어다니는 귀여운 고양이",
"duration": 5,
"resolution": "768p",
"prompt_optimizer": true,
"fast_pretreatment": false,
"watermark": false,
}
jsonData, _ := json.Marshal(payload)
req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData))
req.Header.Set("Authorization", "Bearer <token>")
req.Header.Set("Content-Type", "application/json")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(body))
}
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;
public class Main {
public static void main(String[] args) throws Exception {
String url = "https://api.apimart.ai/v1/videos/generations";
String payload = """
{
"model": "MiniMax-Hailuo-02",
"prompt": "잔디밭에서 뛰어다니는 귀여운 고양이",
"duration": 5,
"resolution": "768p",
"prompt_optimizer": true,
"fast_pretreatment": false,
"watermark": false
}
""";
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create(url))
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.POST(HttpRequest.BodyPublishers.ofString(payload))
.build();
HttpResponse<String> response = client.send(request,
HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}
<?php
$url = "https://api.apimart.ai/v1/videos/generations";
$payload = [
"model" => "MiniMax-Hailuo-02",
"prompt" => "잔디밭에서 뛰어다니는 귀여운 고양이",
"duration" => 5,
"resolution" => "768p",
"prompt_optimizer" => true,
"fast_pretreatment" => false,
"watermark" => false
];
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer <token>",
"Content-Type: application/json"
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
require 'net/http'
require 'json'
require 'uri'
url = URI("https://api.apimart.ai/v1/videos/generations")
payload = {
model: "MiniMax-Hailuo-02",
prompt: "잔디밭에서 뛰어다니는 귀여운 고양이",
duration: 5,
resolution: "768p",
prompt_optimizer: true,
fast_pretreatment: false,
watermark: false
}
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = "Bearer <token>"
request["Content-Type"] = "application/json"
request.body = payload.to_json
response = http.request(request)
puts response.body
import Foundation
let url = URL(string: "https://api.apimart.ai/v1/videos/generations")!
let payload: [String: Any] = [
"model": "MiniMax-Hailuo-02",
"prompt": "잔디밭에서 뛰어다니는 귀여운 고양이",
"duration": 5,
"resolution": "768p",
"prompt_optimizer": true,
"fast_pretreatment": false,
"watermark": false
]
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.setValue("Bearer <token>", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
request.httpBody = try? JSONSerialization.data(withJSONObject: payload)
let task = URLSession.shared.dataTask(with: request) { data, response, error in
if let error = error {
print("Error: \(error)")
return
}
if let data = data, let responseString = String(data: data, encoding: .utf8) {
print(responseString)
}
}
task.resume()
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
class Program
{
static async Task Main(string[] args)
{
var url = "https://api.apimart.ai/v1/videos/generations";
var payload = @"{
""model"": ""MiniMax-Hailuo-02"",
""prompt"": ""잔디밭에서 뛰어다니는 귀여운 고양이"",
""duration"": 5,
""resolution"": ""768p"",
""prompt_optimizer"": true,
""fast_pretreatment"": false,
""watermark"": false
}";
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "Bearer <token>");
var content = new StringContent(payload, Encoding.UTF8, "application/json");
var response = await client.PostAsync(url, content);
var result = await response.Content.ReadAsStringAsync();
Console.WriteLine(result);
}
}
{
"code": 200,
"data": [
{
"status": "submitted",
"task_id": "task_01K8SGYNNNVBQTXNR4MM964S7K"
}
]
}
{
"error": {
"code": 400,
"message": "요청 매개변수가 잘못되었습니다",
"type": "invalid_request_error"
}
}
{
"error": {
"code": 401,
"message": "인증 실패, API 키를 확인하세요",
"type": "authentication_error"
}
}
{
"error": {
"code": 402,
"message": "계정 잔액이 부족합니다. 충전해 주세요",
"type": "payment_required"
}
}
{
"error": {
"code": 429,
"message": "요청이 너무 많습니다. 나중에 다시 시도하세요",
"type": "rate_limit_error"
}
}
{
"error": {
"code": 500,
"message": "내부 서버 오류, 나중에 다시 시도하세요",
"type": "server_error"
}
}
MiniMax-Hailuo-02
MiniMax-Hailuo-02 비디오 생성
- 비동기 처리 모드, 후속 쿼리를 위한 작업 ID 반환
- 텍스트-비디오, 이미지-비디오 (첫 프레임/마지막 프레임) 지원
- 5초 및 10초 길이, 다양한 해상도 지원
- 자동 프롬프트 최적화 및 워터마크 제어 지원
POST
/
v1
/
videos
/
generations
curl --request POST \
--url https://api.apimart.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "MiniMax-Hailuo-02",
"prompt": "잔디밭에서 뛰어다니는 귀여운 고양이",
"duration": 5,
"resolution": "768p",
"prompt_optimizer": true,
"fast_pretreatment": false,
"watermark": false
}'
import requests
url = "https://api.apimart.ai/v1/videos/generations"
payload = {
"model": "MiniMax-Hailuo-02",
"prompt": "잔디밭에서 뛰어다니는 귀여운 고양이",
"duration": 5,
"resolution": "768p",
"prompt_optimizer": True,
"fast_pretreatment": False,
"watermark": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const url = "https://api.apimart.ai/v1/videos/generations";
const payload = {
model: "MiniMax-Hailuo-02",
prompt: "잔디밭에서 뛰어다니는 귀여운 고양이",
duration: 5,
resolution: "768p",
prompt_optimizer: true,
fast_pretreatment: false,
watermark: false
};
const headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
};
fetch(url, {
method: "POST",
headers: headers,
body: JSON.stringify(payload)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
package main
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
)
func main() {
url := "https://api.apimart.ai/v1/videos/generations"
payload := map[string]interface{}{
"model": "MiniMax-Hailuo-02",
"prompt": "잔디밭에서 뛰어다니는 귀여운 고양이",
"duration": 5,
"resolution": "768p",
"prompt_optimizer": true,
"fast_pretreatment": false,
"watermark": false,
}
jsonData, _ := json.Marshal(payload)
req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData))
req.Header.Set("Authorization", "Bearer <token>")
req.Header.Set("Content-Type", "application/json")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(body))
}
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;
public class Main {
public static void main(String[] args) throws Exception {
String url = "https://api.apimart.ai/v1/videos/generations";
String payload = """
{
"model": "MiniMax-Hailuo-02",
"prompt": "잔디밭에서 뛰어다니는 귀여운 고양이",
"duration": 5,
"resolution": "768p",
"prompt_optimizer": true,
"fast_pretreatment": false,
"watermark": false
}
""";
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create(url))
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.POST(HttpRequest.BodyPublishers.ofString(payload))
.build();
HttpResponse<String> response = client.send(request,
HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}
<?php
$url = "https://api.apimart.ai/v1/videos/generations";
$payload = [
"model" => "MiniMax-Hailuo-02",
"prompt" => "잔디밭에서 뛰어다니는 귀여운 고양이",
"duration" => 5,
"resolution" => "768p",
"prompt_optimizer" => true,
"fast_pretreatment" => false,
"watermark" => false
];
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer <token>",
"Content-Type: application/json"
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
require 'net/http'
require 'json'
require 'uri'
url = URI("https://api.apimart.ai/v1/videos/generations")
payload = {
model: "MiniMax-Hailuo-02",
prompt: "잔디밭에서 뛰어다니는 귀여운 고양이",
duration: 5,
resolution: "768p",
prompt_optimizer: true,
fast_pretreatment: false,
watermark: false
}
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = "Bearer <token>"
request["Content-Type"] = "application/json"
request.body = payload.to_json
response = http.request(request)
puts response.body
import Foundation
let url = URL(string: "https://api.apimart.ai/v1/videos/generations")!
let payload: [String: Any] = [
"model": "MiniMax-Hailuo-02",
"prompt": "잔디밭에서 뛰어다니는 귀여운 고양이",
"duration": 5,
"resolution": "768p",
"prompt_optimizer": true,
"fast_pretreatment": false,
"watermark": false
]
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.setValue("Bearer <token>", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
request.httpBody = try? JSONSerialization.data(withJSONObject: payload)
let task = URLSession.shared.dataTask(with: request) { data, response, error in
if let error = error {
print("Error: \(error)")
return
}
if let data = data, let responseString = String(data: data, encoding: .utf8) {
print(responseString)
}
}
task.resume()
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
class Program
{
static async Task Main(string[] args)
{
var url = "https://api.apimart.ai/v1/videos/generations";
var payload = @"{
""model"": ""MiniMax-Hailuo-02"",
""prompt"": ""잔디밭에서 뛰어다니는 귀여운 고양이"",
""duration"": 5,
""resolution"": ""768p"",
""prompt_optimizer"": true,
""fast_pretreatment"": false,
""watermark"": false
}";
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "Bearer <token>");
var content = new StringContent(payload, Encoding.UTF8, "application/json");
var response = await client.PostAsync(url, content);
var result = await response.Content.ReadAsStringAsync();
Console.WriteLine(result);
}
}
{
"code": 200,
"data": [
{
"status": "submitted",
"task_id": "task_01K8SGYNNNVBQTXNR4MM964S7K"
}
]
}
{
"error": {
"code": 400,
"message": "요청 매개변수가 잘못되었습니다",
"type": "invalid_request_error"
}
}
{
"error": {
"code": 401,
"message": "인증 실패, API 키를 확인하세요",
"type": "authentication_error"
}
}
{
"error": {
"code": 402,
"message": "계정 잔액이 부족합니다. 충전해 주세요",
"type": "payment_required"
}
}
{
"error": {
"code": 429,
"message": "요청이 너무 많습니다. 나중에 다시 시도하세요",
"type": "rate_limit_error"
}
}
{
"error": {
"code": 500,
"message": "내부 서버 오류, 나중에 다시 시도하세요",
"type": "server_error"
}
}
curl --request POST \
--url https://api.apimart.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "MiniMax-Hailuo-02",
"prompt": "잔디밭에서 뛰어다니는 귀여운 고양이",
"duration": 5,
"resolution": "768p",
"prompt_optimizer": true,
"fast_pretreatment": false,
"watermark": false
}'
import requests
url = "https://api.apimart.ai/v1/videos/generations"
payload = {
"model": "MiniMax-Hailuo-02",
"prompt": "잔디밭에서 뛰어다니는 귀여운 고양이",
"duration": 5,
"resolution": "768p",
"prompt_optimizer": True,
"fast_pretreatment": False,
"watermark": False
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.json())
const url = "https://api.apimart.ai/v1/videos/generations";
const payload = {
model: "MiniMax-Hailuo-02",
prompt: "잔디밭에서 뛰어다니는 귀여운 고양이",
duration: 5,
resolution: "768p",
prompt_optimizer: true,
fast_pretreatment: false,
watermark: false
};
const headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
};
fetch(url, {
method: "POST",
headers: headers,
body: JSON.stringify(payload)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
package main
import (
"bytes"
"encoding/json"
"fmt"
"io/ioutil"
"net/http"
)
func main() {
url := "https://api.apimart.ai/v1/videos/generations"
payload := map[string]interface{}{
"model": "MiniMax-Hailuo-02",
"prompt": "잔디밭에서 뛰어다니는 귀여운 고양이",
"duration": 5,
"resolution": "768p",
"prompt_optimizer": true,
"fast_pretreatment": false,
"watermark": false,
}
jsonData, _ := json.Marshal(payload)
req, _ := http.NewRequest("POST", url, bytes.NewBuffer(jsonData))
req.Header.Set("Authorization", "Bearer <token>")
req.Header.Set("Content-Type", "application/json")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, _ := ioutil.ReadAll(resp.Body)
fmt.Println(string(body))
}
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URI;
public class Main {
public static void main(String[] args) throws Exception {
String url = "https://api.apimart.ai/v1/videos/generations";
String payload = """
{
"model": "MiniMax-Hailuo-02",
"prompt": "잔디밭에서 뛰어다니는 귀여운 고양이",
"duration": 5,
"resolution": "768p",
"prompt_optimizer": true,
"fast_pretreatment": false,
"watermark": false
}
""";
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create(url))
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.POST(HttpRequest.BodyPublishers.ofString(payload))
.build();
HttpResponse<String> response = client.send(request,
HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}
<?php
$url = "https://api.apimart.ai/v1/videos/generations";
$payload = [
"model" => "MiniMax-Hailuo-02",
"prompt" => "잔디밭에서 뛰어다니는 귀여운 고양이",
"duration" => 5,
"resolution" => "768p",
"prompt_optimizer" => true,
"fast_pretreatment" => false,
"watermark" => false
];
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($payload));
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer <token>",
"Content-Type: application/json"
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
require 'net/http'
require 'json'
require 'uri'
url = URI("https://api.apimart.ai/v1/videos/generations")
payload = {
model: "MiniMax-Hailuo-02",
prompt: "잔디밭에서 뛰어다니는 귀여운 고양이",
duration: 5,
resolution: "768p",
prompt_optimizer: true,
fast_pretreatment: false,
watermark: false
}
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = "Bearer <token>"
request["Content-Type"] = "application/json"
request.body = payload.to_json
response = http.request(request)
puts response.body
import Foundation
let url = URL(string: "https://api.apimart.ai/v1/videos/generations")!
let payload: [String: Any] = [
"model": "MiniMax-Hailuo-02",
"prompt": "잔디밭에서 뛰어다니는 귀여운 고양이",
"duration": 5,
"resolution": "768p",
"prompt_optimizer": true,
"fast_pretreatment": false,
"watermark": false
]
var request = URLRequest(url: url)
request.httpMethod = "POST"
request.setValue("Bearer <token>", forHTTPHeaderField: "Authorization")
request.setValue("application/json", forHTTPHeaderField: "Content-Type")
request.httpBody = try? JSONSerialization.data(withJSONObject: payload)
let task = URLSession.shared.dataTask(with: request) { data, response, error in
if let error = error {
print("Error: \(error)")
return
}
if let data = data, let responseString = String(data: data, encoding: .utf8) {
print(responseString)
}
}
task.resume()
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
class Program
{
static async Task Main(string[] args)
{
var url = "https://api.apimart.ai/v1/videos/generations";
var payload = @"{
""model"": ""MiniMax-Hailuo-02"",
""prompt"": ""잔디밭에서 뛰어다니는 귀여운 고양이"",
""duration"": 5,
""resolution"": ""768p"",
""prompt_optimizer"": true,
""fast_pretreatment"": false,
""watermark"": false
}";
using var client = new HttpClient();
client.DefaultRequestHeaders.Add("Authorization", "Bearer <token>");
var content = new StringContent(payload, Encoding.UTF8, "application/json");
var response = await client.PostAsync(url, content);
var result = await response.Content.ReadAsStringAsync();
Console.WriteLine(result);
}
}
{
"code": 200,
"data": [
{
"status": "submitted",
"task_id": "task_01K8SGYNNNVBQTXNR4MM964S7K"
}
]
}
{
"error": {
"code": 400,
"message": "요청 매개변수가 잘못되었습니다",
"type": "invalid_request_error"
}
}
{
"error": {
"code": 401,
"message": "인증 실패, API 키를 확인하세요",
"type": "authentication_error"
}
}
{
"error": {
"code": 402,
"message": "계정 잔액이 부족합니다. 충전해 주세요",
"type": "payment_required"
}
}
{
"error": {
"code": 429,
"message": "요청이 너무 많습니다. 나중에 다시 시도하세요",
"type": "rate_limit_error"
}
}
{
"error": {
"code": 500,
"message": "내부 서버 오류, 나중에 다시 시도하세요",
"type": "server_error"
}
}
인증
모든 API 엔드포인트는 Bearer Token 인증이 필요합니다API 키 얻기:API 키 관리 페이지에서 API 키를 얻으세요요청 헤더에 추가:
Authorization: Bearer YOUR_API_KEY
요청 매개변수
비디오 생성 모델 이름고정 값:
MiniMax-Hailuo-02비디오 내용 설명더 나은 생성 결과를 위해 장면, 동작, 스타일 등을 자세히 설명하세요예:
"잔디밭에서 뛰어다니는 귀여운 고양이"비디오 길이 (초)옵션:
5- 5초 비디오10- 10초 비디오
51080p 제한: 1080p 해상도를 사용할 때는 5초 길이만 지원됩니다
비디오 해상도옵션:
512p- 표준 화질768p- 고화질1080p- 풀 HD (5초 길이만 지원)
768p프롬프트를 자동으로 최적화할지 여부활성화하면 시스템이 더 나은 생성 결과를 위해 프롬프트를 자동으로 최적화합니다기본값:
true프롬프트 최적화 시간을 줄일지 여부활성화하면 처리 속도를 높일 수 있지만 최적화 품질에 약간 영향을 줄 수 있습니다기본값:
false워터마크를 추가할지 여부기본값:
false비디오 첫 프레임 이미지두 가지 형식 지원:
- 공개 URL:
https://example.com/start.jpg - Base64 인코딩:
data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABg...
비디오 마지막 프레임 이미지두 가지 형식 지원:
- 공개 URL:
https://example.com/end.jpg - Base64 인코딩:
data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABg...
매개변수 제한
| 제한사항 | 설명 |
|---|---|
| 길이 | 5초 또는 10초만 지원 |
| 1080p 해상도 | 5초 길이만 지원 |
| 이미지 형식 | 공개 URL 또는 Base64 인코딩 (data:image/jpeg;base64,...) 지원 |
해상도 및 길이 조합
| 해상도 | 지원되는 길이 | 참고 |
|---|---|---|
| 512p | 5초, 10초 | 모두 지원 |
| 768p | 5초, 10초 | 모두 지원 |
| 1080p | 5초 | 10초 지원 안 함 |
응답
응답 상태 코드, 성공 시 200
사용 시나리오
시나리오 1: 빠른 텍스트-비디오 생성
{
"model": "MiniMax-Hailuo-02",
"prompt": "밝은 햇살 속에서 잔디밭을 뛰어다니는 귀여운 고양이"
}
시나리오 2: 고품질 1080p 비디오 생성
{
"model": "MiniMax-Hailuo-02",
"prompt": "도시 야경, 네온 불빛 깜빡임, 교통 흐름",
"duration": 5,
"resolution": "1080p",
"prompt_optimizer": true,
"watermark": false
}
시나리오 3: 첫 프레임 이미지에서 비디오 생성
{
"model": "MiniMax-Hailuo-02",
"prompt": "사람이 천천히 돌아서며 미소 짓는다",
"duration": 5,
"resolution": "768p",
"first_frame_image": "https://example.com/portrait.jpg"
}
시나리오 4: 첫 프레임과 마지막 프레임으로 전환 비디오
{
"model": "MiniMax-Hailuo-02",
"prompt": "낮에서 밤으로 서서히 전환되며 하늘 색이 그라데이션으로 바뀜",
"duration": 10,
"resolution": "768p",
"first_frame_image": "https://example.com/day.jpg",
"last_frame_image": "https://example.com/night.jpg",
"prompt_optimizer": true
}
시나리오 5: 빠른 전처리 모드
{
"model": "MiniMax-Hailuo-02",
"prompt": "석양의 해변에서 파도가 모래사장으로 밀려오는 장면",
"duration": 5,
"resolution": "768p",
"prompt_optimizer": true,
"fast_pretreatment": true
}
작업 결과 쿼리비디오 생성은 비동기 작업이며 제출 시
task_id가 반환됩니다. 작업 상태 가져오기 엔드포인트를 사용하여 생성 진행 상황과 결과를 쿼리하세요.⌘I