Readme
This model doesn't have a readme.
(Updated 1 year, 2 months ago)
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 vectradmin/sdxl-v-transparent using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"vectradmin/sdxl-v-transparent:cbef51acc100f152961da0cfe5a7042897384967150985c6df38da0ead21d00d",
{
input: {
ping: false,
seed: -1,
steps: 25,
width: 1024,
height: 768,
prompt: "a tiger head, logo icon, logo, icon, flat graphic style, clipart, on a white background, subject-background isolation, vector graphics, flat design, simple design, sharp, color, symmetrical artwork, 16k, best quality, simplicity, clean",
num_samples: 1,
guidance_scale: 3.5,
negative_prompt: "Illustration, details, icon, gradient, shadow, words, name, deformed iris, deformed pupils, gaussian, noise, worst quality, lowres, oversaturated, undersaturated, overexposed, underexposed, grayscale, bw, bad photo, bad photography, bad art, blur, blurry, grainy, morbid, ugly, asymmetrical, mutated, malformed, mutilated, poorly lit, bad shadow, draft, cropped out of frame, cut off, censored, jpeg artifacts, out of focus, glitch, duplicate, pixelated, soft focus, color fringing, overprocessed, oversharpened\n"
}
}
);
// 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 vectradmin/sdxl-v-transparent using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"vectradmin/sdxl-v-transparent:cbef51acc100f152961da0cfe5a7042897384967150985c6df38da0ead21d00d",
input={
"ping": False,
"seed": -1,
"steps": 25,
"width": 1024,
"height": 768,
"prompt": "a tiger head, logo icon, logo, icon, flat graphic style, clipart, on a white background, subject-background isolation, vector graphics, flat design, simple design, sharp, color, symmetrical artwork, 16k, best quality, simplicity, clean",
"num_samples": 1,
"guidance_scale": 3.5,
"negative_prompt": "Illustration, details, icon, gradient, shadow, words, name, deformed iris, deformed pupils, gaussian, noise, worst quality, lowres, oversaturated, undersaturated, overexposed, underexposed, grayscale, bw, bad photo, bad photography, bad art, blur, blurry, grainy, morbid, ugly, asymmetrical, mutated, malformed, mutilated, poorly lit, bad shadow, draft, cropped out of frame, cut off, censored, jpeg artifacts, out of focus, glitch, duplicate, pixelated, soft focus, color fringing, overprocessed, oversharpened\n"
}
)
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 vectradmin/sdxl-v-transparent 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": "vectradmin/sdxl-v-transparent:cbef51acc100f152961da0cfe5a7042897384967150985c6df38da0ead21d00d",
"input": {
"ping": false,
"seed": -1,
"steps": 25,
"width": 1024,
"height": 768,
"prompt": "a tiger head, logo icon, logo, icon, flat graphic style, clipart, on a white background, subject-background isolation, vector graphics, flat design, simple design, sharp, color, symmetrical artwork, 16k, best quality, simplicity, clean",
"num_samples": 1,
"guidance_scale": 3.5,
"negative_prompt": "Illustration, details, icon, gradient, shadow, words, name, deformed iris, deformed pupils, gaussian, noise, worst quality, lowres, oversaturated, undersaturated, overexposed, underexposed, grayscale, bw, bad photo, bad photography, bad art, blur, blurry, grainy, morbid, ugly, asymmetrical, mutated, malformed, mutilated, poorly lit, bad shadow, draft, cropped out of frame, cut off, censored, jpeg artifacts, out of focus, glitch, duplicate, pixelated, soft focus, color fringing, overprocessed, oversharpened\\n"
}
}' \
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
{
"completed_at": "2024-03-26T02:48:22.431900Z",
"created_at": "2024-03-26T02:46:35.127129Z",
"data_removed": false,
"error": null,
"id": "s4yqg63b5xmewhordagibhetnm",
"input": {
"seed": -1,
"steps": 25,
"width": 1024,
"height": 768,
"prompt": "a tiger head, logo icon, logo, icon, flat graphic style, clipart, on a white background, subject-background isolation, vector graphics, flat design, simple design, sharp, color, symmetrical artwork, 16k, best quality, simplicity, clean",
"num_samples": 1,
"guidance_scale": 3.5,
"negative_prompt": "Illustration, details, icon, gradient, shadow, words, name, deformed iris, deformed pupils, gaussian, noise, worst quality, lowres, oversaturated, undersaturated, overexposed, underexposed, grayscale, bw, bad photo, bad photography, bad art, blur, blurry, grainy, morbid, ugly, asymmetrical, mutated, malformed, mutilated, poorly lit, bad shadow, draft, cropped out of frame, cut off, censored, jpeg artifacts, out of focus, glitch, duplicate, pixelated, soft focus, color fringing, overprocessed, oversharpened\n"
},
"logs": "args: {'prompt': 'a tiger head, logo icon, logo, icon, flat graphic style, clipart, on a white background, subject-background isolation, vector graphics, flat design, simple design, sharp, color, symmetrical artwork, 16k, best quality, simplicity, clean', 'height': 768, 'width': 1024, 'negative_prompt': 'Illustration, details, icon, gradient, shadow, words, name, deformed iris, deformed pupils, gaussian, noise, worst quality, lowres, oversaturated, undersaturated, overexposed, underexposed, grayscale, bw, bad photo, bad photography, bad art, blur, blurry, grainy, morbid, ugly, asymmetrical, mutated, malformed, mutilated, poorly lit, bad shadow, draft, cropped out of frame, cut off, censored, jpeg artifacts, out of focus, glitch, duplicate, pixelated, soft focus, color fringing, overprocessed, oversharpened\\n', 'guidance_scale': 3.5, 'num_inference_steps': 25, 'num_images_per_prompt': 1, 'original_size': (3072, 4096), 'target_size': (768, 1024), 'negative_original_size': (384, 512), 'negative_target_size': (384, 512)}\n 0%| | 0/25 [00:00<?, ?it/s]\n 4%|▍ | 1/25 [00:00<00:10, 2.39it/s]\n 12%|█▏ | 3/25 [00:00<00:04, 5.19it/s]\n 16%|█▌ | 4/25 [00:00<00:03, 5.61it/s]\n 20%|██ | 5/25 [00:00<00:03, 5.91it/s]\n 24%|██▍ | 6/25 [00:01<00:03, 6.12it/s]\n 28%|██▊ | 7/25 [00:01<00:02, 6.27it/s]\n 32%|███▏ | 8/25 [00:01<00:02, 6.36it/s]\n 36%|███▌ | 9/25 [00:01<00:02, 6.44it/s]\n 40%|████ | 10/25 [00:01<00:02, 6.50it/s]\n 44%|████▍ | 11/25 [00:01<00:02, 6.54it/s]\n 48%|████▊ | 12/25 [00:02<00:01, 6.57it/s]\n 52%|█████▏ | 13/25 [00:02<00:01, 6.60it/s]\n 56%|█████▌ | 14/25 [00:02<00:01, 6.62it/s]\n 60%|██████ | 15/25 [00:02<00:01, 6.63it/s]\n 64%|██████▍ | 16/25 [00:02<00:01, 6.63it/s]\n 68%|██████▊ | 17/25 [00:02<00:01, 6.63it/s]\n 72%|███████▏ | 18/25 [00:02<00:01, 6.63it/s]\n 76%|███████▌ | 19/25 [00:03<00:00, 6.63it/s]\n 80%|████████ | 20/25 [00:03<00:00, 6.62it/s]\n 84%|████████▍ | 21/25 [00:03<00:00, 6.63it/s]\n 88%|████████▊ | 22/25 [00:03<00:00, 6.64it/s]\n 92%|█████████▏| 23/25 [00:03<00:00, 6.64it/s]\n 96%|█████████▌| 24/25 [00:03<00:00, 6.63it/s]\n100%|██████████| 25/25 [00:03<00:00, 6.62it/s]\n100%|██████████| 25/25 [00:03<00:00, 6.31it/s]\n 0%| | 0/8 [00:00<?, ?it/s]\n 12%|█▎ | 1/8 [00:00<00:01, 3.98it/s]\n 25%|██▌ | 2/8 [00:00<00:01, 4.82it/s]\n 38%|███▊ | 3/8 [00:00<00:00, 5.45it/s]\n 50%|█████ | 4/8 [00:00<00:00, 6.59it/s]\n 62%|██████▎ | 5/8 [00:00<00:00, 6.91it/s]\n 75%|███████▌ | 6/8 [00:00<00:00, 7.13it/s]\n 88%|████████▊ | 7/8 [00:01<00:00, 7.22it/s]\n100%|██████████| 8/8 [00:01<00:00, 7.14it/s]\n100%|██████████| 8/8 [00:01<00:00, 6.51it/s]",
"metrics": {
"predict_time": 6.783072,
"total_time": 107.304771
},
"output": [
"https://replicate.delivery/pbxt/HEVUvfuWf5rmckfD2frVF4328kQfnFFpceeeo4cQrHMC1leHlA/0000.png"
],
"started_at": "2024-03-26T02:48:15.648828Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/s4yqg63b5xmewhordagibhetnm",
"cancel": "https://api.replicate.com/v1/predictions/s4yqg63b5xmewhordagibhetnm/cancel"
},
"version": "0281ede829a7b3dbc2efe522a204c86d6257c5e9c8ea3897f8201dc17961fdc3"
}
args: {'prompt': 'a tiger head, logo icon, logo, icon, flat graphic style, clipart, on a white background, subject-background isolation, vector graphics, flat design, simple design, sharp, color, symmetrical artwork, 16k, best quality, simplicity, clean', 'height': 768, 'width': 1024, 'negative_prompt': 'Illustration, details, icon, gradient, shadow, words, name, deformed iris, deformed pupils, gaussian, noise, worst quality, lowres, oversaturated, undersaturated, overexposed, underexposed, grayscale, bw, bad photo, bad photography, bad art, blur, blurry, grainy, morbid, ugly, asymmetrical, mutated, malformed, mutilated, poorly lit, bad shadow, draft, cropped out of frame, cut off, censored, jpeg artifacts, out of focus, glitch, duplicate, pixelated, soft focus, color fringing, overprocessed, oversharpened\n', 'guidance_scale': 3.5, 'num_inference_steps': 25, 'num_images_per_prompt': 1, 'original_size': (3072, 4096), 'target_size': (768, 1024), 'negative_original_size': (384, 512), 'negative_target_size': (384, 512)}
0%| | 0/25 [00:00<?, ?it/s]
4%|▍ | 1/25 [00:00<00:10, 2.39it/s]
12%|█▏ | 3/25 [00:00<00:04, 5.19it/s]
16%|█▌ | 4/25 [00:00<00:03, 5.61it/s]
20%|██ | 5/25 [00:00<00:03, 5.91it/s]
24%|██▍ | 6/25 [00:01<00:03, 6.12it/s]
28%|██▊ | 7/25 [00:01<00:02, 6.27it/s]
32%|███▏ | 8/25 [00:01<00:02, 6.36it/s]
36%|███▌ | 9/25 [00:01<00:02, 6.44it/s]
40%|████ | 10/25 [00:01<00:02, 6.50it/s]
44%|████▍ | 11/25 [00:01<00:02, 6.54it/s]
48%|████▊ | 12/25 [00:02<00:01, 6.57it/s]
52%|█████▏ | 13/25 [00:02<00:01, 6.60it/s]
56%|█████▌ | 14/25 [00:02<00:01, 6.62it/s]
60%|██████ | 15/25 [00:02<00:01, 6.63it/s]
64%|██████▍ | 16/25 [00:02<00:01, 6.63it/s]
68%|██████▊ | 17/25 [00:02<00:01, 6.63it/s]
72%|███████▏ | 18/25 [00:02<00:01, 6.63it/s]
76%|███████▌ | 19/25 [00:03<00:00, 6.63it/s]
80%|████████ | 20/25 [00:03<00:00, 6.62it/s]
84%|████████▍ | 21/25 [00:03<00:00, 6.63it/s]
88%|████████▊ | 22/25 [00:03<00:00, 6.64it/s]
92%|█████████▏| 23/25 [00:03<00:00, 6.64it/s]
96%|█████████▌| 24/25 [00:03<00:00, 6.63it/s]
100%|██████████| 25/25 [00:03<00:00, 6.62it/s]
100%|██████████| 25/25 [00:03<00:00, 6.31it/s]
0%| | 0/8 [00:00<?, ?it/s]
12%|█▎ | 1/8 [00:00<00:01, 3.98it/s]
25%|██▌ | 2/8 [00:00<00:01, 4.82it/s]
38%|███▊ | 3/8 [00:00<00:00, 5.45it/s]
50%|█████ | 4/8 [00:00<00:00, 6.59it/s]
62%|██████▎ | 5/8 [00:00<00:00, 6.91it/s]
75%|███████▌ | 6/8 [00:00<00:00, 7.13it/s]
88%|████████▊ | 7/8 [00:01<00:00, 7.22it/s]
100%|██████████| 8/8 [00:01<00:00, 7.14it/s]
100%|██████████| 8/8 [00:01<00:00, 6.51it/s]
This output was created using a different version of the model, vectradmin/sdxl-v-transparent:0281ede8.
This model costs approximately $0.0034 to run on Replicate, or 294 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.
This model runs on Nvidia L40S GPU hardware. Predictions typically complete within 4 seconds. The predict time for this model varies significantly based on the inputs.
This model doesn't have a readme.
This model is cold. You'll get a fast response if the model is warm and already running, and a slower response if the model is cold and starting up.
args: {'prompt': 'a tiger head, logo icon, logo, icon, flat graphic style, clipart, on a white background, subject-background isolation, vector graphics, flat design, simple design, sharp, color, symmetrical artwork, 16k, best quality, simplicity, clean', 'height': 768, 'width': 1024, 'negative_prompt': 'Illustration, details, icon, gradient, shadow, words, name, deformed iris, deformed pupils, gaussian, noise, worst quality, lowres, oversaturated, undersaturated, overexposed, underexposed, grayscale, bw, bad photo, bad photography, bad art, blur, blurry, grainy, morbid, ugly, asymmetrical, mutated, malformed, mutilated, poorly lit, bad shadow, draft, cropped out of frame, cut off, censored, jpeg artifacts, out of focus, glitch, duplicate, pixelated, soft focus, color fringing, overprocessed, oversharpened\n', 'guidance_scale': 3.5, 'num_inference_steps': 25, 'num_images_per_prompt': 1, 'original_size': (3072, 4096), 'target_size': (768, 1024), 'negative_original_size': (384, 512), 'negative_target_size': (384, 512)}
0%| | 0/25 [00:00<?, ?it/s]
4%|▍ | 1/25 [00:00<00:10, 2.39it/s]
12%|█▏ | 3/25 [00:00<00:04, 5.19it/s]
16%|█▌ | 4/25 [00:00<00:03, 5.61it/s]
20%|██ | 5/25 [00:00<00:03, 5.91it/s]
24%|██▍ | 6/25 [00:01<00:03, 6.12it/s]
28%|██▊ | 7/25 [00:01<00:02, 6.27it/s]
32%|███▏ | 8/25 [00:01<00:02, 6.36it/s]
36%|███▌ | 9/25 [00:01<00:02, 6.44it/s]
40%|████ | 10/25 [00:01<00:02, 6.50it/s]
44%|████▍ | 11/25 [00:01<00:02, 6.54it/s]
48%|████▊ | 12/25 [00:02<00:01, 6.57it/s]
52%|█████▏ | 13/25 [00:02<00:01, 6.60it/s]
56%|█████▌ | 14/25 [00:02<00:01, 6.62it/s]
60%|██████ | 15/25 [00:02<00:01, 6.63it/s]
64%|██████▍ | 16/25 [00:02<00:01, 6.63it/s]
68%|██████▊ | 17/25 [00:02<00:01, 6.63it/s]
72%|███████▏ | 18/25 [00:02<00:01, 6.63it/s]
76%|███████▌ | 19/25 [00:03<00:00, 6.63it/s]
80%|████████ | 20/25 [00:03<00:00, 6.62it/s]
84%|████████▍ | 21/25 [00:03<00:00, 6.63it/s]
88%|████████▊ | 22/25 [00:03<00:00, 6.64it/s]
92%|█████████▏| 23/25 [00:03<00:00, 6.64it/s]
96%|█████████▌| 24/25 [00:03<00:00, 6.63it/s]
100%|██████████| 25/25 [00:03<00:00, 6.62it/s]
100%|██████████| 25/25 [00:03<00:00, 6.31it/s]
0%| | 0/8 [00:00<?, ?it/s]
12%|█▎ | 1/8 [00:00<00:01, 3.98it/s]
25%|██▌ | 2/8 [00:00<00:01, 4.82it/s]
38%|███▊ | 3/8 [00:00<00:00, 5.45it/s]
50%|█████ | 4/8 [00:00<00:00, 6.59it/s]
62%|██████▎ | 5/8 [00:00<00:00, 6.91it/s]
75%|███████▌ | 6/8 [00:00<00:00, 7.13it/s]
88%|████████▊ | 7/8 [00:01<00:00, 7.22it/s]
100%|██████████| 8/8 [00:01<00:00, 7.14it/s]
100%|██████████| 8/8 [00:01<00:00, 6.51it/s]