You're looking at a specific version of this model. Jump to the model overview.
nandycc /sdxl-mascot-avatars:f0f8a157
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 nandycc/sdxl-mascot-avatars using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"nandycc/sdxl-mascot-avatars:f0f8a1578f4e57da2090b1846a3c026bd75d38abd969e1d4788b07f203966294",
{
input: {
width: 1024,
height: 1024,
prompt: "In the style of TOK, Cute police dog",
refine: "no_refiner",
scheduler: "K_EULER",
lora_scale: 0.6,
num_outputs: 1,
guidance_scale: 7.5,
apply_watermark: true,
high_noise_frac: 0.8,
negative_prompt: "",
prompt_strength: 0.8,
num_inference_steps: 26
}
}
);
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 nandycc/sdxl-mascot-avatars using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"nandycc/sdxl-mascot-avatars:f0f8a1578f4e57da2090b1846a3c026bd75d38abd969e1d4788b07f203966294",
input={
"width": 1024,
"height": 1024,
"prompt": "In the style of TOK, Cute police dog",
"refine": "no_refiner",
"scheduler": "K_EULER",
"lora_scale": 0.6,
"num_outputs": 1,
"guidance_scale": 7.5,
"apply_watermark": True,
"high_noise_frac": 0.8,
"negative_prompt": "",
"prompt_strength": 0.8,
"num_inference_steps": 26
}
)
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 nandycc/sdxl-mascot-avatars 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": "f0f8a1578f4e57da2090b1846a3c026bd75d38abd969e1d4788b07f203966294",
"input": {
"width": 1024,
"height": 1024,
"prompt": "In the style of TOK, Cute police dog",
"refine": "no_refiner",
"scheduler": "K_EULER",
"lora_scale": 0.6,
"num_outputs": 1,
"guidance_scale": 7.5,
"apply_watermark": true,
"high_noise_frac": 0.8,
"negative_prompt": "",
"prompt_strength": 0.8,
"num_inference_steps": 26
}
}' \
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-09-27T12:09:43.723926Z",
"created_at": "2023-09-27T12:09:34.931340Z",
"data_removed": false,
"error": null,
"id": "6cj36ytbc2b3jbghudm23vfszi",
"input": {
"width": 1024,
"height": 1024,
"prompt": "In the style of TOK, Cute police dog",
"refine": "no_refiner",
"scheduler": "K_EULER",
"lora_scale": 0.6,
"num_outputs": 1,
"guidance_scale": 7.5,
"apply_watermark": true,
"high_noise_frac": 0.8,
"negative_prompt": "",
"prompt_strength": 0.8,
"num_inference_steps": 26
},
"logs": "Using seed: 4144\nPrompt: In the style of <s0><s1>, Cute police dog\ntxt2img mode\n 0%| | 0/26 [00:00<?, ?it/s]\n 4%|▍ | 1/26 [00:00<00:06, 3.74it/s]\n 8%|▊ | 2/26 [00:00<00:06, 3.72it/s]\n 12%|█▏ | 3/26 [00:00<00:06, 3.71it/s]\n 15%|█▌ | 4/26 [00:01<00:05, 3.70it/s]\n 19%|█▉ | 5/26 [00:01<00:05, 3.70it/s]\n 23%|██▎ | 6/26 [00:01<00:05, 3.70it/s]\n 27%|██▋ | 7/26 [00:01<00:05, 3.70it/s]\n 31%|███ | 8/26 [00:02<00:04, 3.69it/s]\n 35%|███▍ | 9/26 [00:02<00:04, 3.70it/s]\n 38%|███▊ | 10/26 [00:02<00:04, 3.70it/s]\n 42%|████▏ | 11/26 [00:02<00:04, 3.70it/s]\n 46%|████▌ | 12/26 [00:03<00:03, 3.71it/s]\n 50%|█████ | 13/26 [00:03<00:03, 3.71it/s]\n 54%|█████▍ | 14/26 [00:03<00:03, 3.71it/s]\n 58%|█████▊ | 15/26 [00:04<00:02, 3.71it/s]\n 62%|██████▏ | 16/26 [00:04<00:02, 3.71it/s]\n 65%|██████▌ | 17/26 [00:04<00:02, 3.71it/s]\n 69%|██████▉ | 18/26 [00:04<00:02, 3.70it/s]\n 73%|███████▎ | 19/26 [00:05<00:01, 3.71it/s]\n 77%|███████▋ | 20/26 [00:05<00:01, 3.71it/s]\n 81%|████████ | 21/26 [00:05<00:01, 3.71it/s]\n 85%|████████▍ | 22/26 [00:05<00:01, 3.70it/s]\n 88%|████████▊ | 23/26 [00:06<00:00, 3.71it/s]\n 92%|█████████▏| 24/26 [00:06<00:00, 3.71it/s]\n 96%|█████████▌| 25/26 [00:06<00:00, 3.71it/s]\n100%|██████████| 26/26 [00:07<00:00, 3.70it/s]\n100%|██████████| 26/26 [00:07<00:00, 3.71it/s]",
"metrics": {
"predict_time": 8.796761,
"total_time": 8.792586
},
"output": [
"https://pbxt.replicate.delivery/8e3k5FLbGiw2bankhv6hI4gimHk6d3SuMEzRFqg7xnSDbO0IA/out-0.png"
],
"started_at": "2023-09-27T12:09:34.927165Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/6cj36ytbc2b3jbghudm23vfszi",
"cancel": "https://api.replicate.com/v1/predictions/6cj36ytbc2b3jbghudm23vfszi/cancel"
},
"version": "f0f8a1578f4e57da2090b1846a3c026bd75d38abd969e1d4788b07f203966294"
}
Using seed: 4144
Prompt: In the style of <s0><s1>, Cute police dog
txt2img mode
0%| | 0/26 [00:00<?, ?it/s]
4%|▍ | 1/26 [00:00<00:06, 3.74it/s]
8%|▊ | 2/26 [00:00<00:06, 3.72it/s]
12%|█▏ | 3/26 [00:00<00:06, 3.71it/s]
15%|█▌ | 4/26 [00:01<00:05, 3.70it/s]
19%|█▉ | 5/26 [00:01<00:05, 3.70it/s]
23%|██▎ | 6/26 [00:01<00:05, 3.70it/s]
27%|██▋ | 7/26 [00:01<00:05, 3.70it/s]
31%|███ | 8/26 [00:02<00:04, 3.69it/s]
35%|███▍ | 9/26 [00:02<00:04, 3.70it/s]
38%|███▊ | 10/26 [00:02<00:04, 3.70it/s]
42%|████▏ | 11/26 [00:02<00:04, 3.70it/s]
46%|████▌ | 12/26 [00:03<00:03, 3.71it/s]
50%|█████ | 13/26 [00:03<00:03, 3.71it/s]
54%|█████▍ | 14/26 [00:03<00:03, 3.71it/s]
58%|█████▊ | 15/26 [00:04<00:02, 3.71it/s]
62%|██████▏ | 16/26 [00:04<00:02, 3.71it/s]
65%|██████▌ | 17/26 [00:04<00:02, 3.71it/s]
69%|██████▉ | 18/26 [00:04<00:02, 3.70it/s]
73%|███████▎ | 19/26 [00:05<00:01, 3.71it/s]
77%|███████▋ | 20/26 [00:05<00:01, 3.71it/s]
81%|████████ | 21/26 [00:05<00:01, 3.71it/s]
85%|████████▍ | 22/26 [00:05<00:01, 3.70it/s]
88%|████████▊ | 23/26 [00:06<00:00, 3.71it/s]
92%|█████████▏| 24/26 [00:06<00:00, 3.71it/s]
96%|█████████▌| 25/26 [00:06<00:00, 3.71it/s]
100%|██████████| 26/26 [00:07<00:00, 3.70it/s]
100%|██████████| 26/26 [00:07<00:00, 3.71it/s]