typetext
{
"duration": 5,
"first_frame_image": "https://replicate.delivery/xezq/5EOc2C7YrgbeVC7LQHai72i4dmRr9XE8I6i20as9AbGHBedXA/tmpdztsrbes.png",
"prompt": "Slow, steady dolly push-in toward the bed. Soft daylight shifts gently across the wall as a cloud passes. The rubber plant's leaves sway slightly in a light breeze from an open window, and the green throw ripples a little at its edge. Calm, quiet, no people.",
"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/5EOc2C7YrgbeVC7LQHai72i4dmRr9XE8I6i20as9AbGHBedXA/tmpdztsrbes.png",
prompt: "Slow, steady dolly push-in toward the bed. Soft daylight shifts gently across the wall as a cloud passes. The rubber plant's leaves sway slightly in a light breeze from an open window, and the green throw ripples a little at its edge. Calm, quiet, no people.",
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/5EOc2C7YrgbeVC7LQHai72i4dmRr9XE8I6i20as9AbGHBedXA/tmpdztsrbes.png",
"prompt": "Slow, steady dolly push-in toward the bed. Soft daylight shifts gently across the wall as a cloud passes. The rubber plant's leaves sway slightly in a light breeze from an open window, and the green throw ripples a little at its edge. Calm, quiet, no people.",
"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/5EOc2C7YrgbeVC7LQHai72i4dmRr9XE8I6i20as9AbGHBedXA/tmpdztsrbes.png",
"prompt": "Slow, steady dolly push-in toward the bed. Soft daylight shifts gently across the wall as a cloud passes. The rubber plant\'s leaves sway slightly in a light breeze from an open window, and the green throw ripples a little at its edge. Calm, quiet, no people.",
"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": "6e993mmq1xrmt0d1m94vg5y2hc",
"model": "minimax/h3",
"version": "hidden",
"input": {
"duration": 5,
"first_frame_image": "https://replicate.delivery/xezq/5EOc2C7YrgbeVC7LQHai72i4dmRr9XE8I6i20as9AbGHBedXA/tmpdztsrbes.png",
"prompt": "Slow, steady dolly push-in toward the bed. Soft daylight shifts gently across the wall as a cloud passes. The rubber plant's leaves sway slightly in a light breeze from an open window, and the green throw ripples a little at its edge. Calm, quiet, no people.",
"resolution": "2K"
},
"logs": "Generating video with MiniMax H3...\nDownloading 2612588 bytes\nDownloaded 2.49MB in 0.62sec",
"output": "https://replicate.delivery/xezq/JCQuR33iIfXQBS7N9dQuNozPuJghIDBreHk5QBUf3vQIL47uA/tmpcfsgf3wm.mp4",
"data_removed": false,
"error": null,
"source": "api",
"status": "succeeded",
"created_at": "2026-11-03T16:41:34.223Z",
"started_at": "2026-11-03T16:41:34.241598Z",
"completed_at": "2026-11-03T16:44:21.073241Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/6e993mmq1xrmt0d1m94vg5y2hc/cancel",
"get": "https://api.replicate.com/v1/predictions/6e993mmq1xrmt0d1m94vg5y2hc",
"stream": "https://stream.replicate.com/v1/files/jbxs-5oowupwtygil62f7f3o77fdcy6aygbpwduf7yw55t3sspwbtzlaa",
"web": "https://replicate.com/p/6e993mmq1xrmt0d1m94vg5y2hc"
},
"metrics": {
"model_variant": "h3",
"predict_time": 166.831642467,
"resolution_target": "2K",
"total_time": 166.850241417,
"video_output_count": 1,
"video_output_duration_seconds": 5
}
}