curl --request POST \
--url https://api.budgetpixel.com/v1/videos/minimax-h3-max \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "<string>",
"audio": "<string>",
"end_image": "<string>",
"image": "<string>",
"length_seconds": 5,
"reference_audios": [
"<string>"
],
"reference_images": [
"<string>"
],
"reference_videos": [
"<string>"
],
"resolution": "768p",
"seed": 123,
"video": "<string>"
}
'import requests
url = "https://api.budgetpixel.com/v1/videos/minimax-h3-max"
payload = {
"prompt": "<string>",
"audio": "<string>",
"end_image": "<string>",
"image": "<string>",
"length_seconds": 5,
"reference_audios": ["<string>"],
"reference_images": ["<string>"],
"reference_videos": ["<string>"],
"resolution": "768p",
"seed": 123,
"video": "<string>"
}
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({
prompt: '<string>',
audio: '<string>',
end_image: '<string>',
image: '<string>',
length_seconds: 5,
reference_audios: ['<string>'],
reference_images: ['<string>'],
reference_videos: ['<string>'],
resolution: '768p',
seed: 123,
video: '<string>'
})
};
fetch('https://api.budgetpixel.com/v1/videos/minimax-h3-max', 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.budgetpixel.com/v1/videos/minimax-h3-max",
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>',
'audio' => '<string>',
'end_image' => '<string>',
'image' => '<string>',
'length_seconds' => 5,
'reference_audios' => [
'<string>'
],
'reference_images' => [
'<string>'
],
'reference_videos' => [
'<string>'
],
'resolution' => '768p',
'seed' => 123,
'video' => '<string>'
]),
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.budgetpixel.com/v1/videos/minimax-h3-max"
payload := strings.NewReader("{\n \"prompt\": \"<string>\",\n \"audio\": \"<string>\",\n \"end_image\": \"<string>\",\n \"image\": \"<string>\",\n \"length_seconds\": 5,\n \"reference_audios\": [\n \"<string>\"\n ],\n \"reference_images\": [\n \"<string>\"\n ],\n \"reference_videos\": [\n \"<string>\"\n ],\n \"resolution\": \"768p\",\n \"seed\": 123,\n \"video\": \"<string>\"\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.budgetpixel.com/v1/videos/minimax-h3-max")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"<string>\",\n \"audio\": \"<string>\",\n \"end_image\": \"<string>\",\n \"image\": \"<string>\",\n \"length_seconds\": 5,\n \"reference_audios\": [\n \"<string>\"\n ],\n \"reference_images\": [\n \"<string>\"\n ],\n \"reference_videos\": [\n \"<string>\"\n ],\n \"resolution\": \"768p\",\n \"seed\": 123,\n \"video\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.budgetpixel.com/v1/videos/minimax-h3-max")
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 \"prompt\": \"<string>\",\n \"audio\": \"<string>\",\n \"end_image\": \"<string>\",\n \"image\": \"<string>\",\n \"length_seconds\": 5,\n \"reference_audios\": [\n \"<string>\"\n ],\n \"reference_images\": [\n \"<string>\"\n ],\n \"reference_videos\": [\n \"<string>\"\n ],\n \"resolution\": \"768p\",\n \"seed\": 123,\n \"video\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"message": "<string>",
"model": "<string>",
"status": "pending"
}{
"error": {
"code": "model_not_available",
"message": "<string>",
"type": "invalid_request_error"
}
}{
"error": {
"code": "model_not_available",
"message": "<string>",
"type": "invalid_request_error"
}
}{
"error": {
"code": "model_not_available",
"message": "<string>",
"type": "invalid_request_error"
}
}{
"error": {
"code": "model_not_available",
"message": "<string>",
"type": "invalid_request_error"
}
}Generate video with MiniMax H3 Max
MiniMax H3 Max — the post-trained H3 variant tuned for stronger prompt adherence and aesthetics, with native audio. Text-to-video; image-to-video (start and/or end frame); reference-to-video mixing up to 5 reference images, up to 3 reference video clips (2-15s each, 15s combined — billed per second of INPUT, see POST /v1/cost) and up to 3 reference audio clips (free); and video extension (supply a video to continue it). 480p/768p/1080p (2K when extending), any duration 5-15 seconds. Priced per output second by resolution (see resolution_pricing in GET /v1/models); reference images beyond the first two add a small per-image charge.
Asynchronous. Returns a job id (the video is not in this response). Poll GET /v1/videos/{id} until status is succeeded — the video URL is in that response’s video_url.
Examples, sample output and pricing: MiniMax H3 Max
curl --request POST \
--url https://api.budgetpixel.com/v1/videos/minimax-h3-max \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"prompt": "<string>",
"audio": "<string>",
"end_image": "<string>",
"image": "<string>",
"length_seconds": 5,
"reference_audios": [
"<string>"
],
"reference_images": [
"<string>"
],
"reference_videos": [
"<string>"
],
"resolution": "768p",
"seed": 123,
"video": "<string>"
}
'import requests
url = "https://api.budgetpixel.com/v1/videos/minimax-h3-max"
payload = {
"prompt": "<string>",
"audio": "<string>",
"end_image": "<string>",
"image": "<string>",
"length_seconds": 5,
"reference_audios": ["<string>"],
"reference_images": ["<string>"],
"reference_videos": ["<string>"],
"resolution": "768p",
"seed": 123,
"video": "<string>"
}
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({
prompt: '<string>',
audio: '<string>',
end_image: '<string>',
image: '<string>',
length_seconds: 5,
reference_audios: ['<string>'],
reference_images: ['<string>'],
reference_videos: ['<string>'],
resolution: '768p',
seed: 123,
video: '<string>'
})
};
fetch('https://api.budgetpixel.com/v1/videos/minimax-h3-max', 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.budgetpixel.com/v1/videos/minimax-h3-max",
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>',
'audio' => '<string>',
'end_image' => '<string>',
'image' => '<string>',
'length_seconds' => 5,
'reference_audios' => [
'<string>'
],
'reference_images' => [
'<string>'
],
'reference_videos' => [
'<string>'
],
'resolution' => '768p',
'seed' => 123,
'video' => '<string>'
]),
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.budgetpixel.com/v1/videos/minimax-h3-max"
payload := strings.NewReader("{\n \"prompt\": \"<string>\",\n \"audio\": \"<string>\",\n \"end_image\": \"<string>\",\n \"image\": \"<string>\",\n \"length_seconds\": 5,\n \"reference_audios\": [\n \"<string>\"\n ],\n \"reference_images\": [\n \"<string>\"\n ],\n \"reference_videos\": [\n \"<string>\"\n ],\n \"resolution\": \"768p\",\n \"seed\": 123,\n \"video\": \"<string>\"\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.budgetpixel.com/v1/videos/minimax-h3-max")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"prompt\": \"<string>\",\n \"audio\": \"<string>\",\n \"end_image\": \"<string>\",\n \"image\": \"<string>\",\n \"length_seconds\": 5,\n \"reference_audios\": [\n \"<string>\"\n ],\n \"reference_images\": [\n \"<string>\"\n ],\n \"reference_videos\": [\n \"<string>\"\n ],\n \"resolution\": \"768p\",\n \"seed\": 123,\n \"video\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.budgetpixel.com/v1/videos/minimax-h3-max")
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 \"prompt\": \"<string>\",\n \"audio\": \"<string>\",\n \"end_image\": \"<string>\",\n \"image\": \"<string>\",\n \"length_seconds\": 5,\n \"reference_audios\": [\n \"<string>\"\n ],\n \"reference_images\": [\n \"<string>\"\n ],\n \"reference_videos\": [\n \"<string>\"\n ],\n \"resolution\": \"768p\",\n \"seed\": 123,\n \"video\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"message": "<string>",
"model": "<string>",
"status": "pending"
}{
"error": {
"code": "model_not_available",
"message": "<string>",
"type": "invalid_request_error"
}
}{
"error": {
"code": "model_not_available",
"message": "<string>",
"type": "invalid_request_error"
}
}{
"error": {
"code": "model_not_available",
"message": "<string>",
"type": "invalid_request_error"
}
}{
"error": {
"code": "model_not_available",
"message": "<string>",
"type": "invalid_request_error"
}
}Authorizations
API key as a bearer token: Authorization: Bearer bpx_live_xxx
Body
Text description of the video. In reference mode, address assets by order: "Image 1", "Video 1", "Audio 1". When extending, describe what happens next, not the source.
Aspect ratio. Text-to-video uses it directly; image-to-video follows the frame image and ignores it; reference-to-video also accepts "adaptive" (the default there); extension accepts "auto" (follow the source — the default there) or a ratio to crop to. Defaults: 16:9 for text-to-video.
16:9, 9:16, 1:1, 4:3, 3:4, 21:9, adaptive, auto Optional soundtrack (≥2s, ≤15MB, MP3/WAV) pinned to a text-to-video or image-to-video output: it replaces the generated audio, trimmed to the video length. Provide a public audio URL or an uploaded-file URL from POST /v1/uploads. Not available with reference media or video.
Optional last frame. With image the video interpolates between the two frames; on its own it is an end-keyframe generation. Same input forms as image.
Optional first frame for image-to-video — the output follows its framing. Provide a public image URL, a data URI, raw base64, or an uploaded-file URL from POST /v1/uploads. Can't be combined with reference media or video.
Output length in seconds (5-15). When extending, the seconds of NEW footage appended to the source.
5 <= x <= 15Optional reference audio clips (up to 3; each 2-15s, 15s combined; WAV/MP3) for sound/voice guidance, addressed as "Audio 1"… Each item is a public audio URL or an uploaded-file URL from POST /v1/uploads. Free. Can't be combined with image/end_image.
3Optional reference images (up to 5) for subjects/style in reference-to-video mode, addressed in the prompt as "Image 1", "Image 2"… The first two are free; each additional image adds 50 credits. Each item is a public image URL, a data URI, raw base64, or an uploaded-file URL from POST /v1/uploads. Can't be combined with image/end_image.
5Optional reference video clips (up to 3; each 2-15s, 15s combined; MP4/MOV, ≤50MB each) for motion/identity guidance, addressed as "Video 1"… Each item is a public video URL or an uploaded-file URL from POST /v1/uploads (passed by URL, not inlined). Billed at 170 credits per second of INPUT on top of the output — estimate via POST /v1/cost. Can't be combined with image/end_image.
3Output resolution. Pricing varies by resolution — see resolution_pricing in GET /v1/models. 2k is only available when extending a video.
480p, 768p, 1080p, 2k Seed for reproducible generation. Omit for random.
Optional video to EXTEND (1.6-60s, ≤50MB, aspect ratio between 2:5 and 5:2). The model continues it for length_seconds of new footage guided by prompt, and the output is the source followed by the continuation. Provide a public video URL or an uploaded-file URL from POST /v1/uploads. Can't be combined with any other media input. The source is billed at 170 credits per second (first 15 seconds) — estimate via POST /v1/cost.