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.
jhorovitz /omini-schnell:c07c96d9
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-schnell using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"jhorovitz/omini-schnell:c07c96d92cc1c2736cc8c17115fe245338a224bb2d9e08c25d6f5173a7ce83eb",
{
input: {
task: "subject_1024",
prompt: "A backpack in the style of this.",
num_outputs: 1,
control_image: "https://replicate.delivery/pbxt/MWGfEgIUHJwl6NcBVNslTD3xe1S3TF9tL0CShbR3AyS3bM68/2.jpeg",
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-schnell using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"jhorovitz/omini-schnell:c07c96d92cc1c2736cc8c17115fe245338a224bb2d9e08c25d6f5173a7ce83eb",
input={
"task": "subject_1024",
"prompt": "A backpack in the style of this.",
"num_outputs": 1,
"control_image": "https://replicate.delivery/pbxt/MWGfEgIUHJwl6NcBVNslTD3xe1S3TF9tL0CShbR3AyS3bM68/2.jpeg",
"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-schnell 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-schnell:c07c96d92cc1c2736cc8c17115fe245338a224bb2d9e08c25d6f5173a7ce83eb",
"input": {
"task": "subject_1024",
"prompt": "A backpack in the style of this.",
"num_outputs": 1,
"control_image": "https://replicate.delivery/pbxt/MWGfEgIUHJwl6NcBVNslTD3xe1S3TF9tL0CShbR3AyS3bM68/2.jpeg",
"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-18T08:10:00.087197Z",
"created_at": "2025-02-18T08:08:29.433000Z",
"data_removed": false,
"error": null,
"id": "sqtstnznz5rj60cn30ctzdax3r",
"input": {
"task": "subject_1024",
"prompt": "A backpack in the style of this.",
"num_outputs": 1,
"control_image": "https://replicate.delivery/pbxt/MWGfEgIUHJwl6NcBVNslTD3xe1S3TF9tL0CShbR3AyS3bM68/2.jpeg",
"output_format": "webp",
"guidance_scale": 3.5,
"output_quality": 80,
"num_inference_steps": 8
},
"logs": "Using seed: 2978\nWarning: image is not square. Center cropping to make it square\n 0%| | 0/8 [00:00<?, ?it/s]\n 12%|█▎ | 1/8 [00:00<00:04, 1.40it/s]\n 25%|██▌ | 2/8 [00:01<00:03, 1.59it/s]\n 38%|███▊ | 3/8 [00:01<00:03, 1.56it/s]\n 50%|█████ | 4/8 [00:02<00:02, 1.55it/s]\n 62%|██████▎ | 5/8 [00:03<00:01, 1.54it/s]\n 75%|███████▌ | 6/8 [00:03<00:01, 1.53it/s]\n 88%|████████▊ | 7/8 [00:04<00:00, 1.53it/s]\n100%|██████████| 8/8 [00:05<00:00, 1.53it/s]\n100%|██████████| 8/8 [00:05<00:00, 1.53it/s]",
"metrics": {
"predict_time": 6.513984694,
"total_time": 90.654197
},
"output": [
"https://replicate.delivery/yhqm/BntYdP5ZZw5sBdRl6gof70cj6t4rJOcDcBE3nIEfv6XYJfgoA/out-0.webp"
],
"started_at": "2025-02-18T08:09:53.573212Z",
"status": "succeeded",
"urls": {
"stream": "https://stream.replicate.com/v1/files/yswh-4eau5ahwf4vyk34xrdbj7xdcspyhztdj6soedzwkgfkggayndmga",
"get": "https://api.replicate.com/v1/predictions/sqtstnznz5rj60cn30ctzdax3r",
"cancel": "https://api.replicate.com/v1/predictions/sqtstnznz5rj60cn30ctzdax3r/cancel"
},
"version": "c07c96d92cc1c2736cc8c17115fe245338a224bb2d9e08c25d6f5173a7ce83eb"
}
Using seed: 2978
Warning: image is not square. Center cropping to make it square
0%| | 0/8 [00:00<?, ?it/s]
12%|█▎ | 1/8 [00:00<00:04, 1.40it/s]
25%|██▌ | 2/8 [00:01<00:03, 1.59it/s]
38%|███▊ | 3/8 [00:01<00:03, 1.56it/s]
50%|█████ | 4/8 [00:02<00:02, 1.55it/s]
62%|██████▎ | 5/8 [00:03<00:01, 1.54it/s]
75%|███████▌ | 6/8 [00:03<00:01, 1.53it/s]
88%|████████▊ | 7/8 [00:04<00:00, 1.53it/s]
100%|██████████| 8/8 [00:05<00:00, 1.53it/s]
100%|██████████| 8/8 [00:05<00:00, 1.53it/s]