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.
stability-ai /sdxl:610dddf0
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 stability-ai/sdxl using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"stability-ai/sdxl:610dddf033f10431b1b55f24510b6009fcba23017ee551a1b9afbc4eec79e29c",
{
input: {
image: "https://replicate.delivery/pbxt/JF3foGR90vm9BXSEXNaYkaeVKHYbJPinmpbMFvRtlDpH4MMk/out-0-1.png",
width: 1024,
height: 1024,
prompt: "A rainbow coloured tiger",
refine: "expert_ensemble_refiner",
scheduler: "KarrasDPM",
num_outputs: 1,
guidance_scale: 7.5,
high_noise_frac: 0.8,
negative_prompt: "",
prompt_strength: 0.65,
num_inference_steps: 50
}
}
);
// 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 stability-ai/sdxl using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"stability-ai/sdxl:610dddf033f10431b1b55f24510b6009fcba23017ee551a1b9afbc4eec79e29c",
input={
"image": "https://replicate.delivery/pbxt/JF3foGR90vm9BXSEXNaYkaeVKHYbJPinmpbMFvRtlDpH4MMk/out-0-1.png",
"width": 1024,
"height": 1024,
"prompt": "A rainbow coloured tiger",
"refine": "expert_ensemble_refiner",
"scheduler": "KarrasDPM",
"num_outputs": 1,
"guidance_scale": 7.5,
"high_noise_frac": 0.8,
"negative_prompt": "",
"prompt_strength": 0.65,
"num_inference_steps": 50
}
)
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 stability-ai/sdxl 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": "610dddf033f10431b1b55f24510b6009fcba23017ee551a1b9afbc4eec79e29c",
"input": {
"image": "https://replicate.delivery/pbxt/JF3foGR90vm9BXSEXNaYkaeVKHYbJPinmpbMFvRtlDpH4MMk/out-0-1.png",
"width": 1024,
"height": 1024,
"prompt": "A rainbow coloured tiger",
"refine": "expert_ensemble_refiner",
"scheduler": "KarrasDPM",
"num_outputs": 1,
"guidance_scale": 7.5,
"high_noise_frac": 0.8,
"negative_prompt": "",
"prompt_strength": 0.65,
"num_inference_steps": 50
}
}' \
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": "2023-07-26T20:20:38.861038Z",
"created_at": "2023-07-26T20:20:31.036768Z",
"data_removed": false,
"error": null,
"id": "ks4e2jdb6zef4xodz3mz5utuu4",
"input": {
"image": "https://replicate.delivery/pbxt/JF3foGR90vm9BXSEXNaYkaeVKHYbJPinmpbMFvRtlDpH4MMk/out-0-1.png",
"width": 1024,
"height": 1024,
"prompt": "A rainbow coloured tiger",
"refine": "expert_ensemble_refiner",
"scheduler": "KarrasDPM",
"num_outputs": 1,
"guidance_scale": 7.5,
"high_noise_frac": 0.8,
"prompt_strength": 0.65,
"num_inference_steps": 50
},
"logs": "Using seed: 47500\nimg2img mode\n 0%| | 0/13 [00:00<?, ?it/s]\n 8%|▊ | 1/13 [00:00<00:02, 4.99it/s]\n 15%|█▌ | 2/13 [00:00<00:02, 4.98it/s]\n 23%|██▎ | 3/13 [00:00<00:02, 4.98it/s]\n 31%|███ | 4/13 [00:00<00:01, 4.98it/s]\n 38%|███▊ | 5/13 [00:01<00:01, 4.97it/s]\n 46%|████▌ | 6/13 [00:01<00:01, 4.96it/s]\n 54%|█████▍ | 7/13 [00:01<00:01, 4.97it/s]\n 62%|██████▏ | 8/13 [00:01<00:01, 4.97it/s]\n 69%|██████▉ | 9/13 [00:01<00:00, 4.97it/s]\n 77%|███████▋ | 10/13 [00:02<00:00, 4.96it/s]\n 85%|████████▍ | 11/13 [00:02<00:00, 4.96it/s]\n 92%|█████████▏| 12/13 [00:02<00:00, 4.96it/s]\n100%|██████████| 13/13 [00:02<00:00, 4.95it/s]\n100%|██████████| 13/13 [00:02<00:00, 4.97it/s]\n 0%| | 0/10 [00:00<?, ?it/s]\n 10%|█ | 1/10 [00:00<00:02, 4.24it/s]\n 20%|██ | 2/10 [00:00<00:01, 4.29it/s]\n 30%|███ | 3/10 [00:00<00:01, 4.31it/s]\n 40%|████ | 4/10 [00:00<00:01, 4.31it/s]\n 50%|█████ | 5/10 [00:01<00:01, 4.32it/s]\n 60%|██████ | 6/10 [00:01<00:00, 4.32it/s]\n 70%|███████ | 7/10 [00:01<00:00, 4.32it/s]\n 80%|████████ | 8/10 [00:01<00:00, 4.32it/s]\n 90%|█████████ | 9/10 [00:02<00:00, 4.32it/s]\n100%|██████████| 10/10 [00:02<00:00, 4.32it/s]\n100%|██████████| 10/10 [00:02<00:00, 4.31it/s]",
"metrics": {
"predict_time": 7.829192,
"total_time": 7.82427
},
"output": [
"https://replicate.delivery/pbxt/YhL0f6v0tfhmlEjce0iA2jFLW5vuKDbUh69FYNjnfQEXhMPFB/out-0.png"
],
"started_at": "2023-07-26T20:20:31.031846Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/ks4e2jdb6zef4xodz3mz5utuu4",
"cancel": "https://api.replicate.com/v1/predictions/ks4e2jdb6zef4xodz3mz5utuu4/cancel"
},
"version": "610dddf033f10431b1b55f24510b6009fcba23017ee551a1b9afbc4eec79e29c"
}
Using seed: 47500
img2img mode
0%| | 0/13 [00:00<?, ?it/s]
8%|▊ | 1/13 [00:00<00:02, 4.99it/s]
15%|█▌ | 2/13 [00:00<00:02, 4.98it/s]
23%|██▎ | 3/13 [00:00<00:02, 4.98it/s]
31%|███ | 4/13 [00:00<00:01, 4.98it/s]
38%|███▊ | 5/13 [00:01<00:01, 4.97it/s]
46%|████▌ | 6/13 [00:01<00:01, 4.96it/s]
54%|█████▍ | 7/13 [00:01<00:01, 4.97it/s]
62%|██████▏ | 8/13 [00:01<00:01, 4.97it/s]
69%|██████▉ | 9/13 [00:01<00:00, 4.97it/s]
77%|███████▋ | 10/13 [00:02<00:00, 4.96it/s]
85%|████████▍ | 11/13 [00:02<00:00, 4.96it/s]
92%|█████████▏| 12/13 [00:02<00:00, 4.96it/s]
100%|██████████| 13/13 [00:02<00:00, 4.95it/s]
100%|██████████| 13/13 [00:02<00:00, 4.97it/s]
0%| | 0/10 [00:00<?, ?it/s]
10%|█ | 1/10 [00:00<00:02, 4.24it/s]
20%|██ | 2/10 [00:00<00:01, 4.29it/s]
30%|███ | 3/10 [00:00<00:01, 4.31it/s]
40%|████ | 4/10 [00:00<00:01, 4.31it/s]
50%|█████ | 5/10 [00:01<00:01, 4.32it/s]
60%|██████ | 6/10 [00:01<00:00, 4.32it/s]
70%|███████ | 7/10 [00:01<00:00, 4.32it/s]
80%|████████ | 8/10 [00:01<00:00, 4.32it/s]
90%|█████████ | 9/10 [00:02<00:00, 4.32it/s]
100%|██████████| 10/10 [00:02<00:00, 4.32it/s]
100%|██████████| 10/10 [00:02<00:00, 4.31it/s]