typetext
{
"context_hint": "Epic chase music",
"duration": 6,
"enable_sound": true,
"enable_upscaling": true,
"prompt": "The camera rockets through turbulent underwater currents alongside a frenzied army of octopuses desperately fleeing across a violently erupting underwater volcano. Massive lava flows explode from countless volcanic vents, creating apocalyptic shockwaves and deadly streams of molten rock. Octopuses launch themselves through boiling water geysers, their tentacles frantically propelling them past cascading lava bombs and collapsing underwater cliffs. They dodge massive chunks of superheated volcanic rock, weave through clouds of toxic gas bubbles, and surf chaotic pressure waves from continuous eruptions. The seafloor splits apart in massive chasms spewing liquid fire as the octopuses perform impossible acrobatic escapes - some blast themselves out of the water entirely, others squeeze through impossibly tight crevices between exploding rock formations. The camera spins wildly as octopuses use their color-changing abilities to camouflage against the hellish orange and red volcanic landscape, finally rocket-propelling themselves to safety on distant underwater peaks as their former reef home is completely consumed by an earth-shattering volcanic explosion that sends shockwaves across the entire ocean floor.",
"prompt_optimizer": true,
"resolution": "1080p",
"target_fps": 60,
"target_resolution": "4k"
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_DaM**********************************
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 zsxkib/hailuo-02-with-sound using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = {
context_hint: "Epic chase music",
duration: 6,
enable_sound: true,
enable_upscaling: true,
prompt: "The camera rockets through turbulent underwater currents alongside a frenzied army of octopuses desperately fleeing across a violently erupting underwater volcano. Massive lava flows explode from countless volcanic vents, creating apocalyptic shockwaves and deadly streams of molten rock. Octopuses launch themselves through boiling water geysers, their tentacles frantically propelling them past cascading lava bombs and collapsing underwater cliffs. They dodge massive chunks of superheated volcanic rock, weave through clouds of toxic gas bubbles, and surf chaotic pressure waves from continuous eruptions. The seafloor splits apart in massive chasms spewing liquid fire as the octopuses perform impossible acrobatic escapes - some blast themselves out of the water entirely, others squeeze through impossibly tight crevices between exploding rock formations. The camera spins wildly as octopuses use their color-changing abilities to camouflage against the hellish orange and red volcanic landscape, finally rocket-propelling themselves to safety on distant underwater peaks as their former reef home is completely consumed by an earth-shattering volcanic explosion that sends shockwaves across the entire ocean floor.",
prompt_optimizer: true,
resolution: "1080p",
target_fps: 60,
target_resolution: "4k"
};
const output = await replicate.run("zsxkib/hailuo-02-with-sound", { 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_DaM**********************************
This is your API token. Keep it to yourself.
import replicate
Run zsxkib/hailuo-02-with-sound using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"zsxkib/hailuo-02-with-sound",
input={
"context_hint": "Epic chase music",
"duration": 6,
"enable_sound": True,
"enable_upscaling": True,
"prompt": "The camera rockets through turbulent underwater currents alongside a frenzied army of octopuses desperately fleeing across a violently erupting underwater volcano. Massive lava flows explode from countless volcanic vents, creating apocalyptic shockwaves and deadly streams of molten rock. Octopuses launch themselves through boiling water geysers, their tentacles frantically propelling them past cascading lava bombs and collapsing underwater cliffs. They dodge massive chunks of superheated volcanic rock, weave through clouds of toxic gas bubbles, and surf chaotic pressure waves from continuous eruptions. The seafloor splits apart in massive chasms spewing liquid fire as the octopuses perform impossible acrobatic escapes - some blast themselves out of the water entirely, others squeeze through impossibly tight crevices between exploding rock formations. The camera spins wildly as octopuses use their color-changing abilities to camouflage against the hellish orange and red volcanic landscape, finally rocket-propelling themselves to safety on distant underwater peaks as their former reef home is completely consumed by an earth-shattering volcanic explosion that sends shockwaves across the entire ocean floor.",
"prompt_optimizer": True,
"resolution": "1080p",
"target_fps": 60,
"target_resolution": "4k"
}
)
# 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_DaM**********************************
This is your API token. Keep it to yourself.
Run zsxkib/hailuo-02-with-sound 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": {
"context_hint": "Epic chase music",
"duration": 6,
"enable_sound": true,
"enable_upscaling": true,
"prompt": "The camera rockets through turbulent underwater currents alongside a frenzied army of octopuses desperately fleeing across a violently erupting underwater volcano. Massive lava flows explode from countless volcanic vents, creating apocalyptic shockwaves and deadly streams of molten rock. Octopuses launch themselves through boiling water geysers, their tentacles frantically propelling them past cascading lava bombs and collapsing underwater cliffs. They dodge massive chunks of superheated volcanic rock, weave through clouds of toxic gas bubbles, and surf chaotic pressure waves from continuous eruptions. The seafloor splits apart in massive chasms spewing liquid fire as the octopuses perform impossible acrobatic escapes - some blast themselves out of the water entirely, others squeeze through impossibly tight crevices between exploding rock formations. The camera spins wildly as octopuses use their color-changing abilities to camouflage against the hellish orange and red volcanic landscape, finally rocket-propelling themselves to safety on distant underwater peaks as their former reef home is completely consumed by an earth-shattering volcanic explosion that sends shockwaves across the entire ocean floor.",
"prompt_optimizer": true,
"resolution": "1080p",
"target_fps": 60,
"target_resolution": "4k"
}
}' \
https://api.replicate.com/v1/models/zsxkib/hailuo-02-with-sound/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "meax8s54esrma0cr3nmstr4r94",
"model": "zsxkib/hailuo-02-with-sound",
"version": "hidden",
"input": {
"context_hint": "Epic chase music",
"duration": 6,
"enable_sound": true,
"enable_upscaling": true,
"prompt": "The camera rockets through turbulent underwater currents alongside a frenzied army of octopuses desperately fleeing across a violently erupting underwater volcano. Massive lava flows explode from countless volcanic vents, creating apocalyptic shockwaves and deadly streams of molten rock. Octopuses launch themselves through boiling water geysers, their tentacles frantically propelling them past cascading lava bombs and collapsing underwater cliffs. They dodge massive chunks of superheated volcanic rock, weave through clouds of toxic gas bubbles, and surf chaotic pressure waves from continuous eruptions. The seafloor splits apart in massive chasms spewing liquid fire as the octopuses perform impossible acrobatic escapes - some blast themselves out of the water entirely, others squeeze through impossibly tight crevices between exploding rock formations. The camera spins wildly as octopuses use their color-changing abilities to camouflage against the hellish orange and red volcanic landscape, finally rocket-propelling themselves to safety on distant underwater peaks as their former reef home is completely consumed by an earth-shattering volcanic explosion that sends shockwaves across the entire ocean floor.",
"prompt_optimizer": true,
"resolution": "1080p",
"target_fps": 60,
"target_resolution": "4k"
},
"logs": "",
"output": "https://replicate.delivery/xezq/0esQGkn8TRVVLqNLT9pY9zd6AfOfEk6hS5yqJ95loiXBh9DqA/tmp7hbwh_bw.mp4",
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2025-07-18T12:01:59.414Z",
"started_at": "2025-07-18T12:02:12.029777Z",
"completed_at": "2025-07-18T12:12:17.096094Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/meax8s54esrma0cr3nmstr4r94/cancel",
"children": "https://api.replicate.com/v1/predictions/meax8s54esrma0cr3nmstr4r94/children",
"get": "https://api.replicate.com/v1/predictions/meax8s54esrma0cr3nmstr4r94",
"root": "https://api.replicate.com/v1/predictions/meax8s54esrma0cr3nmstr4r94",
"stream": "https://stream.replicate.com/v1/files/bcwr-rjyy4myrhxmc5yyf3edc32bel5lvsgpcmfd7gewjrdbc6shbbdzq",
"web": "https://replicate.com/p/meax8s54esrma0cr3nmstr4r94"
},
"metrics": {
"predict_time": 605.066316708,
"total_time": 617.682094
}
}