You're looking at a specific version of this model. Jump to the model overview.
fofr /sticker-maker:3b2fc090
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/sticker-maker using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"fofr/sticker-maker:3b2fc090362c3c344456a32b62e4277e4c03e82f0e24c549fa8d01042218f87c",
{
input: {
steps: 20,
width: 1024,
height: 1024,
prompt: "pikachu, simple, clean",
upscale: true,
upscale_steps: 10,
negative_prompt: ""
}
}
);
// 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 fofr/sticker-maker using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"fofr/sticker-maker:3b2fc090362c3c344456a32b62e4277e4c03e82f0e24c549fa8d01042218f87c",
input={
"steps": 20,
"width": 1024,
"height": 1024,
"prompt": "pikachu, simple, clean",
"upscale": True,
"upscale_steps": 10,
"negative_prompt": ""
}
)
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/sticker-maker 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": "fofr/sticker-maker:3b2fc090362c3c344456a32b62e4277e4c03e82f0e24c549fa8d01042218f87c",
"input": {
"steps": 20,
"width": 1024,
"height": 1024,
"prompt": "pikachu, simple, clean",
"upscale": true,
"upscale_steps": 10,
"negative_prompt": ""
}
}' \
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": "2024-02-23T12:53:11.618948Z",
"created_at": "2024-02-23T12:52:48.049803Z",
"data_removed": false,
"error": null,
"id": "cmghfm3bsu3hw6op7enka26cie",
"input": {
"steps": 20,
"width": 1024,
"height": 1024,
"prompt": "pikachu, simple, clean",
"upscale": true,
"upscale_steps": 10
},
"logs": "Random seed set to: 3457628994\nChecking inputs\n====================================\nChecking weights\n✅ artificialguybr/StickersRedmond.safetensors\n✅ albedobaseXL_v13.safetensors\n✅ 4x-AnimeSharp.pth\n✅ RMBG-1.4/model.pth\n✅ dreamshaper_8.safetensors\n====================================\nRunning workflow\ngot prompt\nExecuting node 4, title: KSampler (Efficient), class type: KSampler (Efficient)\n 0%| | 0/20 [00:00<?, ?it/s]\n 5%|▌ | 1/20 [00:00<00:03, 4.92it/s]\n 10%|█ | 2/20 [00:00<00:03, 4.80it/s]\n 15%|█▌ | 3/20 [00:00<00:03, 4.75it/s]\n 20%|██ | 4/20 [00:00<00:03, 4.75it/s]\n 25%|██▌ | 5/20 [00:01<00:03, 4.77it/s]\n 30%|███ | 6/20 [00:01<00:02, 4.74it/s]\n 35%|███▌ | 7/20 [00:01<00:02, 4.72it/s]\n 40%|████ | 8/20 [00:01<00:02, 4.67it/s]\n 45%|████▌ | 9/20 [00:01<00:02, 4.63it/s]\n 50%|█████ | 10/20 [00:02<00:02, 4.61it/s]\n 55%|█████▌ | 11/20 [00:02<00:02, 4.49it/s]\n 60%|██████ | 12/20 [00:02<00:01, 4.54it/s]\n 65%|██████▌ | 13/20 [00:02<00:01, 4.56it/s]\n 70%|███████ | 14/20 [00:03<00:01, 4.59it/s]\n 75%|███████▌ | 15/20 [00:03<00:01, 4.58it/s]\n 80%|████████ | 16/20 [00:03<00:00, 4.60it/s]\n 85%|████████▌ | 17/20 [00:03<00:00, 4.61it/s]\n 90%|█████████ | 18/20 [00:03<00:00, 4.64it/s]\n 95%|█████████▌| 19/20 [00:04<00:00, 4.75it/s]\n100%|██████████| 20/20 [00:04<00:00, 4.92it/s]\n100%|██████████| 20/20 [00:04<00:00, 4.69it/s]\nExecuting node 11, title: Ultimate SD Upscale, class type: UltimateSDUpscale\nCanva size: 2048x2048\nImage size: 1024x1024\nScale factor: 2\nUpscaling iteration 1 with scale factor 2\nTile size: 512x512\nTiles amount: 16\nGrid: 4x4\nRedraw enabled: True\nSeams fix mode: NONE\n 0%| | 0/10 [00:00<?, ?it/s]\n 30%|███ | 3/10 [00:00<00:00, 25.13it/s]\n 60%|██████ | 6/10 [00:00<00:00, 23.14it/s]\n 90%|█████████ | 9/10 [00:00<00:00, 22.58it/s]\n100%|██████████| 10/10 [00:00<00:00, 22.78it/s]\n 0%| | 0/10 [00:00<?, ?it/s]\n 30%|███ | 3/10 [00:00<00:00, 24.95it/s]\n 60%|██████ | 6/10 [00:00<00:00, 22.68it/s]\n 90%|█████████ | 9/10 [00:00<00:00, 22.30it/s]\n100%|██████████| 10/10 [00:00<00:00, 22.55it/s]\n 0%| | 0/10 [00:00<?, ?it/s]\n 30%|███ | 3/10 [00:00<00:00, 25.28it/s]\n 60%|██████ | 6/10 [00:00<00:00, 22.57it/s]\n 90%|█████████ | 9/10 [00:00<00:00, 22.88it/s]\n100%|██████████| 10/10 [00:00<00:00, 22.93it/s]\n 0%| | 0/10 [00:00<?, ?it/s]\n 30%|███ | 3/10 [00:00<00:00, 24.94it/s]\n 60%|██████ | 6/10 [00:00<00:00, 23.34it/s]\n 90%|█████████ | 9/10 [00:00<00:00, 22.76it/s]\n100%|██████████| 10/10 [00:00<00:00, 22.95it/s]\n 0%| | 0/10 [00:00<?, ?it/s]\n 30%|███ | 3/10 [00:00<00:00, 25.44it/s]\n 60%|██████ | 6/10 [00:00<00:00, 23.36it/s]\n 90%|█████████ | 9/10 [00:00<00:00, 22.72it/s]\n100%|██████████| 10/10 [00:00<00:00, 22.97it/s]\n 0%| | 0/10 [00:00<?, ?it/s]\n 30%|███ | 3/10 [00:00<00:00, 25.29it/s]\n 60%|██████ | 6/10 [00:00<00:00, 23.33it/s]\n 90%|█████████ | 9/10 [00:00<00:00, 22.68it/s]\n100%|██████████| 10/10 [00:00<00:00, 22.92it/s]\n 0%| | 0/10 [00:00<?, ?it/s]\n 30%|███ | 3/10 [00:00<00:00, 25.44it/s]\n 60%|██████ | 6/10 [00:00<00:00, 23.19it/s]\n 90%|█████████ | 9/10 [00:00<00:00, 22.67it/s]\n100%|██████████| 10/10 [00:00<00:00, 22.92it/s]\n 0%| | 0/10 [00:00<?, ?it/s]\n 30%|███ | 3/10 [00:00<00:00, 25.42it/s]\n 60%|██████ | 6/10 [00:00<00:00, 23.31it/s]\n 90%|█████████ | 9/10 [00:00<00:00, 22.71it/s]\n100%|██████████| 10/10 [00:00<00:00, 22.96it/s]\n 0%| | 0/10 [00:00<?, ?it/s]\n 30%|███ | 3/10 [00:00<00:00, 25.41it/s]\n 60%|██████ | 6/10 [00:00<00:00, 23.35it/s]\n 90%|█████████ | 9/10 [00:00<00:00, 22.67it/s]\n100%|██████████| 10/10 [00:00<00:00, 22.93it/s]\n 0%| | 0/10 [00:00<?, ?it/s]\n 30%|███ | 3/10 [00:00<00:00, 25.39it/s]\n 60%|██████ | 6/10 [00:00<00:00, 23.26it/s]\n 90%|█████████ | 9/10 [00:00<00:00, 22.73it/s]\n100%|██████████| 10/10 [00:00<00:00, 22.96it/s]\n 0%| | 0/10 [00:00<?, ?it/s]\n 30%|███ | 3/10 [00:00<00:00, 25.47it/s]\n 60%|██████ | 6/10 [00:00<00:00, 23.36it/s]\n 90%|█████████ | 9/10 [00:00<00:00, 22.72it/s]\n100%|██████████| 10/10 [00:00<00:00, 22.94it/s]\n 0%| | 0/10 [00:00<?, ?it/s]\n 30%|███ | 3/10 [00:00<00:00, 25.44it/s]\n 60%|██████ | 6/10 [00:00<00:00, 23.27it/s]\n 90%|█████████ | 9/10 [00:00<00:00, 22.75it/s]\n100%|██████████| 10/10 [00:00<00:00, 22.95it/s]\n 0%| | 0/10 [00:00<?, ?it/s]\n 30%|███ | 3/10 [00:00<00:00, 25.47it/s]\n 60%|██████ | 6/10 [00:00<00:00, 23.30it/s]\n 90%|█████████ | 9/10 [00:00<00:00, 22.62it/s]\n100%|██████████| 10/10 [00:00<00:00, 22.91it/s]\n 0%| | 0/10 [00:00<?, ?it/s]\n 30%|███ | 3/10 [00:00<00:00, 25.17it/s]\n 60%|██████ | 6/10 [00:00<00:00, 23.28it/s]\n 90%|█████████ | 9/10 [00:00<00:00, 22.72it/s]\n100%|██████████| 10/10 [00:00<00:00, 22.86it/s]\n 0%| | 0/10 [00:00<?, ?it/s]\n 30%|███ | 3/10 [00:00<00:00, 25.13it/s]\n 60%|██████ | 6/10 [00:00<00:00, 23.21it/s]\n 90%|█████████ | 9/10 [00:00<00:00, 22.63it/s]\n100%|██████████| 10/10 [00:00<00:00, 22.85it/s]\n 0%| | 0/10 [00:00<?, ?it/s]\n 30%|███ | 3/10 [00:00<00:00, 25.27it/s]\n 60%|██████ | 6/10 [00:00<00:00, 23.07it/s]\n 90%|█████████ | 9/10 [00:00<00:00, 22.63it/s]\n100%|██████████| 10/10 [00:00<00:00, 22.82it/s]\nExecuting node 16, title: Save Image, class type: SaveImage\nExecuting node 17, title: 🧹BRIA RMBG, class type: BRIA_RMBG_Zho\nExecuting node 18, title: Save Image, class type: SaveImage\nPrompt executed in 21.24 seconds\noutputs: {'4': {'images': [{'filename': 'ComfyUI_temp_duimf_00001_.png', 'subfolder': '', 'type': 'temp'}]}, '16': {'images': [{'filename': 'ComfyUI_00001_.png', 'subfolder': '', 'type': 'output'}]}, '18': {'images': [{'filename': 'ComfyUI_00002_.png', 'subfolder': '', 'type': 'output'}]}}\n====================================\nContents of /tmp/outputs:\nComfyUI_00001_.png\nComfyUI_00002_.png",
"metrics": {
"predict_time": 23.504271,
"total_time": 23.569145
},
"output": [
"https://replicate.delivery/pbxt/o6Y0CfYIud3uXKVXm41rTK4jV87Hpe5UFX3wHN5yppC1ckZSA/ComfyUI_00001_.png",
"https://replicate.delivery/pbxt/IwuKQonhCnYkLx6t4tLvezFFLTfQG54ADBYpyVcWUll3ckZSA/ComfyUI_00002_.png"
],
"started_at": "2024-02-23T12:52:48.114677Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/cmghfm3bsu3hw6op7enka26cie",
"cancel": "https://api.replicate.com/v1/predictions/cmghfm3bsu3hw6op7enka26cie/cancel"
},
"version": "3b2fc090362c3c344456a32b62e4277e4c03e82f0e24c549fa8d01042218f87c"
}
Random seed set to: 3457628994
Checking inputs
====================================
Checking weights
✅ artificialguybr/StickersRedmond.safetensors
✅ albedobaseXL_v13.safetensors
✅ 4x-AnimeSharp.pth
✅ RMBG-1.4/model.pth
✅ dreamshaper_8.safetensors
====================================
Running workflow
got prompt
Executing node 4, title: KSampler (Efficient), class type: KSampler (Efficient)
0%| | 0/20 [00:00<?, ?it/s]
5%|▌ | 1/20 [00:00<00:03, 4.92it/s]
10%|█ | 2/20 [00:00<00:03, 4.80it/s]
15%|█▌ | 3/20 [00:00<00:03, 4.75it/s]
20%|██ | 4/20 [00:00<00:03, 4.75it/s]
25%|██▌ | 5/20 [00:01<00:03, 4.77it/s]
30%|███ | 6/20 [00:01<00:02, 4.74it/s]
35%|███▌ | 7/20 [00:01<00:02, 4.72it/s]
40%|████ | 8/20 [00:01<00:02, 4.67it/s]
45%|████▌ | 9/20 [00:01<00:02, 4.63it/s]
50%|█████ | 10/20 [00:02<00:02, 4.61it/s]
55%|█████▌ | 11/20 [00:02<00:02, 4.49it/s]
60%|██████ | 12/20 [00:02<00:01, 4.54it/s]
65%|██████▌ | 13/20 [00:02<00:01, 4.56it/s]
70%|███████ | 14/20 [00:03<00:01, 4.59it/s]
75%|███████▌ | 15/20 [00:03<00:01, 4.58it/s]
80%|████████ | 16/20 [00:03<00:00, 4.60it/s]
85%|████████▌ | 17/20 [00:03<00:00, 4.61it/s]
90%|█████████ | 18/20 [00:03<00:00, 4.64it/s]
95%|█████████▌| 19/20 [00:04<00:00, 4.75it/s]
100%|██████████| 20/20 [00:04<00:00, 4.92it/s]
100%|██████████| 20/20 [00:04<00:00, 4.69it/s]
Executing node 11, title: Ultimate SD Upscale, class type: UltimateSDUpscale
Canva size: 2048x2048
Image size: 1024x1024
Scale factor: 2
Upscaling iteration 1 with scale factor 2
Tile size: 512x512
Tiles amount: 16
Grid: 4x4
Redraw enabled: True
Seams fix mode: NONE
0%| | 0/10 [00:00<?, ?it/s]
30%|███ | 3/10 [00:00<00:00, 25.13it/s]
60%|██████ | 6/10 [00:00<00:00, 23.14it/s]
90%|█████████ | 9/10 [00:00<00:00, 22.58it/s]
100%|██████████| 10/10 [00:00<00:00, 22.78it/s]
0%| | 0/10 [00:00<?, ?it/s]
30%|███ | 3/10 [00:00<00:00, 24.95it/s]
60%|██████ | 6/10 [00:00<00:00, 22.68it/s]
90%|█████████ | 9/10 [00:00<00:00, 22.30it/s]
100%|██████████| 10/10 [00:00<00:00, 22.55it/s]
0%| | 0/10 [00:00<?, ?it/s]
30%|███ | 3/10 [00:00<00:00, 25.28it/s]
60%|██████ | 6/10 [00:00<00:00, 22.57it/s]
90%|█████████ | 9/10 [00:00<00:00, 22.88it/s]
100%|██████████| 10/10 [00:00<00:00, 22.93it/s]
0%| | 0/10 [00:00<?, ?it/s]
30%|███ | 3/10 [00:00<00:00, 24.94it/s]
60%|██████ | 6/10 [00:00<00:00, 23.34it/s]
90%|█████████ | 9/10 [00:00<00:00, 22.76it/s]
100%|██████████| 10/10 [00:00<00:00, 22.95it/s]
0%| | 0/10 [00:00<?, ?it/s]
30%|███ | 3/10 [00:00<00:00, 25.44it/s]
60%|██████ | 6/10 [00:00<00:00, 23.36it/s]
90%|█████████ | 9/10 [00:00<00:00, 22.72it/s]
100%|██████████| 10/10 [00:00<00:00, 22.97it/s]
0%| | 0/10 [00:00<?, ?it/s]
30%|███ | 3/10 [00:00<00:00, 25.29it/s]
60%|██████ | 6/10 [00:00<00:00, 23.33it/s]
90%|█████████ | 9/10 [00:00<00:00, 22.68it/s]
100%|██████████| 10/10 [00:00<00:00, 22.92it/s]
0%| | 0/10 [00:00<?, ?it/s]
30%|███ | 3/10 [00:00<00:00, 25.44it/s]
60%|██████ | 6/10 [00:00<00:00, 23.19it/s]
90%|█████████ | 9/10 [00:00<00:00, 22.67it/s]
100%|██████████| 10/10 [00:00<00:00, 22.92it/s]
0%| | 0/10 [00:00<?, ?it/s]
30%|███ | 3/10 [00:00<00:00, 25.42it/s]
60%|██████ | 6/10 [00:00<00:00, 23.31it/s]
90%|█████████ | 9/10 [00:00<00:00, 22.71it/s]
100%|██████████| 10/10 [00:00<00:00, 22.96it/s]
0%| | 0/10 [00:00<?, ?it/s]
30%|███ | 3/10 [00:00<00:00, 25.41it/s]
60%|██████ | 6/10 [00:00<00:00, 23.35it/s]
90%|█████████ | 9/10 [00:00<00:00, 22.67it/s]
100%|██████████| 10/10 [00:00<00:00, 22.93it/s]
0%| | 0/10 [00:00<?, ?it/s]
30%|███ | 3/10 [00:00<00:00, 25.39it/s]
60%|██████ | 6/10 [00:00<00:00, 23.26it/s]
90%|█████████ | 9/10 [00:00<00:00, 22.73it/s]
100%|██████████| 10/10 [00:00<00:00, 22.96it/s]
0%| | 0/10 [00:00<?, ?it/s]
30%|███ | 3/10 [00:00<00:00, 25.47it/s]
60%|██████ | 6/10 [00:00<00:00, 23.36it/s]
90%|█████████ | 9/10 [00:00<00:00, 22.72it/s]
100%|██████████| 10/10 [00:00<00:00, 22.94it/s]
0%| | 0/10 [00:00<?, ?it/s]
30%|███ | 3/10 [00:00<00:00, 25.44it/s]
60%|██████ | 6/10 [00:00<00:00, 23.27it/s]
90%|█████████ | 9/10 [00:00<00:00, 22.75it/s]
100%|██████████| 10/10 [00:00<00:00, 22.95it/s]
0%| | 0/10 [00:00<?, ?it/s]
30%|███ | 3/10 [00:00<00:00, 25.47it/s]
60%|██████ | 6/10 [00:00<00:00, 23.30it/s]
90%|█████████ | 9/10 [00:00<00:00, 22.62it/s]
100%|██████████| 10/10 [00:00<00:00, 22.91it/s]
0%| | 0/10 [00:00<?, ?it/s]
30%|███ | 3/10 [00:00<00:00, 25.17it/s]
60%|██████ | 6/10 [00:00<00:00, 23.28it/s]
90%|█████████ | 9/10 [00:00<00:00, 22.72it/s]
100%|██████████| 10/10 [00:00<00:00, 22.86it/s]
0%| | 0/10 [00:00<?, ?it/s]
30%|███ | 3/10 [00:00<00:00, 25.13it/s]
60%|██████ | 6/10 [00:00<00:00, 23.21it/s]
90%|█████████ | 9/10 [00:00<00:00, 22.63it/s]
100%|██████████| 10/10 [00:00<00:00, 22.85it/s]
0%| | 0/10 [00:00<?, ?it/s]
30%|███ | 3/10 [00:00<00:00, 25.27it/s]
60%|██████ | 6/10 [00:00<00:00, 23.07it/s]
90%|█████████ | 9/10 [00:00<00:00, 22.63it/s]
100%|██████████| 10/10 [00:00<00:00, 22.82it/s]
Executing node 16, title: Save Image, class type: SaveImage
Executing node 17, title: 🧹BRIA RMBG, class type: BRIA_RMBG_Zho
Executing node 18, title: Save Image, class type: SaveImage
Prompt executed in 21.24 seconds
outputs: {'4': {'images': [{'filename': 'ComfyUI_temp_duimf_00001_.png', 'subfolder': '', 'type': 'temp'}]}, '16': {'images': [{'filename': 'ComfyUI_00001_.png', 'subfolder': '', 'type': 'output'}]}, '18': {'images': [{'filename': 'ComfyUI_00002_.png', 'subfolder': '', 'type': 'output'}]}}
====================================
Contents of /tmp/outputs:
ComfyUI_00001_.png
ComfyUI_00002_.png