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.
elct9620 /pastel-mix:4c57fa58
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 elct9620/pastel-mix using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"elct9620/pastel-mix:4c57fa58cf31ac06885532ab835610eeb973f1c5a29c96a27d22ec57ce897f65",
{
input: {
seed: 10189513435907688000,
hires: true,
steps: 20,
width: 448,
height: 640,
prompt: "mksks style, masterpiece, best quality, ultra-detailed, illustration, straight on, 1girl, green eyes, medium hair, dress",
guidance: 7,
neg_prompt: "lowres, ((bad anatomy)), ((bad hands)), text, missing finger, extra digits, fewer digits, blurry, ((mutated hands and fingers)), (poorly drawn face), ((mutation)), ((deformed face)), (ugly), ((bad proportions)), ((extra limbs)), extra face, (double head), (extra head), ((extra feet)), monster, logo, cropped, worst quality, low quality, normal quality, jpeg, humpbacked, long body, long neck, ((jpeg artifacts))"
}
}
);
// 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 elct9620/pastel-mix using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"elct9620/pastel-mix:4c57fa58cf31ac06885532ab835610eeb973f1c5a29c96a27d22ec57ce897f65",
input={
"seed": 10189513435907688000,
"hires": True,
"steps": 20,
"width": 448,
"height": 640,
"prompt": "mksks style, masterpiece, best quality, ultra-detailed, illustration, straight on, 1girl, green eyes, medium hair, dress",
"guidance": 7,
"neg_prompt": "lowres, ((bad anatomy)), ((bad hands)), text, missing finger, extra digits, fewer digits, blurry, ((mutated hands and fingers)), (poorly drawn face), ((mutation)), ((deformed face)), (ugly), ((bad proportions)), ((extra limbs)), extra face, (double head), (extra head), ((extra feet)), monster, logo, cropped, worst quality, low quality, normal quality, jpeg, humpbacked, long body, long neck, ((jpeg artifacts))"
}
)
# The elct9620/pastel-mix model can stream output as it's running.
# The predict method returns an iterator, and you can iterate over that output.
for item in output:
# https://replicate.com/elct9620/pastel-mix/api#output-schema
print(item)
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 elct9620/pastel-mix 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": "elct9620/pastel-mix:4c57fa58cf31ac06885532ab835610eeb973f1c5a29c96a27d22ec57ce897f65",
"input": {
"seed": 10189513435907688000,
"hires": true,
"steps": 20,
"width": 448,
"height": 640,
"prompt": "mksks style, masterpiece, best quality, ultra-detailed, illustration, straight on, 1girl, green eyes, medium hair, dress",
"guidance": 7,
"neg_prompt": "lowres, ((bad anatomy)), ((bad hands)), text, missing finger, extra digits, fewer digits, blurry, ((mutated hands and fingers)), (poorly drawn face), ((mutation)), ((deformed face)), (ugly), ((bad proportions)), ((extra limbs)), extra face, (double head), (extra head), ((extra feet)), monster, logo, cropped, worst quality, low quality, normal quality, jpeg, humpbacked, long body, long neck, ((jpeg artifacts))"
}
}' \
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-02-25T09:19:13.504042Z",
"created_at": "2023-02-25T09:19:03.339855Z",
"data_removed": false,
"error": null,
"id": "hgvcsrhq7ncetl4zubjpmzft6y",
"input": {
"seed": 10189513435907688000,
"hires": true,
"steps": 20,
"width": "448",
"height": "640",
"prompt": "mksks style, masterpiece, best quality, ultra-detailed, illustration, straight on, 1girl, green eyes, medium hair, dress",
"guidance": 7,
"neg_prompt": "lowres, ((bad anatomy)), ((bad hands)), text, missing finger, extra digits, fewer digits, blurry, ((mutated hands and fingers)), (poorly drawn face), ((mutation)), ((deformed face)), (ugly), ((bad proportions)), ((extra limbs)), extra face, (double head), (extra head), ((extra feet)), monster, logo, cropped, worst quality, low quality, normal quality, jpeg, humpbacked, long body, long neck, ((jpeg artifacts))"
},
"logs": "0%| | 0/20 [00:00<?, ?it/s]\n 5%|▌ | 1/20 [00:00<00:01, 9.67it/s]\n 15%|█▌ | 3/20 [00:00<00:01, 11.49it/s]\n 25%|██▌ | 5/20 [00:00<00:01, 10.89it/s]\n 35%|███▌ | 7/20 [00:00<00:01, 10.36it/s]\n 45%|████▌ | 9/20 [00:00<00:01, 10.50it/s]\n 55%|█████▌ | 11/20 [00:01<00:00, 10.61it/s]\n 65%|██████▌ | 13/20 [00:01<00:00, 10.80it/s]\n 75%|███████▌ | 15/20 [00:01<00:00, 10.60it/s]\n 85%|████████▌ | 17/20 [00:01<00:00, 10.63it/s]\n 95%|█████████▌| 19/20 [00:01<00:00, 10.88it/s]\n100%|██████████| 20/20 [00:01<00:00, 10.72it/s]\nmksks style, masterpiece, best quality, ultra-detailed, illustration, straight on, 1girl, green eyes, medium hair, dress\nNegative prompt: lowres, ((bad anatomy)), ((bad hands)), text, missing finger, extra digits, fewer digits, blurry, ((mutated hands and fingers)), (poorly drawn face), ((mutation)), ((deformed face)), (ugly), ((bad proportions)), ((extra limbs)), extra face, (double head), (extra head), ((extra feet)), monster, logo, cropped, worst quality, low quality, normal quality, jpeg, humpbacked, long body, long neck, ((jpeg artifacts))\nSteps: 20, Sampler: DPMSolverMultistepScheduler, CFG scale: 7.0, Size: 448x640\nSeed: 10189513435907688000\n 0%| | 0/20 [00:00<?, ?it/s]\n 10%|█ | 2/20 [00:00<00:01, 11.73it/s]\n 20%|██ | 4/20 [00:00<00:01, 10.92it/s]\n 30%|███ | 6/20 [00:00<00:01, 10.75it/s]\n 40%|████ | 8/20 [00:00<00:01, 10.50it/s]\n 50%|█████ | 10/20 [00:00<00:00, 11.16it/s]\n 60%|██████ | 12/20 [00:01<00:00, 10.85it/s]\n 70%|███████ | 14/20 [00:01<00:00, 10.87it/s]\n 80%|████████ | 16/20 [00:01<00:00, 10.74it/s]\n 90%|█████████ | 18/20 [00:01<00:00, 10.62it/s]\n100%|██████████| 20/20 [00:01<00:00, 10.94it/s]\n100%|██████████| 20/20 [00:01<00:00, 10.86it/s]\n 0%| | 0/12 [00:00<?, ?it/s]\n 8%|▊ | 1/12 [00:00<00:04, 2.56it/s]\n 17%|█▋ | 2/12 [00:00<00:03, 3.09it/s]\n 25%|██▌ | 3/12 [00:00<00:02, 3.30it/s]\n 33%|███▎ | 4/12 [00:01<00:02, 3.41it/s]\n 42%|████▏ | 5/12 [00:01<00:02, 3.47it/s]\n 50%|█████ | 6/12 [00:01<00:01, 3.52it/s]\n 58%|█████▊ | 7/12 [00:02<00:01, 3.54it/s]\n 67%|██████▋ | 8/12 [00:02<00:01, 3.56it/s]\n 75%|███████▌ | 9/12 [00:02<00:00, 3.57it/s]\n 83%|████████▎ | 10/12 [00:02<00:00, 3.58it/s]\n 92%|█████████▏| 11/12 [00:03<00:00, 3.58it/s]\n100%|██████████| 12/12 [00:03<00:00, 3.58it/s]\n100%|██████████| 12/12 [00:03<00:00, 3.48it/s]",
"metrics": {
"predict_time": 10.096806,
"total_time": 10.164187
},
"output": [
"https://replicate.delivery/pbxt/yS2pt2P9b06QJN07ZLd7XSkeoLiifEM44leCe82lvM1mIhHCB/out-0.png",
"https://replicate.delivery/pbxt/CJvWdLe8XLWSQqtWuBLfRoDDKSboP00U6yBp0LoopcrMS4hQA/out-0.png",
"https://replicate.delivery/pbxt/YRoOfvAKrqyiaC16D9Z6fGl3Yuj1vqonRudJyuOo6ugQS4hQA/out-0.png"
],
"started_at": "2023-02-25T09:19:03.407236Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/hgvcsrhq7ncetl4zubjpmzft6y",
"cancel": "https://api.replicate.com/v1/predictions/hgvcsrhq7ncetl4zubjpmzft6y/cancel"
},
"version": "4c57fa58cf31ac06885532ab835610eeb973f1c5a29c96a27d22ec57ce897f65"
}
0%| | 0/20 [00:00<?, ?it/s]
5%|▌ | 1/20 [00:00<00:01, 9.67it/s]
15%|█▌ | 3/20 [00:00<00:01, 11.49it/s]
25%|██▌ | 5/20 [00:00<00:01, 10.89it/s]
35%|███▌ | 7/20 [00:00<00:01, 10.36it/s]
45%|████▌ | 9/20 [00:00<00:01, 10.50it/s]
55%|█████▌ | 11/20 [00:01<00:00, 10.61it/s]
65%|██████▌ | 13/20 [00:01<00:00, 10.80it/s]
75%|███████▌ | 15/20 [00:01<00:00, 10.60it/s]
85%|████████▌ | 17/20 [00:01<00:00, 10.63it/s]
95%|█████████▌| 19/20 [00:01<00:00, 10.88it/s]
100%|██████████| 20/20 [00:01<00:00, 10.72it/s]
mksks style, masterpiece, best quality, ultra-detailed, illustration, straight on, 1girl, green eyes, medium hair, dress
Negative prompt: lowres, ((bad anatomy)), ((bad hands)), text, missing finger, extra digits, fewer digits, blurry, ((mutated hands and fingers)), (poorly drawn face), ((mutation)), ((deformed face)), (ugly), ((bad proportions)), ((extra limbs)), extra face, (double head), (extra head), ((extra feet)), monster, logo, cropped, worst quality, low quality, normal quality, jpeg, humpbacked, long body, long neck, ((jpeg artifacts))
Steps: 20, Sampler: DPMSolverMultistepScheduler, CFG scale: 7.0, Size: 448x640
Seed: 10189513435907688000
0%| | 0/20 [00:00<?, ?it/s]
10%|█ | 2/20 [00:00<00:01, 11.73it/s]
20%|██ | 4/20 [00:00<00:01, 10.92it/s]
30%|███ | 6/20 [00:00<00:01, 10.75it/s]
40%|████ | 8/20 [00:00<00:01, 10.50it/s]
50%|█████ | 10/20 [00:00<00:00, 11.16it/s]
60%|██████ | 12/20 [00:01<00:00, 10.85it/s]
70%|███████ | 14/20 [00:01<00:00, 10.87it/s]
80%|████████ | 16/20 [00:01<00:00, 10.74it/s]
90%|█████████ | 18/20 [00:01<00:00, 10.62it/s]
100%|██████████| 20/20 [00:01<00:00, 10.94it/s]
100%|██████████| 20/20 [00:01<00:00, 10.86it/s]
0%| | 0/12 [00:00<?, ?it/s]
8%|▊ | 1/12 [00:00<00:04, 2.56it/s]
17%|█▋ | 2/12 [00:00<00:03, 3.09it/s]
25%|██▌ | 3/12 [00:00<00:02, 3.30it/s]
33%|███▎ | 4/12 [00:01<00:02, 3.41it/s]
42%|████▏ | 5/12 [00:01<00:02, 3.47it/s]
50%|█████ | 6/12 [00:01<00:01, 3.52it/s]
58%|█████▊ | 7/12 [00:02<00:01, 3.54it/s]
67%|██████▋ | 8/12 [00:02<00:01, 3.56it/s]
75%|███████▌ | 9/12 [00:02<00:00, 3.57it/s]
83%|████████▎ | 10/12 [00:02<00:00, 3.58it/s]
92%|█████████▏| 11/12 [00:03<00:00, 3.58it/s]
100%|██████████| 12/12 [00:03<00:00, 3.58it/s]
100%|██████████| 12/12 [00:03<00:00, 3.48it/s]