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.
bytedance /hyper-flux-16step:382cf895
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 bytedance/hyper-flux-16step using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"bytedance/hyper-flux-16step:382cf8959fb0f0d665b26e7e80b8d6dc3faaef1510f14ce017e8c732bb3d1eb7",
{
input: {
prompt: "womens street skateboarding final in Paris Olympics 2024",
num_outputs: 1,
aspect_ratio: "1:1",
output_format: "webp",
guidance_scale: 3.5,
output_quality: 80,
num_inference_steps: 16
}
}
);
// To access the file URL:
console.log(output[0].url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output[0]);
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 bytedance/hyper-flux-16step using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"bytedance/hyper-flux-16step:382cf8959fb0f0d665b26e7e80b8d6dc3faaef1510f14ce017e8c732bb3d1eb7",
input={
"prompt": "womens street skateboarding final in Paris Olympics 2024",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "webp",
"guidance_scale": 3.5,
"output_quality": 80,
"num_inference_steps": 16
}
)
# To access the file URL:
print(output[0].url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output[0].read())
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 bytedance/hyper-flux-16step 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": "bytedance/hyper-flux-16step:382cf8959fb0f0d665b26e7e80b8d6dc3faaef1510f14ce017e8c732bb3d1eb7",
"input": {
"prompt": "womens street skateboarding final in Paris Olympics 2024",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "webp",
"guidance_scale": 3.5,
"output_quality": 80,
"num_inference_steps": 16
}
}' \
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": "2024-10-04T22:40:59.979452Z",
"created_at": "2024-10-04T22:40:55.990000Z",
"data_removed": false,
"error": null,
"id": "fcmzravrpsrm40cjb6rsjbrvrr",
"input": {
"prompt": "womens street skateboarding final in Paris Olympics 2024",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "webp",
"guidance_scale": 3.5,
"output_quality": 80,
"num_inference_steps": 16
},
"logs": "Using seed: 57819\nPrompt: womens street skateboarding final in Paris Olympics 2024\ntxt2img mode\n 0%| | 0/16 [00:00<?, ?it/s]\n 6%|▋ | 1/16 [00:00<00:03, 4.33it/s]\n 12%|█▎ | 2/16 [00:00<00:02, 5.50it/s]\n 19%|█▉ | 3/16 [00:00<00:02, 4.89it/s]\n 25%|██▌ | 4/16 [00:00<00:02, 4.65it/s]\n 31%|███▏ | 5/16 [00:01<00:02, 4.49it/s]\n 38%|███▊ | 6/16 [00:01<00:02, 4.43it/s]\n 44%|████▍ | 7/16 [00:01<00:02, 4.39it/s]\n 50%|█████ | 8/16 [00:01<00:01, 4.36it/s]\n 56%|█████▋ | 9/16 [00:02<00:01, 4.34it/s]\n 62%|██████▎ | 10/16 [00:02<00:01, 4.33it/s]\n 69%|██████▉ | 11/16 [00:02<00:01, 4.32it/s]\n 75%|███████▌ | 12/16 [00:02<00:00, 4.31it/s]\n 81%|████████▏ | 13/16 [00:02<00:00, 4.30it/s]\n 88%|████████▊ | 14/16 [00:03<00:00, 4.30it/s]\n 94%|█████████▍| 15/16 [00:03<00:00, 4.30it/s]\n100%|██████████| 16/16 [00:03<00:00, 4.30it/s]\n100%|██████████| 16/16 [00:03<00:00, 4.40it/s]",
"metrics": {
"predict_time": 3.984317216,
"total_time": 3.989452
},
"output": [
"https://replicate.delivery/yhqm/OB6eQcqOkvQfrkTSW4ogewaSg2OkEEe9cIDsAQecRof8eBxxJA/out-0.webp"
],
"started_at": "2024-10-04T22:40:55.995135Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/fcmzravrpsrm40cjb6rsjbrvrr",
"cancel": "https://api.replicate.com/v1/predictions/fcmzravrpsrm40cjb6rsjbrvrr/cancel"
},
"version": "382cf8959fb0f0d665b26e7e80b8d6dc3faaef1510f14ce017e8c732bb3d1eb7"
}
Using seed: 57819
Prompt: womens street skateboarding final in Paris Olympics 2024
txt2img mode
0%| | 0/16 [00:00<?, ?it/s]
6%|▋ | 1/16 [00:00<00:03, 4.33it/s]
12%|█▎ | 2/16 [00:00<00:02, 5.50it/s]
19%|█▉ | 3/16 [00:00<00:02, 4.89it/s]
25%|██▌ | 4/16 [00:00<00:02, 4.65it/s]
31%|███▏ | 5/16 [00:01<00:02, 4.49it/s]
38%|███▊ | 6/16 [00:01<00:02, 4.43it/s]
44%|████▍ | 7/16 [00:01<00:02, 4.39it/s]
50%|█████ | 8/16 [00:01<00:01, 4.36it/s]
56%|█████▋ | 9/16 [00:02<00:01, 4.34it/s]
62%|██████▎ | 10/16 [00:02<00:01, 4.33it/s]
69%|██████▉ | 11/16 [00:02<00:01, 4.32it/s]
75%|███████▌ | 12/16 [00:02<00:00, 4.31it/s]
81%|████████▏ | 13/16 [00:02<00:00, 4.30it/s]
88%|████████▊ | 14/16 [00:03<00:00, 4.30it/s]
94%|█████████▍| 15/16 [00:03<00:00, 4.30it/s]
100%|██████████| 16/16 [00:03<00:00, 4.30it/s]
100%|██████████| 16/16 [00:03<00:00, 4.40it/s]