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.
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";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run jhorovitz/omini-dev using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"jhorovitz/omini-dev:85dcc269f1e1c5f1258e955b3ec44a0ee663004d19a2122c963ad7bc238514d1",
{
input: {
seed: 42,
task: "fill",
prompt: "A yellow book with the word 'OMINI' in large font on the cover. The text 'for FLUX' appears at the bottom.",
num_outputs: 1,
control_image: "https://github.com/jHorovitz/OminiControl/blob/main/assets/book_masked.jpg?raw=true",
output_format: "webp",
guidance_scale: 3.5,
output_quality: 80,
num_inference_steps: 8
}
}
);
// 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 jhorovitz/omini-dev using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"jhorovitz/omini-dev:85dcc269f1e1c5f1258e955b3ec44a0ee663004d19a2122c963ad7bc238514d1",
input={
"seed": 42,
"task": "fill",
"prompt": "A yellow book with the word 'OMINI' in large font on the cover. The text 'for FLUX' appears at the bottom.",
"num_outputs": 1,
"control_image": "https://github.com/jHorovitz/OminiControl/blob/main/assets/book_masked.jpg?raw=true",
"output_format": "webp",
"guidance_scale": 3.5,
"output_quality": 80,
"num_inference_steps": 8
}
)
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 jhorovitz/omini-dev 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": "jhorovitz/omini-dev:85dcc269f1e1c5f1258e955b3ec44a0ee663004d19a2122c963ad7bc238514d1",
"input": {
"seed": 42,
"task": "fill",
"prompt": "A yellow book with the word \'OMINI\' in large font on the cover. The text \'for FLUX\' appears at the bottom.",
"num_outputs": 1,
"control_image": "https://github.com/jHorovitz/OminiControl/blob/main/assets/book_masked.jpg?raw=true",
"output_format": "webp",
"guidance_scale": 3.5,
"output_quality": 80,
"num_inference_steps": 8
}
}' \
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-02-17T15:16:07.709118Z",
"created_at": "2025-02-17T15:12:06.175000Z",
"data_removed": false,
"error": null,
"id": "v28xn7ve3xrj60cn2hvrvfgyc8",
"input": {
"seed": 42,
"task": "fill",
"prompt": "A yellow book with the word 'OMINI' in large font on the cover. The text 'for FLUX' appears at the bottom.",
"num_outputs": 1,
"control_image": "https://github.com/jHorovitz/OminiControl/blob/main/assets/book_masked.jpg?raw=true",
"output_format": "webp",
"guidance_scale": 3.5,
"output_quality": 80,
"num_inference_steps": 8
},
"logs": "Using seed: 42\n 0%| | 0/8 [00:00<?, ?it/s]\n 12%|█▎ | 1/8 [00:00<00:02, 2.60it/s]\n 25%|██▌ | 2/8 [00:00<00:01, 3.04it/s]\n 38%|███▊ | 3/8 [00:00<00:01, 3.07it/s]\n 50%|█████ | 4/8 [00:01<00:01, 3.09it/s]\n 62%|██████▎ | 5/8 [00:01<00:00, 3.10it/s]\n 75%|███████▌ | 6/8 [00:01<00:00, 3.10it/s]\n 88%|████████▊ | 7/8 [00:02<00:00, 3.11it/s]\n100%|██████████| 8/8 [00:02<00:00, 3.11it/s]\n100%|██████████| 8/8 [00:02<00:00, 3.07it/s]",
"metrics": {
"predict_time": 4.110029013,
"total_time": 241.534118
},
"output": [
"https://replicate.delivery/yhqm/Yxwf6wef4efcMiaY1feiG2vBv9SdrSXZ6rOibeF8GlX13SQQUA/out-0.webp"
],
"started_at": "2025-02-17T15:16:03.599089Z",
"status": "succeeded",
"urls": {
"stream": "https://stream.replicate.com/v1/files/yswh-cgeffzbmfbs35k5s5cwnvtlohwvqgi7hzuhf2qeikjyqmzxlmh5q",
"get": "https://api.replicate.com/v1/predictions/v28xn7ve3xrj60cn2hvrvfgyc8",
"cancel": "https://api.replicate.com/v1/predictions/v28xn7ve3xrj60cn2hvrvfgyc8/cancel"
},
"version": "807c3a225037898bf5cb98c6c267c627d5ec164acd79c490972e38ba74153ec0"
}
Using seed: 42
0%| | 0/8 [00:00<?, ?it/s]
12%|█▎ | 1/8 [00:00<00:02, 2.60it/s]
25%|██▌ | 2/8 [00:00<00:01, 3.04it/s]
38%|███▊ | 3/8 [00:00<00:01, 3.07it/s]
50%|█████ | 4/8 [00:01<00:01, 3.09it/s]
62%|██████▎ | 5/8 [00:01<00:00, 3.10it/s]
75%|███████▌ | 6/8 [00:01<00:00, 3.10it/s]
88%|████████▊ | 7/8 [00:02<00:00, 3.11it/s]
100%|██████████| 8/8 [00:02<00:00, 3.11it/s]
100%|██████████| 8/8 [00:02<00:00, 3.07it/s]
This output was created using a different version of the model, jhorovitz/omini-dev:807c3a22.