Minimax H3 Max Text-to-Video 文生视频
curl --request POST \
--url https://api.evolink.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "minimax-h3-max-text-to-video",
"prompt": "史诗级太空歌剧电影预告:一名女舰长独自站在巨大的观景窗前,最后一支舰队在窗外集结。舰队跃迁时爆发出刺眼白光,舰桥剧烈震动;光芒散去后,只剩她被留在寂静的深空中。电影级布光,缓慢推镜,宏大而克制的氛围。",
"duration": 5,
"quality": "768p",
"aspect_ratio": "16:9"
}
'import requests
url = "https://api.evolink.ai/v1/videos/generations"
payload = {
"model": "minimax-h3-max-text-to-video",
"prompt": "史诗级太空歌剧电影预告:一名女舰长独自站在巨大的观景窗前,最后一支舰队在窗外集结。舰队跃迁时爆发出刺眼白光,舰桥剧烈震动;光芒散去后,只剩她被留在寂静的深空中。电影级布光,缓慢推镜,宏大而克制的氛围。",
"duration": 5,
"quality": "768p",
"aspect_ratio": "16:9"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'minimax-h3-max-text-to-video',
prompt: '史诗级太空歌剧电影预告:一名女舰长独自站在巨大的观景窗前,最后一支舰队在窗外集结。舰队跃迁时爆发出刺眼白光,舰桥剧烈震动;光芒散去后,只剩她被留在寂静的深空中。电影级布光,缓慢推镜,宏大而克制的氛围。',
duration: 5,
quality: '768p',
aspect_ratio: '16:9'
})
};
fetch('https://api.evolink.ai/v1/videos/generations', 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.evolink.ai/v1/videos/generations",
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([
'model' => 'minimax-h3-max-text-to-video',
'prompt' => '史诗级太空歌剧电影预告:一名女舰长独自站在巨大的观景窗前,最后一支舰队在窗外集结。舰队跃迁时爆发出刺眼白光,舰桥剧烈震动;光芒散去后,只剩她被留在寂静的深空中。电影级布光,缓慢推镜,宏大而克制的氛围。',
'duration' => 5,
'quality' => '768p',
'aspect_ratio' => '16:9'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.evolink.ai/v1/videos/generations"
payload := strings.NewReader("{\n \"model\": \"minimax-h3-max-text-to-video\",\n \"prompt\": \"史诗级太空歌剧电影预告:一名女舰长独自站在巨大的观景窗前,最后一支舰队在窗外集结。舰队跃迁时爆发出刺眼白光,舰桥剧烈震动;光芒散去后,只剩她被留在寂静的深空中。电影级布光,缓慢推镜,宏大而克制的氛围。\",\n \"duration\": 5,\n \"quality\": \"768p\",\n \"aspect_ratio\": \"16:9\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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.evolink.ai/v1/videos/generations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"minimax-h3-max-text-to-video\",\n \"prompt\": \"史诗级太空歌剧电影预告:一名女舰长独自站在巨大的观景窗前,最后一支舰队在窗外集结。舰队跃迁时爆发出刺眼白光,舰桥剧烈震动;光芒散去后,只剩她被留在寂静的深空中。电影级布光,缓慢推镜,宏大而克制的氛围。\",\n \"duration\": 5,\n \"quality\": \"768p\",\n \"aspect_ratio\": \"16:9\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.evolink.ai/v1/videos/generations")
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 = "{\n \"model\": \"minimax-h3-max-text-to-video\",\n \"prompt\": \"史诗级太空歌剧电影预告:一名女舰长独自站在巨大的观景窗前,最后一支舰队在窗外集结。舰队跃迁时爆发出刺眼白光,舰桥剧烈震动;光芒散去后,只剩她被留在寂静的深空中。电影级布光,缓慢推镜,宏大而克制的氛围。\",\n \"duration\": 5,\n \"quality\": \"768p\",\n \"aspect_ratio\": \"16:9\"\n}"
response = http.request(request)
puts response.read_body{
"created": 1761313744,
"id": "task-unified-1774857405-abc123",
"model": "minimax-h3-max-text-to-video",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": false,
"estimated_time": 165,
"video_duration": 5
},
"type": "video",
"usage": {
"billing_rule": "per_second",
"credits_reserved": 44.2,
"user_group": "default"
}
}{
"error": {
"code": "invalid_request",
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid or expired token",
"type": "authentication_error"
}
}{
"error": {
"code": "insufficient_quota",
"message": "Insufficient quota. Please top up your account.",
"type": "insufficient_quota"
}
}{
"error": {
"code": "model_access_denied",
"message": "Token does not have access to model: minimax-h3-max-text-to-video",
"type": "invalid_request_error"
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "Too many requests, please try again later",
"type": "rate_limit_error"
}
}{
"error": {
"code": "internal_error",
"message": "Internal server error",
"type": "api_error"
}
}Minimax H3
Minimax H3 Max Text-to-Video 文生视频
- 使用非空文本提示词生成视频
- 输出时长支持
5–15秒,分辨率支持480p与768p(默认) - 不支持图片、视频或音频输入
- 异步处理模式,使用返回的任务 ID 进行查询
- 生成的视频链接有效期为 24 小时,请尽快保存
POST
/
v1
/
videos
/
generations
Minimax H3 Max Text-to-Video 文生视频
curl --request POST \
--url https://api.evolink.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "minimax-h3-max-text-to-video",
"prompt": "史诗级太空歌剧电影预告:一名女舰长独自站在巨大的观景窗前,最后一支舰队在窗外集结。舰队跃迁时爆发出刺眼白光,舰桥剧烈震动;光芒散去后,只剩她被留在寂静的深空中。电影级布光,缓慢推镜,宏大而克制的氛围。",
"duration": 5,
"quality": "768p",
"aspect_ratio": "16:9"
}
'import requests
url = "https://api.evolink.ai/v1/videos/generations"
payload = {
"model": "minimax-h3-max-text-to-video",
"prompt": "史诗级太空歌剧电影预告:一名女舰长独自站在巨大的观景窗前,最后一支舰队在窗外集结。舰队跃迁时爆发出刺眼白光,舰桥剧烈震动;光芒散去后,只剩她被留在寂静的深空中。电影级布光,缓慢推镜,宏大而克制的氛围。",
"duration": 5,
"quality": "768p",
"aspect_ratio": "16:9"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'minimax-h3-max-text-to-video',
prompt: '史诗级太空歌剧电影预告:一名女舰长独自站在巨大的观景窗前,最后一支舰队在窗外集结。舰队跃迁时爆发出刺眼白光,舰桥剧烈震动;光芒散去后,只剩她被留在寂静的深空中。电影级布光,缓慢推镜,宏大而克制的氛围。',
duration: 5,
quality: '768p',
aspect_ratio: '16:9'
})
};
fetch('https://api.evolink.ai/v1/videos/generations', 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.evolink.ai/v1/videos/generations",
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([
'model' => 'minimax-h3-max-text-to-video',
'prompt' => '史诗级太空歌剧电影预告:一名女舰长独自站在巨大的观景窗前,最后一支舰队在窗外集结。舰队跃迁时爆发出刺眼白光,舰桥剧烈震动;光芒散去后,只剩她被留在寂静的深空中。电影级布光,缓慢推镜,宏大而克制的氛围。',
'duration' => 5,
'quality' => '768p',
'aspect_ratio' => '16:9'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.evolink.ai/v1/videos/generations"
payload := strings.NewReader("{\n \"model\": \"minimax-h3-max-text-to-video\",\n \"prompt\": \"史诗级太空歌剧电影预告:一名女舰长独自站在巨大的观景窗前,最后一支舰队在窗外集结。舰队跃迁时爆发出刺眼白光,舰桥剧烈震动;光芒散去后,只剩她被留在寂静的深空中。电影级布光,缓慢推镜,宏大而克制的氛围。\",\n \"duration\": 5,\n \"quality\": \"768p\",\n \"aspect_ratio\": \"16:9\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
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.evolink.ai/v1/videos/generations")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"minimax-h3-max-text-to-video\",\n \"prompt\": \"史诗级太空歌剧电影预告:一名女舰长独自站在巨大的观景窗前,最后一支舰队在窗外集结。舰队跃迁时爆发出刺眼白光,舰桥剧烈震动;光芒散去后,只剩她被留在寂静的深空中。电影级布光,缓慢推镜,宏大而克制的氛围。\",\n \"duration\": 5,\n \"quality\": \"768p\",\n \"aspect_ratio\": \"16:9\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.evolink.ai/v1/videos/generations")
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 = "{\n \"model\": \"minimax-h3-max-text-to-video\",\n \"prompt\": \"史诗级太空歌剧电影预告:一名女舰长独自站在巨大的观景窗前,最后一支舰队在窗外集结。舰队跃迁时爆发出刺眼白光,舰桥剧烈震动;光芒散去后,只剩她被留在寂静的深空中。电影级布光,缓慢推镜,宏大而克制的氛围。\",\n \"duration\": 5,\n \"quality\": \"768p\",\n \"aspect_ratio\": \"16:9\"\n}"
response = http.request(request)
puts response.read_body{
"created": 1761313744,
"id": "task-unified-1774857405-abc123",
"model": "minimax-h3-max-text-to-video",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": false,
"estimated_time": 165,
"video_duration": 5
},
"type": "video",
"usage": {
"billing_rule": "per_second",
"credits_reserved": 44.2,
"user_group": "default"
}
}{
"error": {
"code": "invalid_request",
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid or expired token",
"type": "authentication_error"
}
}{
"error": {
"code": "insufficient_quota",
"message": "Insufficient quota. Please top up your account.",
"type": "insufficient_quota"
}
}{
"error": {
"code": "model_access_denied",
"message": "Token does not have access to model: minimax-h3-max-text-to-video",
"type": "invalid_request_error"
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "Too many requests, please try again later",
"type": "rate_limit_error"
}
}{
"error": {
"code": "internal_error",
"message": "Internal server error",
"type": "api_error"
}
}授权
##所有接口均需要使用Bearer Token进行认证##
获取 API Key:
访问 API Key 管理页面 获取您的 API Key
使用时在请求头中添加:
Authorization: Bearer YOUR_API_KEY
请求体
application/json
视频生成模型名称
可用选项:
minimax-h3-max-text-to-video 示例:
"minimax-h3-max-text-to-video"
描述期望生成视频的文本提示词。
提示词要求:
- 必填且不能为空
- 支持中文和英文
- 最长
7000字符(中文和英文均按字符计) - 提示词过长时,模型可能忽略部分细节
输入限制:
- 本模型为纯文生视频,只接受文本输入
- 不支持
image_start、image_end、image_urls、video_urls、audio_urls - 传入上述媒体字段会返回参数错误
Required string length:
1 - 7000示例:
"史诗级太空歌剧电影预告:一名女舰长独自站在巨大的观景窗前,最后一支舰队在窗外集结并跃迁离开。电影级布光,缓慢推镜,宏大而克制的氛围。"
输出视频时长(秒),默认为 5 秒。
取值限制:
- 仅支持
5–15之间的整数,包括5和15 - 不支持小数、数字字符串、
auto或-1 - 输出时长与计费直接相关
必填范围:
5 <= x <= 15示例:
5
输出视频分辨率,默认为 768p。
可选值:
480p768p:默认值
注意:
- 不传该参数时按
768p出片 - 输出码率、帧率、视频编码和音频编码由平台决定,当前不提供对应请求参数
可用选项:
480p, 768p 示例:
"768p"
输出视频宽高比,默认为 16:9。
可选值:
16:9:横屏21:9:超宽屏4:3:横向标准画幅1:1:方形3:4:纵向标准画幅9:16:竖屏
可用选项:
16:9, 21:9, 4:3, 1:1, 3:4, 9:16 示例:
"16:9"
任务完成后的 HTTPS 回调地址
回调时机:
- 任务完成(completed)或失败(failed)时触发
- 在计费确认完成后发送
安全限制:
- 仅支持 HTTPS 协议
- 禁止回调到内网 IP 地址(127.0.0.1、10.x.x.x、172.16-31.x.x、192.168.x.x 等)
- URL 长度不超过
2048字符
回调机制:
- 超时时间:
10秒 - 失败后最多重试
3次(分别在失败后1/2/4秒重试) - 回调响应体格式与任务查询接口返回格式一致
- 返回 2xx 状态码视为成功,其他状态码触发重试
Pattern:
^https://示例:
"https://your-domain.com/webhooks/video-task-completed"
响应
视频生成任务创建成功
任务创建时间戳
示例:
1761313744
任务ID
示例:
"task-unified-1774857405-abc123"
实际使用的模型名称
示例:
"minimax-h3-max-text-to-video"
任务的具体类型
可用选项:
video.generation.task 任务进度百分比 (0-100)
必填范围:
0 <= x <= 100示例:
0
任务状态
可用选项:
pending, processing, completed, failed 示例:
"pending"
视频任务详细信息
Show child attributes
Show child attributes
任务的输出类型
可用选项:
text, image, audio, video 示例:
"video"
使用量和计费信息
Show child attributes
Show child attributes