typetext
{
"duration": 6,
"prompt": "5. Institutional Minimalism\nLocked centered composition: A solitary shadow stands on a minimal institutional staircase—hospital whites, soft greens, gentle grays in geometric perfection. A fast horizontal wave erupts left to right, architecture rippling in smooth perpendicular sine motion as if space itself became elastic. The figure rides naturally with the wave's physics but remains perfectly still in form—a statue on liquid stairs. Wave completes in under 2 seconds, leaving pristine silence. Hyper-realistic with impossible fluidity—surreal architectural glitch that feels like reality malfunctioning.",
"prompt_optimizer": true,
"resolution": "1080p"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_c3H**********************************
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/hailuo-2.3 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
duration: 6,
prompt: "5. Institutional Minimalism\nLocked centered composition: A solitary shadow stands on a minimal institutional staircase—hospital whites, soft greens, gentle grays in geometric perfection. A fast horizontal wave erupts left to right, architecture rippling in smooth perpendicular sine motion as if space itself became elastic. The figure rides naturally with the wave's physics but remains perfectly still in form—a statue on liquid stairs. Wave completes in under 2 seconds, leaving pristine silence. Hyper-realistic with impossible fluidity—surreal architectural glitch that feels like reality malfunctioning.",
prompt_optimizer: true,
resolution: "1080p"
};
const output = await replicate.run("minimax/hailuo-2.3", { 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_c3H**********************************
This is your API token. Keep it to yourself.
import replicate
Run minimax/hailuo-2.3 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"minimax/hailuo-2.3",
input={
"duration": 6,
"prompt": "5. Institutional Minimalism\nLocked centered composition: A solitary shadow stands on a minimal institutional staircase—hospital whites, soft greens, gentle grays in geometric perfection. A fast horizontal wave erupts left to right, architecture rippling in smooth perpendicular sine motion as if space itself became elastic. The figure rides naturally with the wave's physics but remains perfectly still in form—a statue on liquid stairs. Wave completes in under 2 seconds, leaving pristine silence. Hyper-realistic with impossible fluidity—surreal architectural glitch that feels like reality malfunctioning.",
"prompt_optimizer": True,
"resolution": "1080p"
}
)
# 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_c3H**********************************
This is your API token. Keep it to yourself.
Run minimax/hailuo-2.3 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": 6,
"prompt": "5. Institutional Minimalism\\nLocked centered composition: A solitary shadow stands on a minimal institutional staircase—hospital whites, soft greens, gentle grays in geometric perfection. A fast horizontal wave erupts left to right, architecture rippling in smooth perpendicular sine motion as if space itself became elastic. The figure rides naturally with the wave\'s physics but remains perfectly still in form—a statue on liquid stairs. Wave completes in under 2 seconds, leaving pristine silence. Hyper-realistic with impossible fluidity—surreal architectural glitch that feels like reality malfunctioning.",
"prompt_optimizer": true,
"resolution": "1080p"
}
}' \
https://api.replicate.com/v1/models/minimax/hailuo-2.3/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "hgw1xjtjz1rma0ctfc5tjw95m0",
"model": "minimax/hailuo-2.3",
"version": "hidden",
"input": {
"duration": 6,
"prompt": "5. Institutional Minimalism\nLocked centered composition: A solitary shadow stands on a minimal institutional staircase—hospital whites, soft greens, gentle grays in geometric perfection. A fast horizontal wave erupts left to right, architecture rippling in smooth perpendicular sine motion as if space itself became elastic. The figure rides naturally with the wave's physics but remains perfectly still in form—a statue on liquid stairs. Wave completes in under 2 seconds, leaving pristine silence. Hyper-realistic with impossible fluidity—surreal architectural glitch that feels like reality malfunctioning.",
"prompt_optimizer": true,
"resolution": "1080p"
},
"logs": "Warning: Moderation check failed: Error code: 401 - {'error': {'message': 'The OpenAI account associated with this API key has been deactivated. If you are the developer for this OpenAI app, please check your email for more information. If you are seeing this error while using another app or site, please reach out to them for more help.', 'type': 'invalid_request_error', 'param': None, 'code': 'account_deactivated'}}\nGenerating video...\nStill generating...\nStill generating...\nStill generating...\nStill generating...\nStill generating...\nStill generating...\nGenerated video in 216.8sec\nRetrieving file...\nDownloading 581973 bytes\nDownloaded 0.56MB in 1.82sec",
"output": "https://replicate.delivery/xezq/UYUzuahSXj4aO1OWn5wiQxutte9dn36hLPXRP9pVtae9UvoVA/tmpgnvd26ak.mp4",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-11-13T02:28:51.064Z",
"started_at": "2025-11-13T02:28:51.073379Z",
"completed_at": "2025-11-13T02:32:29.790273Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/hgw1xjtjz1rma0ctfc5tjw95m0/cancel",
"get": "https://api.replicate.com/v1/predictions/hgw1xjtjz1rma0ctfc5tjw95m0",
"stream": "https://stream.replicate.com/v1/files/bcwr-f4ir6d4e5dljs74vtw6l7b3ejdu4gcr5s74vzqchjef65xhkdz7a",
"web": "https://replicate.com/p/hgw1xjtjz1rma0ctfc5tjw95m0"
},
"metrics": {
"predict_time": 218.716894865,
"total_time": 218.726273866
}
}