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-fast:f67f0ec7
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-fast 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-fast:f67f0ec7ef9fe91b74e8a68d34efaa9145bec28675cb190cbff8a70f0490256e",
{
input: {
seed: 10,
prompt: "a happy spherical purple prune emoji and a sign that says \"hidream is Fast!\"",
model_type: "fast",
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-fast using Replicateβs API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"prunaai/hidream-l1-fast:f67f0ec7ef9fe91b74e8a68d34efaa9145bec28675cb190cbff8a70f0490256e",
input={
"seed": 10,
"prompt": "a happy spherical purple prune emoji and a sign that says \"hidream is Fast!\"",
"model_type": "fast",
"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-fast 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-fast:f67f0ec7ef9fe91b74e8a68d34efaa9145bec28675cb190cbff8a70f0490256e",
"input": {
"seed": 10,
"prompt": "a happy spherical purple prune emoji and a sign that says \\"hidream is Fast!\\"",
"model_type": "fast",
"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.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2025-04-16T16:01:39.130710Z",
"created_at": "2025-04-16T16:01:36.629000Z",
"data_removed": false,
"error": null,
"id": "h0yzrzmsenrm80cp7xavacv1s4",
"input": {
"seed": 10,
"prompt": "a happy spherical purple prune emoji and a sign that says \"hidream is Fast!\"",
"model_type": "fast",
"resolution": "1024 Γ 1024 (Square)",
"speed_mode": "Juiced π₯ (more speed)",
"output_format": "webp",
"output_quality": 80
},
"logs": "Running inference...\n 0%| | 0/16 [00:00<?, ?it/s]\n 94%|ββββββββββ| 15/16 [00:02<00:00, 7.32it/s]\n100%|ββββββββββ| 16/16 [00:02<00:00, 7.02it/s]",
"metrics": {
"predict_time": 2.49454451,
"total_time": 2.50171
},
"output": "https://replicate.delivery/xezq/32NzCI5fkEVWaasVNImpmGyH8jKGpfB9JJQ3GbgW5t9jZYjUA/output_10_0.webp",
"started_at": "2025-04-16T16:01:36.636165Z",
"status": "succeeded",
"urls": {
"stream": "https://stream.replicate.com/v1/files/bcwr-xc3zhanzllfzyfxwiipso4f3tbvt76x3enu6qi437izq2qtxa7bq",
"get": "https://api.replicate.com/v1/predictions/h0yzrzmsenrm80cp7xavacv1s4",
"cancel": "https://api.replicate.com/v1/predictions/h0yzrzmsenrm80cp7xavacv1s4/cancel"
},
"version": "f67f0ec7ef9fe91b74e8a68d34efaa9145bec28675cb190cbff8a70f0490256e"
}
Running inference...
0%| | 0/16 [00:00<?, ?it/s]
94%|ββββββββββ| 15/16 [00:02<00:00, 7.32it/s]
100%|ββββββββββ| 16/16 [00:02<00:00, 7.02it/s]