curl --request POST \
--url https://api.goenhance.ai/api/v1/videos/generations \
--header 'Content-Type: application/json' \
--data '
{
"model": "minimax-h3-style",
"prompt": "The woman from <Picture 2>, keeping her face and hairstyle, walks slowly along a seaside path as waves crash behind her; the camera tracks alongside her, then slowly pushes in to a close-up. Woodblock print, bold outlines.",
"ref_imgs": [
"https://example.com/style.jpg",
"https://example.com/portrait.jpg"
],
"resolution": "720p",
"duration": 5,
"ratio": "16:9"
}
'import requests
url = "https://api.goenhance.ai/api/v1/videos/generations"
payload = {
"model": "minimax-h3-style",
"prompt": "The woman from <Picture 2>, keeping her face and hairstyle, walks slowly along a seaside path as waves crash behind her; the camera tracks alongside her, then slowly pushes in to a close-up. Woodblock print, bold outlines.",
"ref_imgs": ["https://example.com/style.jpg", "https://example.com/portrait.jpg"],
"resolution": "720p",
"duration": 5,
"ratio": "16:9"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'minimax-h3-style',
prompt: 'The woman from <Picture 2>, keeping her face and hairstyle, walks slowly along a seaside path as waves crash behind her; the camera tracks alongside her, then slowly pushes in to a close-up. Woodblock print, bold outlines.',
ref_imgs: ['https://example.com/style.jpg', 'https://example.com/portrait.jpg'],
resolution: '720p',
duration: 5,
ratio: '16:9'
})
};
fetch('https://api.goenhance.ai/api/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.goenhance.ai/api/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-style',
'prompt' => 'The woman from <Picture 2>, keeping her face and hairstyle, walks slowly along a seaside path as waves crash behind her; the camera tracks alongside her, then slowly pushes in to a close-up. Woodblock print, bold outlines.',
'ref_imgs' => [
'https://example.com/style.jpg',
'https://example.com/portrait.jpg'
],
'resolution' => '720p',
'duration' => 5,
'ratio' => '16:9'
]),
CURLOPT_HTTPHEADER => [
"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.goenhance.ai/api/v1/videos/generations"
payload := strings.NewReader("{\n \"model\": \"minimax-h3-style\",\n \"prompt\": \"The woman from <Picture 2>, keeping her face and hairstyle, walks slowly along a seaside path as waves crash behind her; the camera tracks alongside her, then slowly pushes in to a close-up. Woodblock print, bold outlines.\",\n \"ref_imgs\": [\n \"https://example.com/style.jpg\",\n \"https://example.com/portrait.jpg\"\n ],\n \"resolution\": \"720p\",\n \"duration\": 5,\n \"ratio\": \"16:9\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.goenhance.ai/api/v1/videos/generations")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"minimax-h3-style\",\n \"prompt\": \"The woman from <Picture 2>, keeping her face and hairstyle, walks slowly along a seaside path as waves crash behind her; the camera tracks alongside her, then slowly pushes in to a close-up. Woodblock print, bold outlines.\",\n \"ref_imgs\": [\n \"https://example.com/style.jpg\",\n \"https://example.com/portrait.jpg\"\n ],\n \"resolution\": \"720p\",\n \"duration\": 5,\n \"ratio\": \"16:9\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goenhance.ai/api/v1/videos/generations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"minimax-h3-style\",\n \"prompt\": \"The woman from <Picture 2>, keeping her face and hairstyle, walks slowly along a seaside path as waves crash behind her; the camera tracks alongside her, then slowly pushes in to a close-up. Woodblock print, bold outlines.\",\n \"ref_imgs\": [\n \"https://example.com/style.jpg\",\n \"https://example.com/portrait.jpg\"\n ],\n \"resolution\": \"720p\",\n \"duration\": 5,\n \"ratio\": \"16:9\"\n}"
response = http.request(request)
puts response.read_bodyMiniMax-H3 Style Transfer
MiniMax-H3 style transfer: generate a video that takes on the art style of a reference image — for example, turning your photo into a video in the style of a ukiyo-e woodblock print.
ref_imgs[0](<Picture 1>) — the style reference image, required. The model transfers its art style (line work, brushwork, palette, texture); it does not copy the objects or characters shown in it.ref_imgs[1]…ref_imgs[8](<Picture 2>…<Picture 9>) — optional people or subjects to appear in the video, such as a portrait of yourself.ref_audios— 0–3 audio clips, optional. Numbered<Audio 1>…<Audio 3>.
Reference videos are not supported: a request with ref_videos is rejected. First/last frames are not supported either.
Writing the prompt — describe only the content: who is in the shot, where, what they do and how the camera moves. You do not need to name the style; the style comes from <Picture 1>. Adding a few style words (e.g. “woodblock print, bold outlines”) can still help.
Tips
- Line-based styles — line art, prints, woodcut, ukiyo-e — transfer most reliably. Oil-painting brushwork also comes through well; watercolor styles are weaker.
- When you pass a portrait, name the person explicitly to keep their likeness, e.g. “the woman from
<Picture 2>, keeping her face and hairstyle”. - Use a style image whose look you want, not whose content you want: objects in it will not appear in the video unless the prompt asks for them.
Pricing — billed per second, by resolution:
| Resolution | Tokens / sec | USD / sec |
|---|---|---|
| 480p | 1.5 | $0.03 |
| 540p | 2 | $0.04 |
| 720p | 3 | $0.06 |
| 2K | 4.5 | $0.09 |
All resolutions support 5–15 seconds. 2K renders at 720p first and is then upscaled, so it takes longer than 720p.
Example: a 5-second video at 720p costs 15 tokens (= $0.30).
Returns an img_uuid; poll GET /api/v1/jobs/detail (or use custom_callback_url) to get the generated video.
curl --request POST \
--url https://api.goenhance.ai/api/v1/videos/generations \
--header 'Content-Type: application/json' \
--data '
{
"model": "minimax-h3-style",
"prompt": "The woman from <Picture 2>, keeping her face and hairstyle, walks slowly along a seaside path as waves crash behind her; the camera tracks alongside her, then slowly pushes in to a close-up. Woodblock print, bold outlines.",
"ref_imgs": [
"https://example.com/style.jpg",
"https://example.com/portrait.jpg"
],
"resolution": "720p",
"duration": 5,
"ratio": "16:9"
}
'import requests
url = "https://api.goenhance.ai/api/v1/videos/generations"
payload = {
"model": "minimax-h3-style",
"prompt": "The woman from <Picture 2>, keeping her face and hairstyle, walks slowly along a seaside path as waves crash behind her; the camera tracks alongside her, then slowly pushes in to a close-up. Woodblock print, bold outlines.",
"ref_imgs": ["https://example.com/style.jpg", "https://example.com/portrait.jpg"],
"resolution": "720p",
"duration": 5,
"ratio": "16:9"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'minimax-h3-style',
prompt: 'The woman from <Picture 2>, keeping her face and hairstyle, walks slowly along a seaside path as waves crash behind her; the camera tracks alongside her, then slowly pushes in to a close-up. Woodblock print, bold outlines.',
ref_imgs: ['https://example.com/style.jpg', 'https://example.com/portrait.jpg'],
resolution: '720p',
duration: 5,
ratio: '16:9'
})
};
fetch('https://api.goenhance.ai/api/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.goenhance.ai/api/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-style',
'prompt' => 'The woman from <Picture 2>, keeping her face and hairstyle, walks slowly along a seaside path as waves crash behind her; the camera tracks alongside her, then slowly pushes in to a close-up. Woodblock print, bold outlines.',
'ref_imgs' => [
'https://example.com/style.jpg',
'https://example.com/portrait.jpg'
],
'resolution' => '720p',
'duration' => 5,
'ratio' => '16:9'
]),
CURLOPT_HTTPHEADER => [
"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.goenhance.ai/api/v1/videos/generations"
payload := strings.NewReader("{\n \"model\": \"minimax-h3-style\",\n \"prompt\": \"The woman from <Picture 2>, keeping her face and hairstyle, walks slowly along a seaside path as waves crash behind her; the camera tracks alongside her, then slowly pushes in to a close-up. Woodblock print, bold outlines.\",\n \"ref_imgs\": [\n \"https://example.com/style.jpg\",\n \"https://example.com/portrait.jpg\"\n ],\n \"resolution\": \"720p\",\n \"duration\": 5,\n \"ratio\": \"16:9\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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.goenhance.ai/api/v1/videos/generations")
.header("Content-Type", "application/json")
.body("{\n \"model\": \"minimax-h3-style\",\n \"prompt\": \"The woman from <Picture 2>, keeping her face and hairstyle, walks slowly along a seaside path as waves crash behind her; the camera tracks alongside her, then slowly pushes in to a close-up. Woodblock print, bold outlines.\",\n \"ref_imgs\": [\n \"https://example.com/style.jpg\",\n \"https://example.com/portrait.jpg\"\n ],\n \"resolution\": \"720p\",\n \"duration\": 5,\n \"ratio\": \"16:9\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goenhance.ai/api/v1/videos/generations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"model\": \"minimax-h3-style\",\n \"prompt\": \"The woman from <Picture 2>, keeping her face and hairstyle, walks slowly along a seaside path as waves crash behind her; the camera tracks alongside her, then slowly pushes in to a close-up. Woodblock print, bold outlines.\",\n \"ref_imgs\": [\n \"https://example.com/style.jpg\",\n \"https://example.com/portrait.jpg\"\n ],\n \"resolution\": \"720p\",\n \"duration\": 5,\n \"ratio\": \"16:9\"\n}"
response = http.request(request)
puts response.read_bodyBody
Text prompt describing the content of the video — who, where, what happens and how the camera moves. Required. Max 7000 characters. No style keywords are required; the style comes from <Picture 1>. Refer to people or subjects as <Picture 2> … <Picture 9> and to audio as <Audio 1> … <Audio 3>.
7000Reference images, 1–9 URLs. Required. JPG/PNG/WEBP, ≤10MB each, shortest side ≥300px. The first image (<Picture 1>) is always the style reference; images from the second on (<Picture 2> …) are optional people or subjects to appear in the video. Array order defines the <Picture N> numbering used in the prompt.
1 - 9 elementsOptional. A publicly accessible HTTPS URL. When the task status changes (processing / success / failed), GoEnhance sends a POST request to this URL. The request body is identical to the response of GET /api/v1/jobs/detail. If your server does not respond with HTTP 200, the notification is retried up to 3 times, with a 3-second timeout per attempt.
"https://your-server.com/goenhance/callback"
