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:c221b2b8
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:c221b2b8ef527988fb59bf24a8b97c4561f1c671f73bd389f866bfb27c061316",
{
input: {
width: 768,
height: 768,
prompt: "An image of Curious, Astronaut, exploring alien flora, moody lighting style, detailed, realistic, trending on artstation, in style of concept artist Scott R. Kessler, digital painter Benoit Courty and 3D artist Kieran \"KieranParsons\" Parsons.",
refine: "expert_ensemble_refiner",
scheduler: "K_EULER",
lora_scale: 0.6,
num_outputs: 1,
guidance_scale: 7.5,
apply_watermark: false,
high_noise_frac: 0.8,
negative_prompt: "",
prompt_strength: 0.8,
num_inference_steps: 25
}
}
);
// 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:c221b2b8ef527988fb59bf24a8b97c4561f1c671f73bd389f866bfb27c061316",
input={
"width": 768,
"height": 768,
"prompt": "An image of Curious, Astronaut, exploring alien flora, moody lighting style, detailed, realistic, trending on artstation, in style of concept artist Scott R. Kessler, digital painter Benoit Courty and 3D artist Kieran \"KieranParsons\" Parsons.",
"refine": "expert_ensemble_refiner",
"scheduler": "K_EULER",
"lora_scale": 0.6,
"num_outputs": 1,
"guidance_scale": 7.5,
"apply_watermark": False,
"high_noise_frac": 0.8,
"negative_prompt": "",
"prompt_strength": 0.8,
"num_inference_steps": 25
}
)
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": "stability-ai/sdxl:c221b2b8ef527988fb59bf24a8b97c4561f1c671f73bd389f866bfb27c061316",
"input": {
"width": 768,
"height": 768,
"prompt": "An image of Curious, Astronaut, exploring alien flora, moody lighting style, detailed, realistic, trending on artstation, in style of concept artist Scott R. Kessler, digital painter Benoit Courty and 3D artist Kieran \\"KieranParsons\\" Parsons.",
"refine": "expert_ensemble_refiner",
"scheduler": "K_EULER",
"lora_scale": 0.6,
"num_outputs": 1,
"guidance_scale": 7.5,
"apply_watermark": false,
"high_noise_frac": 0.8,
"negative_prompt": "",
"prompt_strength": 0.8,
"num_inference_steps": 25
}
}' \
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-10-22T21:24:09.522728Z",
"created_at": "2023-10-22T21:24:04.914880Z",
"data_removed": false,
"error": null,
"id": "jkgpfc3bhjapvmlfqkvdhpdeta",
"input": {
"width": 768,
"height": 768,
"prompt": "An image of Curious, Astronaut, exploring alien flora, moody lighting style, detailed, realistic, trending on artstation, in style of concept artist Scott R. Kessler, digital painter Benoit Courty and 3D artist Kieran \"KieranParsons\" Parsons.",
"refine": "expert_ensemble_refiner",
"scheduler": "K_EULER",
"lora_scale": 0.6,
"num_outputs": 1,
"guidance_scale": 7.5,
"apply_watermark": false,
"high_noise_frac": 0.8,
"negative_prompt": "",
"prompt_strength": 0.8,
"num_inference_steps": 25
},
"logs": "Using seed: 20320\nPrompt: An image of Curious, Astronaut, exploring alien flora, moody lighting style, detailed, realistic, trending on artstation, in style of concept artist Scott R. Kessler, digital painter Benoit Courty and 3D artist Kieran \"KieranParsons\" Parsons.\ntxt2img mode\n 0%| | 0/16 [00:00<?, ?it/s]\n 6%|▋ | 1/16 [00:00<00:01, 8.19it/s]\n 12%|█▎ | 2/16 [00:00<00:01, 8.10it/s]\n 19%|█▉ | 3/16 [00:00<00:01, 8.08it/s]\n 25%|██▌ | 4/16 [00:00<00:01, 8.06it/s]\n 31%|███▏ | 5/16 [00:00<00:01, 8.03it/s]\n 38%|███▊ | 6/16 [00:00<00:01, 8.03it/s]\n 44%|████▍ | 7/16 [00:00<00:01, 8.03it/s]\n 50%|█████ | 8/16 [00:00<00:00, 8.03it/s]\n 56%|█████▋ | 9/16 [00:01<00:00, 8.02it/s]\n 62%|██████▎ | 10/16 [00:01<00:00, 8.00it/s]\n 69%|██████▉ | 11/16 [00:01<00:00, 8.00it/s]\n 75%|███████▌ | 12/16 [00:01<00:00, 8.01it/s]\n 81%|████████▏ | 13/16 [00:01<00:00, 8.01it/s]\n 88%|████████▊ | 14/16 [00:01<00:00, 8.00it/s]\n 94%|█████████▍| 15/16 [00:01<00:00, 8.00it/s]\n100%|██████████| 16/16 [00:01<00:00, 8.01it/s]\n100%|██████████| 16/16 [00:01<00:00, 8.03it/s]\n 0%| | 0/5 [00:00<?, ?it/s]\n 20%|██ | 1/5 [00:00<00:00, 7.67it/s]\n 40%|████ | 2/5 [00:00<00:00, 7.62it/s]\n 60%|██████ | 3/5 [00:00<00:00, 7.61it/s]\n 80%|████████ | 4/5 [00:00<00:00, 7.60it/s]\n100%|██████████| 5/5 [00:00<00:00, 7.61it/s]\n100%|██████████| 5/5 [00:00<00:00, 7.61it/s]",
"metrics": {
"predict_time": 4.669162,
"total_time": 4.607848
},
"output": [
"https://pbxt.replicate.delivery/oA5w9CwBtobHB5Ma36iCl1PqoSHeff2vOnCYJOeqvlniPRDHB/out-0.png"
],
"started_at": "2023-10-22T21:24:04.853566Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/jkgpfc3bhjapvmlfqkvdhpdeta",
"cancel": "https://api.replicate.com/v1/predictions/jkgpfc3bhjapvmlfqkvdhpdeta/cancel"
},
"version": "c221b2b8ef527988fb59bf24a8b97c4561f1c671f73bd389f866bfb27c061316"
}
Using seed: 20320
Prompt: An image of Curious, Astronaut, exploring alien flora, moody lighting style, detailed, realistic, trending on artstation, in style of concept artist Scott R. Kessler, digital painter Benoit Courty and 3D artist Kieran "KieranParsons" Parsons.
txt2img mode
0%| | 0/16 [00:00<?, ?it/s]
6%|▋ | 1/16 [00:00<00:01, 8.19it/s]
12%|█▎ | 2/16 [00:00<00:01, 8.10it/s]
19%|█▉ | 3/16 [00:00<00:01, 8.08it/s]
25%|██▌ | 4/16 [00:00<00:01, 8.06it/s]
31%|███▏ | 5/16 [00:00<00:01, 8.03it/s]
38%|███▊ | 6/16 [00:00<00:01, 8.03it/s]
44%|████▍ | 7/16 [00:00<00:01, 8.03it/s]
50%|█████ | 8/16 [00:00<00:00, 8.03it/s]
56%|█████▋ | 9/16 [00:01<00:00, 8.02it/s]
62%|██████▎ | 10/16 [00:01<00:00, 8.00it/s]
69%|██████▉ | 11/16 [00:01<00:00, 8.00it/s]
75%|███████▌ | 12/16 [00:01<00:00, 8.01it/s]
81%|████████▏ | 13/16 [00:01<00:00, 8.01it/s]
88%|████████▊ | 14/16 [00:01<00:00, 8.00it/s]
94%|█████████▍| 15/16 [00:01<00:00, 8.00it/s]
100%|██████████| 16/16 [00:01<00:00, 8.01it/s]
100%|██████████| 16/16 [00:01<00:00, 8.03it/s]
0%| | 0/5 [00:00<?, ?it/s]
20%|██ | 1/5 [00:00<00:00, 7.67it/s]
40%|████ | 2/5 [00:00<00:00, 7.62it/s]
60%|██████ | 3/5 [00:00<00:00, 7.61it/s]
80%|████████ | 4/5 [00:00<00:00, 7.60it/s]
100%|██████████| 5/5 [00:00<00:00, 7.61it/s]
100%|██████████| 5/5 [00:00<00:00, 7.61it/s]