跳转到主要内容
POST
/
v3
/
async
/
minimax-video-01
Minimax Video-01
curl --request POST \
  --url https://api.ppio.com/v3/async/minimax-video-01 \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "prompt": "<string>",
  "image_url": "<string>",
  "enable_prompt_expansion": true,
  "aigc_watermark": true
}
'
import requests

url = "https://api.ppio.com/v3/async/minimax-video-01"

payload = {
"prompt": "<string>",
"image_url": "<string>",
"enable_prompt_expansion": True,
"aigc_watermark": 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>',
image_url: '<string>',
enable_prompt_expansion: true,
aigc_watermark: true
})
};

fetch('https://api.ppio.com/v3/async/minimax-video-01', 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.ppio.com/v3/async/minimax-video-01",
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>',
'image_url' => '<string>',
'enable_prompt_expansion' => true,
'aigc_watermark' => 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.ppio.com/v3/async/minimax-video-01"

payload := strings.NewReader("{\n \"prompt\": \"<string>\",\n \"image_url\": \"<string>\",\n \"enable_prompt_expansion\": true,\n \"aigc_watermark\": 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.ppio.com/v3/async/minimax-video-01")
.header("Content-Type", "<content-type>")
.header("Authorization", "<authorization>")
.body("{\n \"prompt\": \"<string>\",\n \"image_url\": \"<string>\",\n \"enable_prompt_expansion\": true,\n \"aigc_watermark\": true\n}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.ppio.com/v3/async/minimax-video-01")

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 \"image_url\": \"<string>\",\n \"enable_prompt_expansion\": true,\n \"aigc_watermark\": true\n}"

response = http.request(request)
puts response.read_body
{
  "task_id": "<string>"
}
Minimax Video-01(又名海螺)是一款 AI 视频生成模型,可生成 6 秒、720p 分辨率、25 帧/秒的视频。支持文本生成视频(文生视频)和图片生成视频(图生视频)两种模式。
这是一个异步API,只会返回异步任务的 task_id。您应该使用该 task_id 请求 查询任务结果 API 来检索视频生成结果。

请求头

Content-Type
string
必填
枚举值: application/json
Authorization
string
必填
Bearer 身份验证格式,例如:Bearer {{API 密钥}}。

请求体

prompt
string
必填
指导生成所需的提示词文本。取值范围:1 <= x <= 2000
image_url
string
用于视频生成的首帧图片的 URL。
enable_prompt_expansion
boolean
是否启用提示词优化。默认值:true
aigc_watermark
boolean
默认值:false
为生成的视频添加水印。
  • false:不添加水印。
  • true:在视频添加文字的水印,标识由人工智能生成合成。

响应

task_id
string
必填
异步任务的 task_id。您应该使用该 task_id 请求 查询任务结果 API 以获取生成结果
最后修改于 2026年1月12日