Text to Video
curl --request POST \
--url https://api.modelhunter.ai/api/v1/minimax/text-to-video \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"input": {
"prompt": "<string>",
"aspect_ratio": "<string>",
"duration": 123,
"resolution": "<string>"
},
"webhookUrl": "<string>",
"metadata": {}
}
'import requests
url = "https://api.modelhunter.ai/api/v1/minimax/text-to-video"
payload = {
"model": "<string>",
"input": {
"prompt": "<string>",
"aspect_ratio": "<string>",
"duration": 123,
"resolution": "<string>"
},
"webhookUrl": "<string>",
"metadata": {}
}
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: '<string>',
input: {
prompt: '<string>',
aspect_ratio: '<string>',
duration: 123,
resolution: '<string>'
},
webhookUrl: '<string>',
metadata: {}
})
};
fetch('https://api.modelhunter.ai/api/v1/minimax/text-to-video', 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.modelhunter.ai/api/v1/minimax/text-to-video",
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' => '<string>',
'input' => [
'prompt' => '<string>',
'aspect_ratio' => '<string>',
'duration' => 123,
'resolution' => '<string>'
],
'webhookUrl' => '<string>',
'metadata' => [
]
]),
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.modelhunter.ai/api/v1/minimax/text-to-video"
payload := strings.NewReader("{\n \"model\": \"<string>\",\n \"input\": {\n \"prompt\": \"<string>\",\n \"aspect_ratio\": \"<string>\",\n \"duration\": 123,\n \"resolution\": \"<string>\"\n },\n \"webhookUrl\": \"<string>\",\n \"metadata\": {}\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.modelhunter.ai/api/v1/minimax/text-to-video")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"<string>\",\n \"input\": {\n \"prompt\": \"<string>\",\n \"aspect_ratio\": \"<string>\",\n \"duration\": 123,\n \"resolution\": \"<string>\"\n },\n \"webhookUrl\": \"<string>\",\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.modelhunter.ai/api/v1/minimax/text-to-video")
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\": \"<string>\",\n \"input\": {\n \"prompt\": \"<string>\",\n \"aspect_ratio\": \"<string>\",\n \"duration\": 123,\n \"resolution\": \"<string>\"\n },\n \"webhookUrl\": \"<string>\",\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "task_abc123",
"status": "pending",
"type": "text-to-video",
"provider": "minimax",
"model": "minimax-h3/text-to-video",
"created_at": "2026-11-23T10:00:00Z",
"estimated_seconds": 300
}
}
{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "input.duration must be an integer between 4 and 15"
}
}
MiniMax H3
Text to Video
Generate 4–15 second videos with generated stereo audio from text using MiniMax H3.
POST
/
api
/
v1
/
minimax
/
text-to-video
Text to Video
curl --request POST \
--url https://api.modelhunter.ai/api/v1/minimax/text-to-video \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "<string>",
"input": {
"prompt": "<string>",
"aspect_ratio": "<string>",
"duration": 123,
"resolution": "<string>"
},
"webhookUrl": "<string>",
"metadata": {}
}
'import requests
url = "https://api.modelhunter.ai/api/v1/minimax/text-to-video"
payload = {
"model": "<string>",
"input": {
"prompt": "<string>",
"aspect_ratio": "<string>",
"duration": 123,
"resolution": "<string>"
},
"webhookUrl": "<string>",
"metadata": {}
}
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: '<string>',
input: {
prompt: '<string>',
aspect_ratio: '<string>',
duration: 123,
resolution: '<string>'
},
webhookUrl: '<string>',
metadata: {}
})
};
fetch('https://api.modelhunter.ai/api/v1/minimax/text-to-video', 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.modelhunter.ai/api/v1/minimax/text-to-video",
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' => '<string>',
'input' => [
'prompt' => '<string>',
'aspect_ratio' => '<string>',
'duration' => 123,
'resolution' => '<string>'
],
'webhookUrl' => '<string>',
'metadata' => [
]
]),
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.modelhunter.ai/api/v1/minimax/text-to-video"
payload := strings.NewReader("{\n \"model\": \"<string>\",\n \"input\": {\n \"prompt\": \"<string>\",\n \"aspect_ratio\": \"<string>\",\n \"duration\": 123,\n \"resolution\": \"<string>\"\n },\n \"webhookUrl\": \"<string>\",\n \"metadata\": {}\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.modelhunter.ai/api/v1/minimax/text-to-video")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"<string>\",\n \"input\": {\n \"prompt\": \"<string>\",\n \"aspect_ratio\": \"<string>\",\n \"duration\": 123,\n \"resolution\": \"<string>\"\n },\n \"webhookUrl\": \"<string>\",\n \"metadata\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.modelhunter.ai/api/v1/minimax/text-to-video")
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\": \"<string>\",\n \"input\": {\n \"prompt\": \"<string>\",\n \"aspect_ratio\": \"<string>\",\n \"duration\": 123,\n \"resolution\": \"<string>\"\n },\n \"webhookUrl\": \"<string>\",\n \"metadata\": {}\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "task_abc123",
"status": "pending",
"type": "text-to-video",
"provider": "minimax",
"model": "minimax-h3/text-to-video",
"created_at": "2026-11-23T10:00:00Z",
"estimated_seconds": 300
}
}
{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "input.duration must be an integer between 4 and 15"
}
}
Models
| Model | Resolutions | Duration | Prompt length |
|---|---|---|---|
minimax-h3/text-to-video | 768P, 2K | 4–15 s | 7000 |
This endpoint only accepts
minimax-h3/text-to-video. Any other model returns a 400 “Invalid route” error.Body Parameters
Input parameters for the generation.
Pricing
Billed per second of output video (audio included):| Resolution | Price |
|---|---|
768P | $0.08/sec |
2K | $0.13/sec |
2K video costs $0.13 × 10 = $1.30. Failed tasks are refunded.
Prices are in USD and current as of November 23, 2026.
Example
curl -X POST https://api.modelhunter.ai/api/v1/minimax/text-to-video \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "minimax-h3/text-to-video",
"input": {
"prompt": "A street drummer performs in a neon-lit alley at night as the crowd cheers",
"aspect_ratio": "16:9",
"duration": 10,
"resolution": "2K"
},
"metadata": {
"project": "launch-video"
}
}'
{
"success": true,
"data": {
"id": "task_abc123",
"status": "pending",
"type": "text-to-video",
"provider": "minimax",
"model": "minimax-h3/text-to-video",
"created_at": "2026-11-23T10:00:00Z",
"estimated_seconds": 300
}
}
{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "input.duration must be an integer between 4 and 15"
}
}