typetext
{
"duration": 5,
"first_frame_image": "https://replicate.delivery/xezq/LKJVZSHgZt7SA9ZfyiJUbGcKl5Q2ByUyTxFDNMtRfCRIC8dXA/tmpswhc37rk.png",
"prompt": "Static high-angle camera. The cyclist actively pedals the red bicycle across the crosswalk: his legs push the pedals around in clear, continuous circular strokes, knees rising and falling, the cranks and wheels visibly turning as the bike rolls forward through the shaft of golden sunset light. His long shadow on the stripes shows the legs pumping too. The pedestrian in yellow keeps walking up and out of the light. Strong contrast, cinematic street photography look.",
"resolution": "2K"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_ajC**********************************
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/LKJVZSHgZt7SA9ZfyiJUbGcKl5Q2ByUyTxFDNMtRfCRIC8dXA/tmpswhc37rk.png",
prompt: "Static high-angle camera. The cyclist actively pedals the red bicycle across the crosswalk: his legs push the pedals around in clear, continuous circular strokes, knees rising and falling, the cranks and wheels visibly turning as the bike rolls forward through the shaft of golden sunset light. His long shadow on the stripes shows the legs pumping too. The pedestrian in yellow keeps walking up and out of the light. Strong contrast, cinematic street photography look.",
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_ajC**********************************
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/LKJVZSHgZt7SA9ZfyiJUbGcKl5Q2ByUyTxFDNMtRfCRIC8dXA/tmpswhc37rk.png",
"prompt": "Static high-angle camera. The cyclist actively pedals the red bicycle across the crosswalk: his legs push the pedals around in clear, continuous circular strokes, knees rising and falling, the cranks and wheels visibly turning as the bike rolls forward through the shaft of golden sunset light. His long shadow on the stripes shows the legs pumping too. The pedestrian in yellow keeps walking up and out of the light. Strong contrast, cinematic street photography look.",
"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_ajC**********************************
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/LKJVZSHgZt7SA9ZfyiJUbGcKl5Q2ByUyTxFDNMtRfCRIC8dXA/tmpswhc37rk.png",
"prompt": "Static high-angle camera. The cyclist actively pedals the red bicycle across the crosswalk: his legs push the pedals around in clear, continuous circular strokes, knees rising and falling, the cranks and wheels visibly turning as the bike rolls forward through the shaft of golden sunset light. His long shadow on the stripes shows the legs pumping too. The pedestrian in yellow keeps walking up and out of the light. Strong contrast, cinematic street photography look.",
"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": "jyh2wqxhj9rmy0d1m94tegra2m",
"model": "minimax/h3",
"version": "hidden",
"input": {
"duration": 5,
"first_frame_image": "https://replicate.delivery/xezq/LKJVZSHgZt7SA9ZfyiJUbGcKl5Q2ByUyTxFDNMtRfCRIC8dXA/tmpswhc37rk.png",
"prompt": "Static high-angle camera. The cyclist actively pedals the red bicycle across the crosswalk: his legs push the pedals around in clear, continuous circular strokes, knees rising and falling, the cranks and wheels visibly turning as the bike rolls forward through the shaft of golden sunset light. His long shadow on the stripes shows the legs pumping too. The pedestrian in yellow keeps walking up and out of the light. Strong contrast, cinematic street photography look.",
"resolution": "2K"
},
"logs": "Generating video with MiniMax H3...\nDownloading 1486956 bytes\nDownloaded 1.42MB in 0.46sec",
"output": "https://replicate.delivery/xezq/8HbGwlRVM0LxB9yCsvMw1jvQSeJ43esueDJ75hFHtvdYL47uA/tmpwux0z302.mp4",
"data_removed": false,
"error": null,
"source": "api",
"status": "succeeded",
"created_at": "2026-11-03T16:41:41.01Z",
"started_at": "2026-11-03T16:41:41.025664Z",
"completed_at": "2026-11-03T16:44:29.031481Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/jyh2wqxhj9rmy0d1m94tegra2m/cancel",
"get": "https://api.replicate.com/v1/predictions/jyh2wqxhj9rmy0d1m94tegra2m",
"stream": "https://stream.replicate.com/v1/files/jbxs-cnn3shuqrdpqfeyblzgwwpqadydarrfhpt6ukn37rbtux7we72aa",
"web": "https://replicate.com/p/jyh2wqxhj9rmy0d1m94tegra2m"
},
"metrics": {
"model_variant": "h3",
"predict_time": 168.005816419,
"resolution_target": "2K",
"total_time": 168.021481219,
"video_output_count": 1,
"video_output_duration_seconds": 5
}
}