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.
fofr /sdxl-sonic-2:d9b22cdf
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 fofr/sdxl-sonic-2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"fofr/sdxl-sonic-2:d9b22cdf778d4ccaf2b6a84a06a2eaa754305703d46983e1a996fe1eabbfd26c",
{
input: {
width: 1536,
height: 768,
prompt: "A screenshot in the style of TOK, pixel art, 2d platform game, sharp, snowy mountain scene",
refine: "expert_ensemble_refiner",
scheduler: "K_EULER",
lora_scale: 0.6,
num_outputs: 4,
guidance_scale: 7.5,
apply_watermark: false,
high_noise_frac: 0.95,
negative_prompt: "soft, blurry",
prompt_strength: 0.8,
num_inference_steps: 50
}
}
);
console.log(output);
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 fofr/sdxl-sonic-2 using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"fofr/sdxl-sonic-2:d9b22cdf778d4ccaf2b6a84a06a2eaa754305703d46983e1a996fe1eabbfd26c",
input={
"width": 1536,
"height": 768,
"prompt": "A screenshot in the style of TOK, pixel art, 2d platform game, sharp, snowy mountain scene",
"refine": "expert_ensemble_refiner",
"scheduler": "K_EULER",
"lora_scale": 0.6,
"num_outputs": 4,
"guidance_scale": 7.5,
"apply_watermark": False,
"high_noise_frac": 0.95,
"negative_prompt": "soft, blurry",
"prompt_strength": 0.8,
"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 fofr/sdxl-sonic-2 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": "d9b22cdf778d4ccaf2b6a84a06a2eaa754305703d46983e1a996fe1eabbfd26c",
"input": {
"width": 1536,
"height": 768,
"prompt": "A screenshot in the style of TOK, pixel art, 2d platform game, sharp, snowy mountain scene",
"refine": "expert_ensemble_refiner",
"scheduler": "K_EULER",
"lora_scale": 0.6,
"num_outputs": 4,
"guidance_scale": 7.5,
"apply_watermark": false,
"high_noise_frac": 0.95,
"negative_prompt": "soft, blurry",
"prompt_strength": 0.8,
"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-08-08T21:27:13.322982Z",
"created_at": "2023-08-08T21:26:11.857929Z",
"data_removed": false,
"error": null,
"id": "kgpf7ltbxqm4vopm6da4ktvg5e",
"input": {
"width": 1536,
"height": 768,
"prompt": "A screenshot in the style of TOK, pixel art, 2d platform game, sharp, snowy mountain scene",
"refine": "expert_ensemble_refiner",
"scheduler": "K_EULER",
"lora_scale": 0.6,
"num_outputs": 4,
"guidance_scale": 7.5,
"apply_watermark": false,
"high_noise_frac": 0.95,
"negative_prompt": "soft, blurry",
"prompt_strength": 0.8,
"num_inference_steps": 50
},
"logs": "Using seed: 2561\nPrompt: A screenshot in the style of <s0><s1>, pixel art, 2d platform game, sharp, snowy mountain scene\ntxt2img mode\n 0%| | 0/47 [00:00<?, ?it/s]\n 2%|▏ | 1/47 [00:01<00:52, 1.15s/it]\n 4%|▍ | 2/47 [00:02<00:51, 1.15s/it]\n 6%|▋ | 3/47 [00:03<00:50, 1.15s/it]\n 9%|▊ | 4/47 [00:04<00:49, 1.15s/it]\n 11%|█ | 5/47 [00:05<00:48, 1.15s/it]\n 13%|█▎ | 6/47 [00:06<00:47, 1.15s/it]\n 15%|█▍ | 7/47 [00:08<00:46, 1.15s/it]\n 17%|█▋ | 8/47 [00:09<00:45, 1.15s/it]\n 19%|█▉ | 9/47 [00:10<00:43, 1.15s/it]\n 21%|██▏ | 10/47 [00:11<00:42, 1.15s/it]\n 23%|██▎ | 11/47 [00:12<00:41, 1.16s/it]\n 26%|██▌ | 12/47 [00:13<00:40, 1.16s/it]\n 28%|██▊ | 13/47 [00:15<00:39, 1.16s/it]\n 30%|██▉ | 14/47 [00:16<00:38, 1.16s/it]\n 32%|███▏ | 15/47 [00:17<00:36, 1.16s/it]\n 34%|███▍ | 16/47 [00:18<00:35, 1.16s/it]\n 36%|███▌ | 17/47 [00:19<00:34, 1.16s/it]\n 38%|███▊ | 18/47 [00:20<00:33, 1.16s/it]\n 40%|████ | 19/47 [00:21<00:32, 1.16s/it]\n 43%|████▎ | 20/47 [00:23<00:31, 1.16s/it]\n 45%|████▍ | 21/47 [00:24<00:30, 1.16s/it]\n 47%|████▋ | 22/47 [00:25<00:28, 1.16s/it]\n 49%|████▉ | 23/47 [00:26<00:27, 1.16s/it]\n 51%|█████ | 24/47 [00:27<00:26, 1.16s/it]\n 53%|█████▎ | 25/47 [00:28<00:25, 1.16s/it]\n 55%|█████▌ | 26/47 [00:30<00:24, 1.16s/it]\n 57%|█████▋ | 27/47 [00:31<00:23, 1.16s/it]\n 60%|█████▉ | 28/47 [00:32<00:21, 1.16s/it]\n 62%|██████▏ | 29/47 [00:33<00:20, 1.16s/it]\n 64%|██████▍ | 30/47 [00:34<00:19, 1.16s/it]\n 66%|██████▌ | 31/47 [00:35<00:18, 1.16s/it]\n 68%|██████▊ | 32/47 [00:36<00:17, 1.16s/it]\n 70%|███████ | 33/47 [00:38<00:16, 1.16s/it]\n 72%|███████▏ | 34/47 [00:39<00:15, 1.16s/it]\n 74%|███████▍ | 35/47 [00:40<00:13, 1.16s/it]\n 77%|███████▋ | 36/47 [00:41<00:12, 1.16s/it]\n 79%|███████▊ | 37/47 [00:42<00:11, 1.16s/it]\n 81%|████████ | 38/47 [00:43<00:10, 1.16s/it]\n 83%|████████▎ | 39/47 [00:45<00:09, 1.16s/it]\n 85%|████████▌ | 40/47 [00:46<00:08, 1.16s/it]\n 87%|████████▋ | 41/47 [00:47<00:06, 1.16s/it]\n 89%|████████▉ | 42/47 [00:48<00:05, 1.16s/it]\n 91%|█████████▏| 43/47 [00:49<00:04, 1.16s/it]\n 94%|█████████▎| 44/47 [00:50<00:03, 1.16s/it]\n 96%|█████████▌| 45/47 [00:52<00:02, 1.16s/it]\n 98%|█████████▊| 46/47 [00:53<00:01, 1.16s/it]\n100%|██████████| 47/47 [00:54<00:00, 1.16s/it]\n100%|██████████| 47/47 [00:54<00:00, 1.16s/it]\n 0%| | 0/3 [00:00<?, ?it/s]\n 33%|███▎ | 1/3 [00:00<00:01, 1.06it/s]\n 67%|██████▋ | 2/3 [00:01<00:00, 1.06it/s]\n100%|██████████| 3/3 [00:02<00:00, 1.06it/s]\n100%|██████████| 3/3 [00:02<00:00, 1.06it/s]",
"metrics": {
"predict_time": 61.493381,
"total_time": 61.465053
},
"output": [
"https://replicate.delivery/pbxt/50lNuvN23Wp4NJpTmz2uQOSLMgyk4QzjDEPNIZt6wgeXKDsIA/out-0.png",
"https://replicate.delivery/pbxt/6XffPzJYS4nrTkp3Feal2WkZiaKGUmACZPhevQV6Nc5DTZgFB/out-1.png",
"https://replicate.delivery/pbxt/Fd4cIu5xuZYfCSVMsDwYNK6loflyJcPVTX7T1l6sgAGwUGYRA/out-2.png",
"https://replicate.delivery/pbxt/KGJURfJEL1S4HC1fOqin0dqbKzRUp5lQrXpeZKHUgarjpMwiA/out-3.png"
],
"started_at": "2023-08-08T21:26:11.829601Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/kgpf7ltbxqm4vopm6da4ktvg5e",
"cancel": "https://api.replicate.com/v1/predictions/kgpf7ltbxqm4vopm6da4ktvg5e/cancel"
},
"version": "d9b22cdf778d4ccaf2b6a84a06a2eaa754305703d46983e1a996fe1eabbfd26c"
}
Using seed: 2561
Prompt: A screenshot in the style of <s0><s1>, pixel art, 2d platform game, sharp, snowy mountain scene
txt2img mode
0%| | 0/47 [00:00<?, ?it/s]
2%|▏ | 1/47 [00:01<00:52, 1.15s/it]
4%|▍ | 2/47 [00:02<00:51, 1.15s/it]
6%|▋ | 3/47 [00:03<00:50, 1.15s/it]
9%|▊ | 4/47 [00:04<00:49, 1.15s/it]
11%|█ | 5/47 [00:05<00:48, 1.15s/it]
13%|█▎ | 6/47 [00:06<00:47, 1.15s/it]
15%|█▍ | 7/47 [00:08<00:46, 1.15s/it]
17%|█▋ | 8/47 [00:09<00:45, 1.15s/it]
19%|█▉ | 9/47 [00:10<00:43, 1.15s/it]
21%|██▏ | 10/47 [00:11<00:42, 1.15s/it]
23%|██▎ | 11/47 [00:12<00:41, 1.16s/it]
26%|██▌ | 12/47 [00:13<00:40, 1.16s/it]
28%|██▊ | 13/47 [00:15<00:39, 1.16s/it]
30%|██▉ | 14/47 [00:16<00:38, 1.16s/it]
32%|███▏ | 15/47 [00:17<00:36, 1.16s/it]
34%|███▍ | 16/47 [00:18<00:35, 1.16s/it]
36%|███▌ | 17/47 [00:19<00:34, 1.16s/it]
38%|███▊ | 18/47 [00:20<00:33, 1.16s/it]
40%|████ | 19/47 [00:21<00:32, 1.16s/it]
43%|████▎ | 20/47 [00:23<00:31, 1.16s/it]
45%|████▍ | 21/47 [00:24<00:30, 1.16s/it]
47%|████▋ | 22/47 [00:25<00:28, 1.16s/it]
49%|████▉ | 23/47 [00:26<00:27, 1.16s/it]
51%|█████ | 24/47 [00:27<00:26, 1.16s/it]
53%|█████▎ | 25/47 [00:28<00:25, 1.16s/it]
55%|█████▌ | 26/47 [00:30<00:24, 1.16s/it]
57%|█████▋ | 27/47 [00:31<00:23, 1.16s/it]
60%|█████▉ | 28/47 [00:32<00:21, 1.16s/it]
62%|██████▏ | 29/47 [00:33<00:20, 1.16s/it]
64%|██████▍ | 30/47 [00:34<00:19, 1.16s/it]
66%|██████▌ | 31/47 [00:35<00:18, 1.16s/it]
68%|██████▊ | 32/47 [00:36<00:17, 1.16s/it]
70%|███████ | 33/47 [00:38<00:16, 1.16s/it]
72%|███████▏ | 34/47 [00:39<00:15, 1.16s/it]
74%|███████▍ | 35/47 [00:40<00:13, 1.16s/it]
77%|███████▋ | 36/47 [00:41<00:12, 1.16s/it]
79%|███████▊ | 37/47 [00:42<00:11, 1.16s/it]
81%|████████ | 38/47 [00:43<00:10, 1.16s/it]
83%|████████▎ | 39/47 [00:45<00:09, 1.16s/it]
85%|████████▌ | 40/47 [00:46<00:08, 1.16s/it]
87%|████████▋ | 41/47 [00:47<00:06, 1.16s/it]
89%|████████▉ | 42/47 [00:48<00:05, 1.16s/it]
91%|█████████▏| 43/47 [00:49<00:04, 1.16s/it]
94%|█████████▎| 44/47 [00:50<00:03, 1.16s/it]
96%|█████████▌| 45/47 [00:52<00:02, 1.16s/it]
98%|█████████▊| 46/47 [00:53<00:01, 1.16s/it]
100%|██████████| 47/47 [00:54<00:00, 1.16s/it]
100%|██████████| 47/47 [00:54<00:00, 1.16s/it]
0%| | 0/3 [00:00<?, ?it/s]
33%|███▎ | 1/3 [00:00<00:01, 1.06it/s]
67%|██████▋ | 2/3 [00:01<00:00, 1.06it/s]
100%|██████████| 3/3 [00:02<00:00, 1.06it/s]
100%|██████████| 3/3 [00:02<00:00, 1.06it/s]