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: "in the style of TOK, portrait of a woman, standing in a solar power plant, work clothes, palm trees, cold and detached atmosphere, otherworldly, sportscar in the background, golden blazer, sky scrappers in the background, enigmatic, futuristic, sci-fi",
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": "in the style of TOK, portrait of a woman, standing in a solar power plant, work clothes, palm trees, cold and detached atmosphere, otherworldly, sportscar in the background, golden blazer, sky scrappers in the background, enigmatic, futuristic, sci-fi",
"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": "in the style of TOK, portrait of a woman, standing in a solar power plant, work clothes, palm trees, cold and detached atmosphere, otherworldly, sportscar in the background, golden blazer, sky scrappers in the background, enigmatic, futuristic, sci-fi",
"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-22T11:23:50.696110Z",
"created_at": "2023-10-22T11:23:29.471005Z",
"data_removed": false,
"error": null,
"id": "ote4rtlbqthleftcvx3yzjs7k4",
"input": {
"width": 800,
"height": 1024,
"prompt": "in the style of TOK, portrait of a woman, standing in a solar power plant, work clothes, palm trees, cold and detached atmosphere, otherworldly, sportscar in the background, golden blazer, sky scrappers in the background, enigmatic, futuristic, sci-fi",
"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: 25647\nPrompt: in the style of <s0><s1>, portrait of a woman, standing in a solar power plant, work clothes, palm trees, cold and detached atmosphere, otherworldly, sportscar in the background, golden blazer, sky scrappers in the background, enigmatic, futuristic, sci-fi\ntxt2img mode\n 0%| | 0/70 [00:00<?, ?it/s]\n 1%|▏ | 1/70 [00:00<00:15, 4.50it/s]\n 3%|▎ | 2/70 [00:00<00:15, 4.49it/s]\n 4%|▍ | 3/70 [00:00<00:14, 4.48it/s]\n 6%|▌ | 4/70 [00:00<00:14, 4.47it/s]\n 7%|▋ | 5/70 [00:01<00:14, 4.47it/s]\n 9%|▊ | 6/70 [00:01<00:14, 4.48it/s]\n 10%|█ | 7/70 [00:01<00:14, 4.47it/s]\n 11%|█▏ | 8/70 [00:01<00:13, 4.47it/s]\n 13%|█▎ | 9/70 [00:02<00:13, 4.47it/s]\n 14%|█▍ | 10/70 [00:02<00:13, 4.47it/s]\n 16%|█▌ | 11/70 [00:02<00:13, 4.47it/s]\n 17%|█▋ | 12/70 [00:02<00:12, 4.47it/s]\n 19%|█▊ | 13/70 [00:02<00:12, 4.47it/s]\n 20%|██ | 14/70 [00:03<00:12, 4.47it/s]\n 21%|██▏ | 15/70 [00:03<00:12, 4.46it/s]\n 23%|██▎ | 16/70 [00:03<00:12, 4.46it/s]\n 24%|██▍ | 17/70 [00:03<00:11, 4.46it/s]\n 26%|██▌ | 18/70 [00:04<00:11, 4.46it/s]\n 27%|██▋ | 19/70 [00:04<00:11, 4.46it/s]\n 29%|██▊ | 20/70 [00:04<00:11, 4.46it/s]\n 30%|███ | 21/70 [00:04<00:10, 4.47it/s]\n 31%|███▏ | 22/70 [00:04<00:10, 4.47it/s]\n 33%|███▎ | 23/70 [00:05<00:10, 4.47it/s]\n 34%|███▍ | 24/70 [00:05<00:10, 4.47it/s]\n 36%|███▌ | 25/70 [00:05<00:10, 4.47it/s]\n 37%|███▋ | 26/70 [00:05<00:09, 4.47it/s]\n 39%|███▊ | 27/70 [00:06<00:09, 4.47it/s]\n 40%|████ | 28/70 [00:06<00:09, 4.47it/s]\n 41%|████▏ | 29/70 [00:06<00:09, 4.46it/s]\n 43%|████▎ | 30/70 [00:06<00:08, 4.47it/s]\n 44%|████▍ | 31/70 [00:06<00:08, 4.46it/s]\n 46%|████▌ | 32/70 [00:07<00:08, 4.47it/s]\n 47%|████▋ | 33/70 [00:07<00:08, 4.47it/s]\n 49%|████▊ | 34/70 [00:07<00:08, 4.47it/s]\n 50%|█████ | 35/70 [00:07<00:07, 4.47it/s]\n 51%|█████▏ | 36/70 [00:08<00:07, 4.47it/s]\n 53%|█████▎ | 37/70 [00:08<00:07, 4.47it/s]\n 54%|█████▍ | 38/70 [00:08<00:07, 4.47it/s]\n 56%|█████▌ | 39/70 [00:08<00:06, 4.46it/s]\n 57%|█████▋ | 40/70 [00:08<00:06, 4.46it/s]\n 59%|█████▊ | 41/70 [00:09<00:06, 4.46it/s]\n 60%|██████ | 42/70 [00:09<00:06, 4.46it/s]\n 61%|██████▏ | 43/70 [00:09<00:06, 4.46it/s]\n 63%|██████▎ | 44/70 [00:09<00:05, 4.46it/s]\n 64%|██████▍ | 45/70 [00:10<00:05, 4.46it/s]\n 66%|██████▌ | 46/70 [00:10<00:05, 4.46it/s]\n 67%|██████▋ | 47/70 [00:10<00:05, 4.46it/s]\n 69%|██████▊ | 48/70 [00:10<00:04, 4.46it/s]\n 70%|███████ | 49/70 [00:10<00:04, 4.46it/s]\n 71%|███████▏ | 50/70 [00:11<00:04, 4.46it/s]\n 73%|███████▎ | 51/70 [00:11<00:04, 4.46it/s]\n 74%|███████▍ | 52/70 [00:11<00:04, 4.46it/s]\n 76%|███████▌ | 53/70 [00:11<00:03, 4.46it/s]\n 77%|███████▋ | 54/70 [00:12<00:03, 4.46it/s]\n 79%|███████▊ | 55/70 [00:12<00:03, 4.46it/s]\n 80%|████████ | 56/70 [00:12<00:03, 4.46it/s]\n 81%|████████▏ | 57/70 [00:12<00:02, 4.46it/s]\n 83%|████████▎ | 58/70 [00:12<00:02, 4.45it/s]\n 84%|████████▍ | 59/70 [00:13<00:02, 4.46it/s]\n 86%|████████▌ | 60/70 [00:13<00:02, 4.46it/s]\n 87%|████████▋ | 61/70 [00:13<00:02, 4.46it/s]\n 89%|████████▊ | 62/70 [00:13<00:01, 4.46it/s]\n 90%|█████████ | 63/70 [00:14<00:01, 4.46it/s]\n 91%|█████████▏| 64/70 [00:14<00:01, 4.46it/s]\n 93%|█████████▎| 65/70 [00:14<00:01, 4.46it/s]\n 94%|█████████▍| 66/70 [00:14<00:00, 4.46it/s]\n 96%|█████████▌| 67/70 [00:15<00:00, 4.46it/s]\n 97%|█████████▋| 68/70 [00:15<00:00, 4.46it/s]\n 99%|█████████▊| 69/70 [00:15<00:00, 4.46it/s]\n100%|██████████| 70/70 [00:15<00:00, 4.46it/s]\n100%|██████████| 70/70 [00:15<00:00, 4.46it/s]\n 0%| | 0/21 [00:00<?, ?it/s]\n 5%|▍ | 1/21 [00:00<00:03, 5.75it/s]\n 10%|▉ | 2/21 [00:00<00:03, 5.70it/s]\n 14%|█▍ | 3/21 [00:00<00:03, 5.68it/s]\n 19%|█▉ | 4/21 [00:00<00:02, 5.68it/s]\n 24%|██▍ | 5/21 [00:00<00:02, 5.68it/s]\n 29%|██▊ | 6/21 [00:01<00:02, 5.68it/s]\n 33%|███▎ | 7/21 [00:01<00:02, 5.67it/s]\n 38%|███▊ | 8/21 [00:01<00:02, 5.67it/s]\n 43%|████▎ | 9/21 [00:01<00:02, 5.67it/s]\n 48%|████▊ | 10/21 [00:01<00:01, 5.66it/s]\n 52%|█████▏ | 11/21 [00:01<00:01, 5.66it/s]\n 57%|█████▋ | 12/21 [00:02<00:01, 5.66it/s]\n 62%|██████▏ | 13/21 [00:02<00:01, 5.66it/s]\n 67%|██████▋ | 14/21 [00:02<00:01, 5.66it/s]\n 71%|███████▏ | 15/21 [00:02<00:01, 5.67it/s]\n 76%|███████▌ | 16/21 [00:02<00:00, 5.66it/s]\n 81%|████████ | 17/21 [00:02<00:00, 5.66it/s]\n 86%|████████▌ | 18/21 [00:03<00:00, 5.66it/s]\n 90%|█████████ | 19/21 [00:03<00:00, 5.66it/s]\n 95%|█████████▌| 20/21 [00:03<00:00, 5.66it/s]\n100%|██████████| 21/21 [00:03<00:00, 5.67it/s]\n100%|██████████| 21/21 [00:03<00:00, 5.67it/s]",
"metrics": {
"predict_time": 21.227952,
"total_time": 21.225105
},
"output": [
"https://pbxt.replicate.delivery/0mvdto6ne008ZiAbZjS5BMnLhEWYeMfq4UZ4EdVYe7cUEuCHB/out-0.png"
],
"started_at": "2023-10-22T11:23:29.468158Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/ote4rtlbqthleftcvx3yzjs7k4",
"cancel": "https://api.replicate.com/v1/predictions/ote4rtlbqthleftcvx3yzjs7k4/cancel"
},
"version": "6e967109e2e554d5cd6a61891258e20eef7e68a1491ac8cd1328e19704e4b294"
}
Using seed: 25647
Prompt: in the style of <s0><s1>, portrait of a woman, standing in a solar power plant, work clothes, palm trees, cold and detached atmosphere, otherworldly, sportscar in the background, golden blazer, sky scrappers in the background, enigmatic, futuristic, sci-fi
txt2img mode
0%| | 0/70 [00:00<?, ?it/s]
1%|▏ | 1/70 [00:00<00:15, 4.50it/s]
3%|▎ | 2/70 [00:00<00:15, 4.49it/s]
4%|▍ | 3/70 [00:00<00:14, 4.48it/s]
6%|▌ | 4/70 [00:00<00:14, 4.47it/s]
7%|▋ | 5/70 [00:01<00:14, 4.47it/s]
9%|▊ | 6/70 [00:01<00:14, 4.48it/s]
10%|█ | 7/70 [00:01<00:14, 4.47it/s]
11%|█▏ | 8/70 [00:01<00:13, 4.47it/s]
13%|█▎ | 9/70 [00:02<00:13, 4.47it/s]
14%|█▍ | 10/70 [00:02<00:13, 4.47it/s]
16%|█▌ | 11/70 [00:02<00:13, 4.47it/s]
17%|█▋ | 12/70 [00:02<00:12, 4.47it/s]
19%|█▊ | 13/70 [00:02<00:12, 4.47it/s]
20%|██ | 14/70 [00:03<00:12, 4.47it/s]
21%|██▏ | 15/70 [00:03<00:12, 4.46it/s]
23%|██▎ | 16/70 [00:03<00:12, 4.46it/s]
24%|██▍ | 17/70 [00:03<00:11, 4.46it/s]
26%|██▌ | 18/70 [00:04<00:11, 4.46it/s]
27%|██▋ | 19/70 [00:04<00:11, 4.46it/s]
29%|██▊ | 20/70 [00:04<00:11, 4.46it/s]
30%|███ | 21/70 [00:04<00:10, 4.47it/s]
31%|███▏ | 22/70 [00:04<00:10, 4.47it/s]
33%|███▎ | 23/70 [00:05<00:10, 4.47it/s]
34%|███▍ | 24/70 [00:05<00:10, 4.47it/s]
36%|███▌ | 25/70 [00:05<00:10, 4.47it/s]
37%|███▋ | 26/70 [00:05<00:09, 4.47it/s]
39%|███▊ | 27/70 [00:06<00:09, 4.47it/s]
40%|████ | 28/70 [00:06<00:09, 4.47it/s]
41%|████▏ | 29/70 [00:06<00:09, 4.46it/s]
43%|████▎ | 30/70 [00:06<00:08, 4.47it/s]
44%|████▍ | 31/70 [00:06<00:08, 4.46it/s]
46%|████▌ | 32/70 [00:07<00:08, 4.47it/s]
47%|████▋ | 33/70 [00:07<00:08, 4.47it/s]
49%|████▊ | 34/70 [00:07<00:08, 4.47it/s]
50%|█████ | 35/70 [00:07<00:07, 4.47it/s]
51%|█████▏ | 36/70 [00:08<00:07, 4.47it/s]
53%|█████▎ | 37/70 [00:08<00:07, 4.47it/s]
54%|█████▍ | 38/70 [00:08<00:07, 4.47it/s]
56%|█████▌ | 39/70 [00:08<00:06, 4.46it/s]
57%|█████▋ | 40/70 [00:08<00:06, 4.46it/s]
59%|█████▊ | 41/70 [00:09<00:06, 4.46it/s]
60%|██████ | 42/70 [00:09<00:06, 4.46it/s]
61%|██████▏ | 43/70 [00:09<00:06, 4.46it/s]
63%|██████▎ | 44/70 [00:09<00:05, 4.46it/s]
64%|██████▍ | 45/70 [00:10<00:05, 4.46it/s]
66%|██████▌ | 46/70 [00:10<00:05, 4.46it/s]
67%|██████▋ | 47/70 [00:10<00:05, 4.46it/s]
69%|██████▊ | 48/70 [00:10<00:04, 4.46it/s]
70%|███████ | 49/70 [00:10<00:04, 4.46it/s]
71%|███████▏ | 50/70 [00:11<00:04, 4.46it/s]
73%|███████▎ | 51/70 [00:11<00:04, 4.46it/s]
74%|███████▍ | 52/70 [00:11<00:04, 4.46it/s]
76%|███████▌ | 53/70 [00:11<00:03, 4.46it/s]
77%|███████▋ | 54/70 [00:12<00:03, 4.46it/s]
79%|███████▊ | 55/70 [00:12<00:03, 4.46it/s]
80%|████████ | 56/70 [00:12<00:03, 4.46it/s]
81%|████████▏ | 57/70 [00:12<00:02, 4.46it/s]
83%|████████▎ | 58/70 [00:12<00:02, 4.45it/s]
84%|████████▍ | 59/70 [00:13<00:02, 4.46it/s]
86%|████████▌ | 60/70 [00:13<00:02, 4.46it/s]
87%|████████▋ | 61/70 [00:13<00:02, 4.46it/s]
89%|████████▊ | 62/70 [00:13<00:01, 4.46it/s]
90%|█████████ | 63/70 [00:14<00:01, 4.46it/s]
91%|█████████▏| 64/70 [00:14<00:01, 4.46it/s]
93%|█████████▎| 65/70 [00:14<00:01, 4.46it/s]
94%|█████████▍| 66/70 [00:14<00:00, 4.46it/s]
96%|█████████▌| 67/70 [00:15<00:00, 4.46it/s]
97%|█████████▋| 68/70 [00:15<00:00, 4.46it/s]
99%|█████████▊| 69/70 [00:15<00:00, 4.46it/s]
100%|██████████| 70/70 [00:15<00:00, 4.46it/s]
100%|██████████| 70/70 [00:15<00:00, 4.46it/s]
0%| | 0/21 [00:00<?, ?it/s]
5%|▍ | 1/21 [00:00<00:03, 5.75it/s]
10%|▉ | 2/21 [00:00<00:03, 5.70it/s]
14%|█▍ | 3/21 [00:00<00:03, 5.68it/s]
19%|█▉ | 4/21 [00:00<00:02, 5.68it/s]
24%|██▍ | 5/21 [00:00<00:02, 5.68it/s]
29%|██▊ | 6/21 [00:01<00:02, 5.68it/s]
33%|███▎ | 7/21 [00:01<00:02, 5.67it/s]
38%|███▊ | 8/21 [00:01<00:02, 5.67it/s]
43%|████▎ | 9/21 [00:01<00:02, 5.67it/s]
48%|████▊ | 10/21 [00:01<00:01, 5.66it/s]
52%|█████▏ | 11/21 [00:01<00:01, 5.66it/s]
57%|█████▋ | 12/21 [00:02<00:01, 5.66it/s]
62%|██████▏ | 13/21 [00:02<00:01, 5.66it/s]
67%|██████▋ | 14/21 [00:02<00:01, 5.66it/s]
71%|███████▏ | 15/21 [00:02<00:01, 5.67it/s]
76%|███████▌ | 16/21 [00:02<00:00, 5.66it/s]
81%|████████ | 17/21 [00:02<00:00, 5.66it/s]
86%|████████▌ | 18/21 [00:03<00:00, 5.66it/s]
90%|█████████ | 19/21 [00:03<00:00, 5.66it/s]
95%|█████████▌| 20/21 [00:03<00:00, 5.66it/s]
100%|██████████| 21/21 [00:03<00:00, 5.67it/s]
100%|██████████| 21/21 [00:03<00:00, 5.67it/s]