typetext
{
"duration": 5,
"first_frame_image": "https://replicate.delivery/xezq/GrKnCxDwCYL1NVYBFmL6A9jbJdUpGomO1kifOGnDIaDBBedXA/tmp6mrgwhfa.png",
"prompt": "The tiger slowly prowls forward through the undergrowth toward the camera, shoulders rolling with each step, then opens its eyes and looks straight into the lens. Ferns and grass blades brush against its fur and spring back. Keep the painterly illustrated style with visible brush strokes. Camera slowly pulls back to keep pace.",
"resolution": "2K"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_cZi**********************************
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 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
duration: 5,
first_frame_image: "https://replicate.delivery/xezq/GrKnCxDwCYL1NVYBFmL6A9jbJdUpGomO1kifOGnDIaDBBedXA/tmp6mrgwhfa.png",
prompt: "The tiger slowly prowls forward through the undergrowth toward the camera, shoulders rolling with each step, then opens its eyes and looks straight into the lens. Ferns and grass blades brush against its fur and spring back. Keep the painterly illustrated style with visible brush strokes. Camera slowly pulls back to keep pace.",
resolution: "2K"
};
const output = await replicate.run("minimax/h3", { 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_cZi**********************************
This is your API token. Keep it to yourself.
import replicate
Run minimax/h3 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"minimax/h3",
input={
"duration": 5,
"first_frame_image": "https://replicate.delivery/xezq/GrKnCxDwCYL1NVYBFmL6A9jbJdUpGomO1kifOGnDIaDBBedXA/tmp6mrgwhfa.png",
"prompt": "The tiger slowly prowls forward through the undergrowth toward the camera, shoulders rolling with each step, then opens its eyes and looks straight into the lens. Ferns and grass blades brush against its fur and spring back. Keep the painterly illustrated style with visible brush strokes. Camera slowly pulls back to keep pace.",
"resolution": "2K"
}
)
# 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_cZi**********************************
This is your API token. Keep it to yourself.
Run minimax/h3 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,
"first_frame_image": "https://replicate.delivery/xezq/GrKnCxDwCYL1NVYBFmL6A9jbJdUpGomO1kifOGnDIaDBBedXA/tmp6mrgwhfa.png",
"prompt": "The tiger slowly prowls forward through the undergrowth toward the camera, shoulders rolling with each step, then opens its eyes and looks straight into the lens. Ferns and grass blades brush against its fur and spring back. Keep the painterly illustrated style with visible brush strokes. Camera slowly pulls back to keep pace.",
"resolution": "2K"
}
}' \
https://api.replicate.com/v1/models/minimax/h3/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "revxjg4zc1rmy0d1m94vh2b1a4",
"model": "minimax/h3",
"version": "hidden",
"input": {
"duration": 5,
"first_frame_image": "https://replicate.delivery/xezq/GrKnCxDwCYL1NVYBFmL6A9jbJdUpGomO1kifOGnDIaDBBedXA/tmp6mrgwhfa.png",
"prompt": "The tiger slowly prowls forward through the undergrowth toward the camera, shoulders rolling with each step, then opens its eyes and looks straight into the lens. Ferns and grass blades brush against its fur and spring back. Keep the painterly illustrated style with visible brush strokes. Camera slowly pulls back to keep pace.",
"resolution": "2K"
},
"logs": "Generating video with MiniMax H3...\nDownloading 5138460 bytes\nDownloaded 4.90MB in 0.47sec",
"output": "https://replicate.delivery/xezq/eiT4S0hRbB2dV6MfU7f7P7DYzLUisUIS6QIBNyGhdn25K47uA/tmp8hv36pnx.mp4",
"data_removed": false,
"error": null,
"source": "api",
"status": "succeeded",
"created_at": "2026-11-03T16:41:36.352Z",
"started_at": "2026-11-03T16:41:36.372468Z",
"completed_at": "2026-11-03T16:44:13.501009Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/revxjg4zc1rmy0d1m94vh2b1a4/cancel",
"get": "https://api.replicate.com/v1/predictions/revxjg4zc1rmy0d1m94vh2b1a4",
"stream": "https://stream.replicate.com/v1/files/jbxs-pkuelmldoj5xmpjhyxvfid33ae7rxkbzn7htapo2j5bfjjbzxuza",
"web": "https://replicate.com/p/revxjg4zc1rmy0d1m94vh2b1a4"
},
"metrics": {
"model_variant": "h3",
"predict_time": 157.128540911,
"resolution_target": "2K",
"total_time": 157.149009642,
"video_output_count": 1,
"video_output_duration_seconds": 5
}
}