Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
prunaai /hidream-l1-full:70e52dbc
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run prunaai/hidream-l1-full using Replicateβs API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"prunaai/hidream-l1-full:70e52dbcff0149b38a2d1006427c5d35471e90010b1355220e40574fbef306fb",
{
input: {
seed: 1,
prompt: "a purple cheetah holding a sign that says \"pip install pruna\"",
model_type: "full",
resolution: "1024 Γ 1024 (Square)",
speed_mode: "Juiced π₯ (more speed)",
output_format: "webp",
output_quality: 80
}
}
);
// 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=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run prunaai/hidream-l1-full using Replicateβs API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"prunaai/hidream-l1-full:70e52dbcff0149b38a2d1006427c5d35471e90010b1355220e40574fbef306fb",
input={
"seed": 1,
"prompt": "a purple cheetah holding a sign that says \"pip install pruna\"",
"model_type": "full",
"resolution": "1024 Γ 1024 (Square)",
"speed_mode": "Juiced π₯ (more speed)",
"output_format": "webp",
"output_quality": 80
}
)
print(output)
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run prunaai/hidream-l1-full 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 $'{
"version": "prunaai/hidream-l1-full:70e52dbcff0149b38a2d1006427c5d35471e90010b1355220e40574fbef306fb",
"input": {
"seed": 1,
"prompt": "a purple cheetah holding a sign that says \\"pip install pruna\\"",
"model_type": "full",
"resolution": "1024 Γ 1024 (Square)",
"speed_mode": "Juiced π₯ (more speed)",
"output_format": "webp",
"output_quality": 80
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicateβs HTTP API reference docs.
brew install cog
If you donβt have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/prunaai/hidream-l1-full@sha256:70e52dbcff0149b38a2d1006427c5d35471e90010b1355220e40574fbef306fb \
-i 'seed=1' \
-i $'prompt="a purple cheetah holding a sign that says \\"pip install pruna\\""' \
-i 'model_type="full"' \
-i 'resolution="1024 Γ 1024 (Square)"' \
-i 'speed_mode="Juiced π₯ (more speed)"' \
-i 'output_format="webp"' \
-i 'output_quality=80'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 --gpus=all r8.im/prunaai/hidream-l1-full@sha256:70e52dbcff0149b38a2d1006427c5d35471e90010b1355220e40574fbef306fb
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "seed": 1, "prompt": "a purple cheetah holding a sign that says \\"pip install pruna\\"", "model_type": "full", "resolution": "1024 Γ 1024 (Square)", "speed_mode": "Juiced π₯ (more speed)", "output_format": "webp", "output_quality": 80 } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Add a payment method to run this model.
Each run costs approximately $0.027. Alternatively, try out our featured models for free.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2025-04-10T13:35:07.977450Z",
"created_at": "2025-04-10T13:34:43.649000Z",
"data_removed": false,
"error": null,
"id": "3mb3z8qqr5rj00cp3zmbansmmm",
"input": {
"seed": 1,
"prompt": "a purple cheetah holding a sign that says \"pip install pruna\"",
"model_type": "full",
"resolution": "1024 Γ 1024 (Square)",
"speed_mode": "Juiced π₯ (more speed)",
"output_format": "webp",
"output_quality": 80
},
"logs": "Running inference...\n 0%| | 0/50 [00:00<?, ?it/s]\n 30%|βββ | 15/50 [00:12<00:28, 1.21it/s]\n 60%|ββββββ | 30/50 [00:17<00:10, 1.89it/s]\n 90%|βββββββββ | 45/50 [00:21<00:02, 2.48it/s]\n100%|ββββββββββ| 50/50 [00:23<00:00, 2.09it/s]",
"metrics": {
"predict_time": 24.320429742,
"total_time": 24.32845
},
"output": "https://replicate.delivery/yhqm/bqTq8FM7nQrtGBYbkV2QeKsTgh1PqBv3L3emPmPyjgqLsXhUA/output_1_0.webp",
"started_at": "2025-04-10T13:34:43.657020Z",
"status": "succeeded",
"urls": {
"stream": "https://stream.replicate.com/v1/files/yswh-is7htrkizbmhxohgno4ab34q3x53w2xw4vjnoitfsk4qjcbamplq",
"get": "https://api.replicate.com/v1/predictions/3mb3z8qqr5rj00cp3zmbansmmm",
"cancel": "https://api.replicate.com/v1/predictions/3mb3z8qqr5rj00cp3zmbansmmm/cancel"
},
"version": "70e52dbcff0149b38a2d1006427c5d35471e90010b1355220e40574fbef306fb"
}
Running inference...
0%| | 0/50 [00:00<?, ?it/s]
30%|βββ | 15/50 [00:12<00:28, 1.21it/s]
60%|ββββββ | 30/50 [00:17<00:10, 1.89it/s]
90%|βββββββββ | 45/50 [00:21<00:02, 2.48it/s]
100%|ββββββββββ| 50/50 [00:23<00:00, 2.09it/s]