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:98ccf187
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:98ccf187274f4237a514ed82cd372629b90a010e1203c956cae7f28364f1cafb",
{
input: {
task: "subject_512",
prompt: "This figurine on the dashboard of a sleek convertible. The sunset reflects off the background.",
num_outputs: 1,
control_image: "https://api.replicate.com/v1/files/YWM5NjBjMzQtMDFlNS00N2UzLWIxNGUtODI5ZGU3YzQ1ZjQ5/download?expiry=1739818944&owner=jhorovitz&signature=Kmr2UnHVqwkGZmoxA%252BLFmdpiY1uB4k7p6FPPD4k9Pw0%253D",
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:98ccf187274f4237a514ed82cd372629b90a010e1203c956cae7f28364f1cafb",
input={
"task": "subject_512",
"prompt": "This figurine on the dashboard of a sleek convertible. The sunset reflects off the background.",
"num_outputs": 1,
"control_image": "https://api.replicate.com/v1/files/YWM5NjBjMzQtMDFlNS00N2UzLWIxNGUtODI5ZGU3YzQ1ZjQ5/download?expiry=1739818944&owner=jhorovitz&signature=Kmr2UnHVqwkGZmoxA%252BLFmdpiY1uB4k7p6FPPD4k9Pw0%253D",
"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:98ccf187274f4237a514ed82cd372629b90a010e1203c956cae7f28364f1cafb",
"input": {
"task": "subject_512",
"prompt": "This figurine on the dashboard of a sleek convertible. The sunset reflects off the background.",
"num_outputs": 1,
"control_image": "https://api.replicate.com/v1/files/YWM5NjBjMzQtMDFlNS00N2UzLWIxNGUtODI5ZGU3YzQ1ZjQ5/download?expiry=1739818944&owner=jhorovitz&signature=Kmr2UnHVqwkGZmoxA%252BLFmdpiY1uB4k7p6FPPD4k9Pw0%253D",
"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-17T18:03:14.726775Z",
"created_at": "2025-02-17T18:02:24.773000Z",
"data_removed": false,
"error": null,
"id": "vsy70yjtgnrj00cn2m9tdzx2z0",
"input": {
"task": "subject_512",
"prompt": "This figurine on the dashboard of a sleek convertible. The sunset reflects off the background.",
"num_outputs": 1,
"control_image": "https://api.replicate.com/v1/files/YWM5NjBjMzQtMDFlNS00N2UzLWIxNGUtODI5ZGU3YzQ1ZjQ5/download?expiry=1739818944&owner=jhorovitz&signature=Kmr2UnHVqwkGZmoxA%252BLFmdpiY1uB4k7p6FPPD4k9Pw0%253D",
"output_format": "webp",
"guidance_scale": 3.5,
"output_quality": 80,
"num_inference_steps": 8
},
"logs": "Using seed: 44455\n 0%| | 0/8 [00:00<?, ?it/s]\n 12%|█▎ | 1/8 [00:00<00:02, 3.40it/s]\n 25%|██▌ | 2/8 [00:00<00:01, 3.67it/s]\n 38%|███▊ | 3/8 [00:00<00:01, 3.54it/s]\n 50%|█████ | 4/8 [00:01<00:01, 3.49it/s]\n 62%|██████▎ | 5/8 [00:01<00:00, 3.47it/s]\n 75%|███████▌ | 6/8 [00:01<00:00, 3.45it/s]\n 88%|████████▊ | 7/8 [00:02<00:00, 3.43it/s]\n100%|██████████| 8/8 [00:02<00:00, 3.42it/s]\n100%|██████████| 8/8 [00:02<00:00, 3.46it/s]",
"metrics": {
"predict_time": 2.778043072,
"total_time": 49.953775
},
"output": [
"https://replicate.delivery/yhqm/iFvJTk0335qGAl0j2RxCzCL1Ci9l0k12mSflH4E8nxJxXJIKA/out-0.webp"
],
"started_at": "2025-02-17T18:03:11.948732Z",
"status": "succeeded",
"urls": {
"stream": "https://stream.replicate.com/v1/files/yswh-3ogwqfg3vyzescuq4ppjgcgmrbui3bs43lo4hpvjoitabn6ldgyq",
"get": "https://api.replicate.com/v1/predictions/vsy70yjtgnrj00cn2m9tdzx2z0",
"cancel": "https://api.replicate.com/v1/predictions/vsy70yjtgnrj00cn2m9tdzx2z0/cancel"
},
"version": "98ccf187274f4237a514ed82cd372629b90a010e1203c956cae7f28364f1cafb"
}
Using seed: 44455
0%| | 0/8 [00:00<?, ?it/s]
12%|█▎ | 1/8 [00:00<00:02, 3.40it/s]
25%|██▌ | 2/8 [00:00<00:01, 3.67it/s]
38%|███▊ | 3/8 [00:00<00:01, 3.54it/s]
50%|█████ | 4/8 [00:01<00:01, 3.49it/s]
62%|██████▎ | 5/8 [00:01<00:00, 3.47it/s]
75%|███████▌ | 6/8 [00:01<00:00, 3.45it/s]
88%|████████▊ | 7/8 [00:02<00:00, 3.43it/s]
100%|██████████| 8/8 [00:02<00:00, 3.42it/s]
100%|██████████| 8/8 [00:02<00:00, 3.46it/s]