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.
jbilcke /sdxl-cyberpunk-2077:6e967109
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";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run jbilcke/sdxl-cyberpunk-2077 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"jbilcke/sdxl-cyberpunk-2077:6e967109e2e554d5cd6a61891258e20eef7e68a1491ac8cd1328e19704e4b294",
{
input: {
width: 800,
height: 1024,
prompt: "afro-american woman, futuristic, portrait, working clothes, futuristic power plant, palm trees, japanese neon sign, morning sun, in the style of TOK",
refine: "base_image_refiner",
scheduler: "K_EULER",
lora_scale: 0.95,
num_outputs: 1,
guidance_scale: 8.99,
apply_watermark: true,
high_noise_frac: 0.8,
negative_prompt: "",
prompt_strength: 0.8,
num_inference_steps: 70
}
}
);
// 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 jbilcke/sdxl-cyberpunk-2077 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"jbilcke/sdxl-cyberpunk-2077:6e967109e2e554d5cd6a61891258e20eef7e68a1491ac8cd1328e19704e4b294",
input={
"width": 800,
"height": 1024,
"prompt": "afro-american woman, futuristic, portrait, working clothes, futuristic power plant, palm trees, japanese neon sign, morning sun, in the style of TOK",
"refine": "base_image_refiner",
"scheduler": "K_EULER",
"lora_scale": 0.95,
"num_outputs": 1,
"guidance_scale": 8.99,
"apply_watermark": True,
"high_noise_frac": 0.8,
"negative_prompt": "",
"prompt_strength": 0.8,
"num_inference_steps": 70
}
)
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 jbilcke/sdxl-cyberpunk-2077 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": "jbilcke/sdxl-cyberpunk-2077:6e967109e2e554d5cd6a61891258e20eef7e68a1491ac8cd1328e19704e4b294",
"input": {
"width": 800,
"height": 1024,
"prompt": "afro-american woman, futuristic, portrait, working clothes, futuristic power plant, palm trees, japanese neon sign, morning sun, in the style of TOK",
"refine": "base_image_refiner",
"scheduler": "K_EULER",
"lora_scale": 0.95,
"num_outputs": 1,
"guidance_scale": 8.99,
"apply_watermark": true,
"high_noise_frac": 0.8,
"negative_prompt": "",
"prompt_strength": 0.8,
"num_inference_steps": 70
}
}' \
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-22T10:34:20.077667Z",
"created_at": "2023-10-22T10:33:57.817533Z",
"data_removed": false,
"error": null,
"id": "idca6nlbq5buvbkcellwhqku6u",
"input": {
"width": 800,
"height": 1024,
"prompt": "afro-american woman, futuristic, portrait, working clothes, futuristic power plant, palm trees, japanese neon sign, morning sun, in the style of TOK",
"refine": "base_image_refiner",
"scheduler": "K_EULER",
"lora_scale": 0.95,
"num_outputs": 1,
"guidance_scale": 8.99,
"apply_watermark": true,
"high_noise_frac": 0.8,
"negative_prompt": "",
"prompt_strength": 0.8,
"num_inference_steps": 70
},
"logs": "Using seed: 24389\nPrompt: afro-american woman, futuristic, portrait, working clothes, futuristic power plant, palm trees, japanese neon sign, morning sun, in the style of <s0><s1>\ntxt2img mode\n 0%| | 0/70 [00:00<?, ?it/s]\n 1%|▏ | 1/70 [00:00<00:15, 4.32it/s]\n 3%|▎ | 2/70 [00:00<00:15, 4.30it/s]\n 4%|▍ | 3/70 [00:00<00:15, 4.30it/s]\n 6%|▌ | 4/70 [00:00<00:15, 4.30it/s]\n 7%|▋ | 5/70 [00:01<00:15, 4.30it/s]\n 9%|▊ | 6/70 [00:01<00:14, 4.30it/s]\n 10%|█ | 7/70 [00:01<00:14, 4.29it/s]\n 11%|█▏ | 8/70 [00:01<00:14, 4.29it/s]\n 13%|█▎ | 9/70 [00:02<00:14, 4.29it/s]\n 14%|█▍ | 10/70 [00:02<00:14, 4.28it/s]\n 16%|█▌ | 11/70 [00:02<00:13, 4.28it/s]\n 17%|█▋ | 12/70 [00:02<00:13, 4.28it/s]\n 19%|█▊ | 13/70 [00:03<00:13, 4.28it/s]\n 20%|██ | 14/70 [00:03<00:13, 4.28it/s]\n 21%|██▏ | 15/70 [00:03<00:12, 4.28it/s]\n 23%|██▎ | 16/70 [00:03<00:12, 4.28it/s]\n 24%|██▍ | 17/70 [00:03<00:12, 4.28it/s]\n 26%|██▌ | 18/70 [00:04<00:12, 4.28it/s]\n 27%|██▋ | 19/70 [00:04<00:11, 4.28it/s]\n 29%|██▊ | 20/70 [00:04<00:11, 4.28it/s]\n 30%|███ | 21/70 [00:04<00:11, 4.28it/s]\n 31%|███▏ | 22/70 [00:05<00:11, 4.28it/s]\n 33%|███▎ | 23/70 [00:05<00:10, 4.28it/s]\n 34%|███▍ | 24/70 [00:05<00:10, 4.28it/s]\n 36%|███▌ | 25/70 [00:05<00:10, 4.28it/s]\n 37%|███▋ | 26/70 [00:06<00:10, 4.27it/s]\n 39%|███▊ | 27/70 [00:06<00:10, 4.27it/s]\n 40%|████ | 28/70 [00:06<00:09, 4.27it/s]\n 41%|████▏ | 29/70 [00:06<00:09, 4.27it/s]\n 43%|████▎ | 30/70 [00:07<00:09, 4.27it/s]\n 44%|████▍ | 31/70 [00:07<00:09, 4.27it/s]\n 46%|████▌ | 32/70 [00:07<00:08, 4.27it/s]\n 47%|████▋ | 33/70 [00:07<00:08, 4.27it/s]\n 49%|████▊ | 34/70 [00:07<00:08, 4.27it/s]\n 50%|█████ | 35/70 [00:08<00:08, 4.27it/s]\n 51%|█████▏ | 36/70 [00:08<00:07, 4.27it/s]\n 53%|█████▎ | 37/70 [00:08<00:07, 4.27it/s]\n 54%|█████▍ | 38/70 [00:08<00:07, 4.26it/s]\n 56%|█████▌ | 39/70 [00:09<00:07, 4.27it/s]\n 57%|█████▋ | 40/70 [00:09<00:07, 4.26it/s]\n 59%|█████▊ | 41/70 [00:09<00:06, 4.26it/s]\n 60%|██████ | 42/70 [00:09<00:06, 4.26it/s]\n 61%|██████▏ | 43/70 [00:10<00:06, 4.27it/s]\n 63%|██████▎ | 44/70 [00:10<00:06, 4.27it/s]\n 64%|██████▍ | 45/70 [00:10<00:05, 4.26it/s]\n 66%|██████▌ | 46/70 [00:10<00:05, 4.26it/s]\n 67%|██████▋ | 47/70 [00:10<00:05, 4.26it/s]\n 69%|██████▊ | 48/70 [00:11<00:05, 4.26it/s]\n 70%|███████ | 49/70 [00:11<00:04, 4.26it/s]\n 71%|███████▏ | 50/70 [00:11<00:04, 4.27it/s]\n 73%|███████▎ | 51/70 [00:11<00:04, 4.27it/s]\n 74%|███████▍ | 52/70 [00:12<00:04, 4.27it/s]\n 76%|███████▌ | 53/70 [00:12<00:03, 4.26it/s]\n 77%|███████▋ | 54/70 [00:12<00:03, 4.26it/s]\n 79%|███████▊ | 55/70 [00:12<00:03, 4.26it/s]\n 80%|████████ | 56/70 [00:13<00:03, 4.26it/s]\n 81%|████████▏ | 57/70 [00:13<00:03, 4.26it/s]\n 83%|████████▎ | 58/70 [00:13<00:02, 4.26it/s]\n 84%|████████▍ | 59/70 [00:13<00:02, 4.26it/s]\n 86%|████████▌ | 60/70 [00:14<00:02, 4.26it/s]\n 87%|████████▋ | 61/70 [00:14<00:02, 4.26it/s]\n 89%|████████▊ | 62/70 [00:14<00:01, 4.26it/s]\n 90%|█████████ | 63/70 [00:14<00:01, 4.26it/s]\n 91%|█████████▏| 64/70 [00:14<00:01, 4.26it/s]\n 93%|█████████▎| 65/70 [00:15<00:01, 4.26it/s]\n 94%|█████████▍| 66/70 [00:15<00:00, 4.27it/s]\n 96%|█████████▌| 67/70 [00:15<00:00, 4.27it/s]\n 97%|█████████▋| 68/70 [00:15<00:00, 4.26it/s]\n 99%|█████████▊| 69/70 [00:16<00:00, 4.26it/s]\n100%|██████████| 70/70 [00:16<00:00, 4.27it/s]\n100%|██████████| 70/70 [00:16<00:00, 4.27it/s]\n 0%| | 0/21 [00:00<?, ?it/s]\n 5%|▍ | 1/21 [00:00<00:03, 5.57it/s]\n 10%|▉ | 2/21 [00:00<00:03, 5.53it/s]\n 14%|█▍ | 3/21 [00:00<00:03, 5.51it/s]\n 19%|█▉ | 4/21 [00:00<00:03, 5.51it/s]\n 24%|██▍ | 5/21 [00:00<00:02, 5.50it/s]\n 29%|██▊ | 6/21 [00:01<00:02, 5.50it/s]\n 33%|███▎ | 7/21 [00:01<00:02, 5.50it/s]\n 38%|███▊ | 8/21 [00:01<00:02, 5.51it/s]\n 43%|████▎ | 9/21 [00:01<00:02, 5.51it/s]\n 48%|████▊ | 10/21 [00:01<00:01, 5.51it/s]\n 52%|█████▏ | 11/21 [00:01<00:01, 5.51it/s]\n 57%|█████▋ | 12/21 [00:02<00:01, 5.50it/s]\n 62%|██████▏ | 13/21 [00:02<00:01, 5.50it/s]\n 67%|██████▋ | 14/21 [00:02<00:01, 5.49it/s]\n 71%|███████▏ | 15/21 [00:02<00:01, 5.50it/s]\n 76%|███████▌ | 16/21 [00:02<00:00, 5.50it/s]\n 81%|████████ | 17/21 [00:03<00:00, 5.50it/s]\n 86%|████████▌ | 18/21 [00:03<00:00, 5.49it/s]\n 90%|█████████ | 19/21 [00:03<00:00, 5.49it/s]\n 95%|█████████▌| 20/21 [00:03<00:00, 5.49it/s]\n100%|██████████| 21/21 [00:03<00:00, 5.49it/s]\n100%|██████████| 21/21 [00:03<00:00, 5.50it/s]",
"metrics": {
"predict_time": 22.22649,
"total_time": 22.260134
},
"output": [
"https://pbxt.replicate.delivery/KfyLO39TQDwfeJJ3VhhhbvIzP31RAuWbmpGpz1eciWYsKrCHB/out-0.png"
],
"started_at": "2023-10-22T10:33:57.851177Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/idca6nlbq5buvbkcellwhqku6u",
"cancel": "https://api.replicate.com/v1/predictions/idca6nlbq5buvbkcellwhqku6u/cancel"
},
"version": "6e967109e2e554d5cd6a61891258e20eef7e68a1491ac8cd1328e19704e4b294"
}
Using seed: 24389
Prompt: afro-american woman, futuristic, portrait, working clothes, futuristic power plant, palm trees, japanese neon sign, morning sun, in the style of <s0><s1>
txt2img mode
0%| | 0/70 [00:00<?, ?it/s]
1%|▏ | 1/70 [00:00<00:15, 4.32it/s]
3%|▎ | 2/70 [00:00<00:15, 4.30it/s]
4%|▍ | 3/70 [00:00<00:15, 4.30it/s]
6%|▌ | 4/70 [00:00<00:15, 4.30it/s]
7%|▋ | 5/70 [00:01<00:15, 4.30it/s]
9%|▊ | 6/70 [00:01<00:14, 4.30it/s]
10%|█ | 7/70 [00:01<00:14, 4.29it/s]
11%|█▏ | 8/70 [00:01<00:14, 4.29it/s]
13%|█▎ | 9/70 [00:02<00:14, 4.29it/s]
14%|█▍ | 10/70 [00:02<00:14, 4.28it/s]
16%|█▌ | 11/70 [00:02<00:13, 4.28it/s]
17%|█▋ | 12/70 [00:02<00:13, 4.28it/s]
19%|█▊ | 13/70 [00:03<00:13, 4.28it/s]
20%|██ | 14/70 [00:03<00:13, 4.28it/s]
21%|██▏ | 15/70 [00:03<00:12, 4.28it/s]
23%|██▎ | 16/70 [00:03<00:12, 4.28it/s]
24%|██▍ | 17/70 [00:03<00:12, 4.28it/s]
26%|██▌ | 18/70 [00:04<00:12, 4.28it/s]
27%|██▋ | 19/70 [00:04<00:11, 4.28it/s]
29%|██▊ | 20/70 [00:04<00:11, 4.28it/s]
30%|███ | 21/70 [00:04<00:11, 4.28it/s]
31%|███▏ | 22/70 [00:05<00:11, 4.28it/s]
33%|███▎ | 23/70 [00:05<00:10, 4.28it/s]
34%|███▍ | 24/70 [00:05<00:10, 4.28it/s]
36%|███▌ | 25/70 [00:05<00:10, 4.28it/s]
37%|███▋ | 26/70 [00:06<00:10, 4.27it/s]
39%|███▊ | 27/70 [00:06<00:10, 4.27it/s]
40%|████ | 28/70 [00:06<00:09, 4.27it/s]
41%|████▏ | 29/70 [00:06<00:09, 4.27it/s]
43%|████▎ | 30/70 [00:07<00:09, 4.27it/s]
44%|████▍ | 31/70 [00:07<00:09, 4.27it/s]
46%|████▌ | 32/70 [00:07<00:08, 4.27it/s]
47%|████▋ | 33/70 [00:07<00:08, 4.27it/s]
49%|████▊ | 34/70 [00:07<00:08, 4.27it/s]
50%|█████ | 35/70 [00:08<00:08, 4.27it/s]
51%|█████▏ | 36/70 [00:08<00:07, 4.27it/s]
53%|█████▎ | 37/70 [00:08<00:07, 4.27it/s]
54%|█████▍ | 38/70 [00:08<00:07, 4.26it/s]
56%|█████▌ | 39/70 [00:09<00:07, 4.27it/s]
57%|█████▋ | 40/70 [00:09<00:07, 4.26it/s]
59%|█████▊ | 41/70 [00:09<00:06, 4.26it/s]
60%|██████ | 42/70 [00:09<00:06, 4.26it/s]
61%|██████▏ | 43/70 [00:10<00:06, 4.27it/s]
63%|██████▎ | 44/70 [00:10<00:06, 4.27it/s]
64%|██████▍ | 45/70 [00:10<00:05, 4.26it/s]
66%|██████▌ | 46/70 [00:10<00:05, 4.26it/s]
67%|██████▋ | 47/70 [00:10<00:05, 4.26it/s]
69%|██████▊ | 48/70 [00:11<00:05, 4.26it/s]
70%|███████ | 49/70 [00:11<00:04, 4.26it/s]
71%|███████▏ | 50/70 [00:11<00:04, 4.27it/s]
73%|███████▎ | 51/70 [00:11<00:04, 4.27it/s]
74%|███████▍ | 52/70 [00:12<00:04, 4.27it/s]
76%|███████▌ | 53/70 [00:12<00:03, 4.26it/s]
77%|███████▋ | 54/70 [00:12<00:03, 4.26it/s]
79%|███████▊ | 55/70 [00:12<00:03, 4.26it/s]
80%|████████ | 56/70 [00:13<00:03, 4.26it/s]
81%|████████▏ | 57/70 [00:13<00:03, 4.26it/s]
83%|████████▎ | 58/70 [00:13<00:02, 4.26it/s]
84%|████████▍ | 59/70 [00:13<00:02, 4.26it/s]
86%|████████▌ | 60/70 [00:14<00:02, 4.26it/s]
87%|████████▋ | 61/70 [00:14<00:02, 4.26it/s]
89%|████████▊ | 62/70 [00:14<00:01, 4.26it/s]
90%|█████████ | 63/70 [00:14<00:01, 4.26it/s]
91%|█████████▏| 64/70 [00:14<00:01, 4.26it/s]
93%|█████████▎| 65/70 [00:15<00:01, 4.26it/s]
94%|█████████▍| 66/70 [00:15<00:00, 4.27it/s]
96%|█████████▌| 67/70 [00:15<00:00, 4.27it/s]
97%|█████████▋| 68/70 [00:15<00:00, 4.26it/s]
99%|█████████▊| 69/70 [00:16<00:00, 4.26it/s]
100%|██████████| 70/70 [00:16<00:00, 4.27it/s]
100%|██████████| 70/70 [00:16<00:00, 4.27it/s]
0%| | 0/21 [00:00<?, ?it/s]
5%|▍ | 1/21 [00:00<00:03, 5.57it/s]
10%|▉ | 2/21 [00:00<00:03, 5.53it/s]
14%|█▍ | 3/21 [00:00<00:03, 5.51it/s]
19%|█▉ | 4/21 [00:00<00:03, 5.51it/s]
24%|██▍ | 5/21 [00:00<00:02, 5.50it/s]
29%|██▊ | 6/21 [00:01<00:02, 5.50it/s]
33%|███▎ | 7/21 [00:01<00:02, 5.50it/s]
38%|███▊ | 8/21 [00:01<00:02, 5.51it/s]
43%|████▎ | 9/21 [00:01<00:02, 5.51it/s]
48%|████▊ | 10/21 [00:01<00:01, 5.51it/s]
52%|█████▏ | 11/21 [00:01<00:01, 5.51it/s]
57%|█████▋ | 12/21 [00:02<00:01, 5.50it/s]
62%|██████▏ | 13/21 [00:02<00:01, 5.50it/s]
67%|██████▋ | 14/21 [00:02<00:01, 5.49it/s]
71%|███████▏ | 15/21 [00:02<00:01, 5.50it/s]
76%|███████▌ | 16/21 [00:02<00:00, 5.50it/s]
81%|████████ | 17/21 [00:03<00:00, 5.50it/s]
86%|████████▌ | 18/21 [00:03<00:00, 5.49it/s]
90%|█████████ | 19/21 [00:03<00:00, 5.49it/s]
95%|█████████▌| 20/21 [00:03<00:00, 5.49it/s]
100%|██████████| 21/21 [00:03<00:00, 5.49it/s]
100%|██████████| 21/21 [00:03<00:00, 5.50it/s]