defaultpastelmix.safetensors
typeenum
value typestring
optionsschexcelsior.safetensors, pastelmix.safetensors, manmaru.safetensors, xxmix.safetensors, tmix.safetensors
{
"batch_size": 1,
"cfg_scale": 7,
"denoising_strength": 0.35,
"enable_hr": false,
"height": 768,
"hr_scale": 2,
"hr_second_pass_steps": 18,
"hr_upscaler": "4x_fatal_Anime_500000_G",
"model": "xxmix.safetensors",
"negative_prompt": "low quality, bad quality, worst quality, background art, mirror, reflection",
"prompt": "self-portrait oil painting of a beautiful young woman wearing an intricate dress, 8k, uhd, photorealistic, godrays",
"sampler_name": "DPM++ SDE Karras",
"seed": -1,
"steps": 35,
"vae": "consistency.pt",
"width": 768
}npm install replicate
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_XiQ**********************************
This is your API token. Keep it to yourself.
import Replicate from "replicate";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run dazaleas/sd15-cog using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"dazaleas/sd15-cog:b3090867978df33330d841904d50b83ebff7dcda040b5f6ab22538bd75e7f3dd",
{
input: {
batch_size: 1,
cfg_scale: 7,
denoising_strength: 0.35,
enable_hr: false,
height: 768,
hr_scale: 2,
hr_second_pass_steps: 18,
hr_upscaler: "4x_fatal_Anime_500000_G",
model: "xxmix.safetensors",
negative_prompt: "low quality, bad quality, worst quality, background art, mirror, reflection",
prompt: "self-portrait oil painting of a beautiful young woman wearing an intricate dress, 8k, uhd, photorealistic, godrays",
sampler_name: "DPM++ SDE Karras",
seed: -1,
steps: 35,
vae: "consistency.pt",
width: 768
}
}
);
// 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=r8_XiQ**********************************
This is your API token. Keep it to yourself.
import replicate
Run dazaleas/sd15-cog using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"dazaleas/sd15-cog:b3090867978df33330d841904d50b83ebff7dcda040b5f6ab22538bd75e7f3dd",
input={
"batch_size": 1,
"cfg_scale": 7,
"denoising_strength": 0.35,
"enable_hr": False,
"height": 768,
"hr_scale": 2,
"hr_second_pass_steps": 18,
"hr_upscaler": "4x_fatal_Anime_500000_G",
"model": "xxmix.safetensors",
"negative_prompt": "low quality, bad quality, worst quality, background art, mirror, reflection",
"prompt": "self-portrait oil painting of a beautiful young woman wearing an intricate dress, 8k, uhd, photorealistic, godrays",
"sampler_name": "DPM++ SDE Karras",
"seed": -1,
"steps": 35,
"vae": "consistency.pt",
"width": 768
}
)
# To access the file URL:
print(output[0].url())
#=> "http://example.com"
# To write the file to disk:
with open("my-image.png", "wb") as file:
file.write(output[0].read())
To learn more, take a look at the guide on getting started with Python.
REPLICATE_API_TOKEN environment variable:export REPLICATE_API_TOKEN=r8_XiQ**********************************
This is your API token. Keep it to yourself.
Run dazaleas/sd15-cog 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": "dazaleas/sd15-cog:b3090867978df33330d841904d50b83ebff7dcda040b5f6ab22538bd75e7f3dd",
"input": {
"batch_size": 1,
"cfg_scale": 7,
"denoising_strength": 0.35,
"enable_hr": false,
"height": 768,
"hr_scale": 2,
"hr_second_pass_steps": 18,
"hr_upscaler": "4x_fatal_Anime_500000_G",
"model": "xxmix.safetensors",
"negative_prompt": "low quality, bad quality, worst quality, background art, mirror, reflection",
"prompt": "self-portrait oil painting of a beautiful young woman wearing an intricate dress, 8k, uhd, photorealistic, godrays",
"sampler_name": "DPM++ SDE Karras",
"seed": -1,
"steps": 35,
"vae": "consistency.pt",
"width": 768
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
{
"id": "xrs4xd3b5rmdzszfricd2b3gtm",
"model": "dazaleas/sd15-cog",
"version": "b3090867978df33330d841904d50b83ebff7dcda040b5f6ab22538bd75e7f3dd",
"input": {
"batch_size": 1,
"cfg_scale": 7,
"denoising_strength": 0.35,
"enable_hr": false,
"height": 768,
"hr_scale": 2,
"hr_second_pass_steps": 18,
"hr_upscaler": "4x_fatal_Anime_500000_G",
"model": "xxmix.safetensors",
"negative_prompt": "low quality, bad quality, worst quality, background art, mirror, reflection",
"prompt": "self-portrait oil painting of a beautiful young woman wearing an intricate dress, 8k, uhd, photorealistic, godrays",
"sampler_name": "DPM++ SDE Karras",
"seed": -1,
"steps": 35,
"vae": "consistency.pt",
"width": 768
},
"logs": "Checking model and vae...\nPrevious model: xxmix.safetensors\nModel is already up-to-date.\nPrevious vae: consistency.pt\nVAE is already up-to-date.\nDone, time used: 4.8160552978515625e-05 seconds.\n 0%| | 0/35 [00:00<?, ?it/s]\nTotal progress: 648it [07:16, 3.85s/it]\u001b[A\n 3%|▎ | 1/35 [00:00<00:03, 8.54it/s]\nTotal progress: 649it [07:16, 2.73s/it]\u001b[A\n 6%|▌ | 2/35 [00:00<00:03, 8.56it/s]\nTotal progress: 650it [07:16, 1.95s/it]\u001b[A\n 9%|▊ | 3/35 [00:00<00:03, 8.57it/s]\nTotal progress: 651it [07:16, 1.40s/it]\u001b[A\n 11%|█▏ | 4/35 [00:00<00:03, 8.59it/s]\nTotal progress: 652it [07:16, 1.01s/it]\u001b[A\n 14%|█▍ | 5/35 [00:00<00:03, 8.60it/s]\nTotal progress: 653it [07:16, 1.34it/s]\u001b[A\n 17%|█▋ | 6/35 [00:00<00:03, 8.59it/s]\nTotal progress: 654it [07:16, 1.80it/s]\u001b[A\n 20%|██ | 7/35 [00:00<00:03, 8.59it/s]\nTotal progress: 655it [07:16, 2.36it/s]\u001b[A\n 23%|██▎ | 8/35 [00:00<00:03, 8.59it/s]\nTotal progress: 656it [07:16, 3.01it/s]\u001b[A\n 26%|██▌ | 9/35 [00:01<00:03, 8.59it/s]\nTotal progress: 657it [07:17, 3.74it/s]\u001b[A\n 29%|██▊ | 10/35 [00:01<00:02, 8.59it/s]\nTotal progress: 658it [07:17, 4.51it/s]\u001b[A\n 31%|███▏ | 11/35 [00:01<00:02, 8.60it/s]\nTotal progress: 659it [07:17, 5.26it/s]\u001b[A\n 34%|███▍ | 12/35 [00:01<00:02, 8.62it/s]\nTotal progress: 660it [07:17, 5.96it/s]\u001b[A\n 37%|███▋ | 13/35 [00:01<00:02, 8.60it/s]\nTotal progress: 661it [07:17, 6.56it/s]\u001b[A\n 40%|████ | 14/35 [00:01<00:02, 8.62it/s]\nTotal progress: 662it [07:17, 7.07it/s]\u001b[A\n 43%|████▎ | 15/35 [00:01<00:02, 8.61it/s]\nTotal progress: 663it [07:17, 7.47it/s]\u001b[A\n 46%|████▌ | 16/35 [00:01<00:02, 8.63it/s]\nTotal progress: 664it [07:17, 7.79it/s]\u001b[A\n 49%|████▊ | 17/35 [00:01<00:02, 8.64it/s]\nTotal progress: 665it [07:17, 8.04it/s]\u001b[A\n 51%|█████▏ | 18/35 [00:02<00:01, 8.64it/s]\nTotal progress: 666it [07:18, 8.21it/s]\u001b[A\n 54%|█████▍ | 19/35 [00:02<00:01, 8.61it/s]\nTotal progress: 667it [07:18, 8.30it/s]\u001b[A\n 57%|█████▋ | 20/35 [00:02<00:01, 8.61it/s]\nTotal progress: 668it [07:18, 8.39it/s]\u001b[A\n 60%|██████ | 21/35 [00:02<00:01, 8.63it/s]\nTotal progress: 669it [07:18, 8.48it/s]\u001b[A\n 63%|██████▎ | 22/35 [00:02<00:01, 8.67it/s]\nTotal progress: 670it [07:18, 8.56it/s]\u001b[A\n 66%|██████▌ | 23/35 [00:02<00:01, 8.65it/s]\nTotal progress: 671it [07:18, 8.58it/s]\u001b[A\n 69%|██████▊ | 24/35 [00:02<00:01, 8.68it/s]\nTotal progress: 672it [07:18, 8.63it/s]\u001b[A\n 71%|███████▏ | 25/35 [00:02<00:01, 8.71it/s]\nTotal progress: 673it [07:18, 8.67it/s]\u001b[A\n 74%|███████▍ | 26/35 [00:03<00:01, 8.69it/s]\nTotal progress: 674it [07:19, 8.66it/s]\u001b[A\n 77%|███████▋ | 27/35 [00:03<00:00, 8.72it/s]\nTotal progress: 675it [07:19, 8.70it/s]\u001b[A\n 80%|████████ | 28/35 [00:03<00:00, 8.74it/s]\nTotal progress: 676it [07:19, 8.73it/s]\u001b[A\n 83%|████████▎ | 29/35 [00:03<00:00, 8.72it/s]\nTotal progress: 677it [07:19, 8.71it/s]\u001b[A\n 86%|████████▌ | 30/35 [00:03<00:00, 8.74it/s]\nTotal progress: 678it [07:19, 8.71it/s]\u001b[A\n 89%|████████▊ | 31/35 [00:03<00:00, 8.71it/s]\nTotal progress: 679it [07:19, 8.71it/s]\u001b[A\n 91%|█████████▏| 32/35 [00:03<00:00, 8.77it/s]\nTotal progress: 680it [07:19, 8.77it/s]\u001b[A\n 94%|█████████▍| 33/35 [00:03<00:00, 8.80it/s]\nTotal progress: 681it [07:19, 8.80it/s]\u001b[A\n 97%|█████████▋| 34/35 [00:03<00:00, 8.86it/s]\n100%|██████████| 35/35 [00:03<00:00, 8.80it/s]\nTotal progress: 682it [07:19, 8.86it/s]\u001b[A",
"output": [
"https://replicate.delivery/pbxt/2IWR4absHC4bKBcDHZyjOEftyFsaUCWfad5uSxUeCzUbPOjjA/1698217964_0.png"
],
"data_removed": false,
"error": null,
"source": "web",
"status": "succeeded",
"created_at": "2023-10-25T07:12:40.807666Z",
"started_at": "2023-10-25T07:12:40.73996Z",
"completed_at": "2023-10-25T07:12:45.68602Z",
"urls": {
"cancel": "https://api.replicate.com/v1/predictions/xrs4xd3b5rmdzszfricd2b3gtm/cancel",
"get": "https://api.replicate.com/v1/predictions/xrs4xd3b5rmdzszfricd2b3gtm"
},
"metrics": {
"predict_time": 4.94606,
"total_time": 4.878354
}
}