typetext
{
"duration": 5,
"prompt": "A hummingbird hovers beside a bright orange hibiscus flower in a sunlit garden, wings a soft blur, shallow depth of field, slow push in",
"ratio": "16:9"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_SgB**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run minimax/h3-highspeed using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
duration: 5,
prompt: "A hummingbird hovers beside a bright orange hibiscus flower in a sunlit garden, wings a soft blur, shallow depth of field, slow push in",
ratio: "16:9"
};
const output = await replicate.run("minimax/h3-highspeed", { input });
// To access the file URL:
console.log(output.url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_SgB**********************************
This is your API token. Keep it to yourself.
import replicate
Run minimax/h3-highspeed using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"minimax/h3-highspeed",
input={
"duration": 5,
"prompt": "A hummingbird hovers beside a bright orange hibiscus flower in a sunlit garden, wings a soft blur, shallow depth of field, slow push in",
"ratio": "16:9"
}
)
# To access the file URL:
print(output.url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output.read())
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_SgB**********************************
This is your API token. Keep it to yourself.
Run minimax/h3-highspeed using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
curl -s -X POST \
-H "Authorization: Bearer $REPLICATE_API_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: wait" \
-d $'{
"input": {
"duration": 5,
"prompt": "A hummingbird hovers beside a bright orange hibiscus flower in a sunlit garden, wings a soft blur, shallow depth of field, slow push in",
"ratio": "16:9"
}
}' \
https://api.replicate.com/v1/models/minimax/h3-highspeed/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "599bz3sfaxrmr0d1h53rqcr7vg",
"model": "minimax/h3-highspeed",
"version": "hidden",
"input": {
"duration": 5,
"prompt": "A hummingbird hovers beside a bright orange hibiscus flower in a sunlit garden, wings a soft blur, shallow depth of field, slow push in",
"ratio": "16:9"
},
"logs": "Generating video with MiniMax-H3-Highspeed...\nDownloading 3264975 bytes\nDownloaded 3.11MB in 0.76sec",
"output": "https://replicate.delivery/xezq/aW8cNi9bwxYANVPAM5xfqE7XsBmt0VBisx8nGDluYomnzKuLA/tmpiab7og6b.mp4",
"data_removed": false,
"error": null,
"source": "api",
"status": "succeeded",
"created_at": "2026-10-29T20:08:26.199Z",
"started_at": "2026-10-29T20:08:26.225475Z",
"completed_at": "2026-10-29T20:08:47.703495Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/599bz3sfaxrmr0d1h53rqcr7vg/cancel",
"get": "https://api.replicate.com/v1/predictions/599bz3sfaxrmr0d1h53rqcr7vg",
"stream": "https://stream.replicate.com/v1/files/jbxs-6u4ahmqvoybkjucopzrmsc5rj3uptaiybx5cjbpkpotnhtqhp3ba",
"web": "https://replicate.com/p/599bz3sfaxrmr0d1h53rqcr7vg"
},
"metrics": {
"model_variant": "h3-highspeed",
"predict_time": 21.478019915,
"resolution_target": "768P",
"total_time": 21.504495225,
"video_output_count": 1,
"video_output_duration_seconds": 5
}
}