You're looking at a specific version of this model. Jump to the model overview.
mcai /absolutebeauty-v1.0-img2img:d29c2644
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 mcai/absolutebeauty-v1.0-img2img using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"mcai/absolutebeauty-v1.0-img2img:d29c26440c4d7b1b7066031d049bdcb505fa81ace10d17ea0184be43aa104612",
{
input: {
image: "https://replicate.delivery/pbxt/Ivy3PrONNiOURONDApNDaIxr35qgB06GYPeUB7GZdFSVuSrh/vermeer-01.webp",
prompt: "Girl With A Pearl Earring.",
upscale: 1,
strength: 0.3,
scheduler: "EulerAncestralDiscrete",
num_outputs: 1,
guidance_scale: 7.5,
negative_prompt: "disfigured, kitsch, ugly, oversaturated, greain, low-res, deformed, blurry, bad anatomy, poorly drawn face, mutation, mutated, extra limb, poorly drawn hands, missing limb, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, disgusting, poorly drawn, childish, mutilated, mangled, old, surreal, calligraphy, sign, writing, watermark, text, body out of frame, extra legs, extra arms, extra feet, out of frame, poorly drawn feet, cross-eye",
num_inference_steps: 30
}
}
);
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 mcai/absolutebeauty-v1.0-img2img using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"mcai/absolutebeauty-v1.0-img2img:d29c26440c4d7b1b7066031d049bdcb505fa81ace10d17ea0184be43aa104612",
input={
"image": "https://replicate.delivery/pbxt/Ivy3PrONNiOURONDApNDaIxr35qgB06GYPeUB7GZdFSVuSrh/vermeer-01.webp",
"prompt": "Girl With A Pearl Earring.",
"upscale": 1,
"strength": 0.3,
"scheduler": "EulerAncestralDiscrete",
"num_outputs": 1,
"guidance_scale": 7.5,
"negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, deformed, blurry, bad anatomy, poorly drawn face, mutation, mutated, extra limb, poorly drawn hands, missing limb, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, disgusting, poorly drawn, childish, mutilated, mangled, old, surreal, calligraphy, sign, writing, watermark, text, body out of frame, extra legs, extra arms, extra feet, out of frame, poorly drawn feet, cross-eye",
"num_inference_steps": 30
}
)
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 mcai/absolutebeauty-v1.0-img2img 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": "d29c26440c4d7b1b7066031d049bdcb505fa81ace10d17ea0184be43aa104612",
"input": {
"image": "https://replicate.delivery/pbxt/Ivy3PrONNiOURONDApNDaIxr35qgB06GYPeUB7GZdFSVuSrh/vermeer-01.webp",
"prompt": "Girl With A Pearl Earring.",
"upscale": 1,
"strength": 0.3,
"scheduler": "EulerAncestralDiscrete",
"num_outputs": 1,
"guidance_scale": 7.5,
"negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, deformed, blurry, bad anatomy, poorly drawn face, mutation, mutated, extra limb, poorly drawn hands, missing limb, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, disgusting, poorly drawn, childish, mutilated, mangled, old, surreal, calligraphy, sign, writing, watermark, text, body out of frame, extra legs, extra arms, extra feet, out of frame, poorly drawn feet, cross-eye",
"num_inference_steps": 30
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/mcai/absolutebeauty-v1.0-img2img@sha256:d29c26440c4d7b1b7066031d049bdcb505fa81ace10d17ea0184be43aa104612 \
-i 'image="https://replicate.delivery/pbxt/Ivy3PrONNiOURONDApNDaIxr35qgB06GYPeUB7GZdFSVuSrh/vermeer-01.webp"' \
-i 'prompt="Girl With A Pearl Earring."' \
-i 'upscale=1' \
-i 'strength=0.3' \
-i 'scheduler="EulerAncestralDiscrete"' \
-i 'num_outputs=1' \
-i 'guidance_scale=7.5' \
-i 'negative_prompt="disfigured, kitsch, ugly, oversaturated, greain, low-res, deformed, blurry, bad anatomy, poorly drawn face, mutation, mutated, extra limb, poorly drawn hands, missing limb, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, disgusting, poorly drawn, childish, mutilated, mangled, old, surreal, calligraphy, sign, writing, watermark, text, body out of frame, extra legs, extra arms, extra feet, out of frame, poorly drawn feet, cross-eye"' \
-i 'num_inference_steps=30'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 --gpus=all r8.im/mcai/absolutebeauty-v1.0-img2img@sha256:d29c26440c4d7b1b7066031d049bdcb505fa81ace10d17ea0184be43aa104612
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "image": "https://replicate.delivery/pbxt/Ivy3PrONNiOURONDApNDaIxr35qgB06GYPeUB7GZdFSVuSrh/vermeer-01.webp", "prompt": "Girl With A Pearl Earring.", "upscale": 1, "strength": 0.3, "scheduler": "EulerAncestralDiscrete", "num_outputs": 1, "guidance_scale": 7.5, "negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, deformed, blurry, bad anatomy, poorly drawn face, mutation, mutated, extra limb, poorly drawn hands, missing limb, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, disgusting, poorly drawn, childish, mutilated, mangled, old, surreal, calligraphy, sign, writing, watermark, text, body out of frame, extra legs, extra arms, extra feet, out of frame, poorly drawn feet, cross-eye", "num_inference_steps": 30 } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Add a payment method to run this model.
Each run costs approximately $0.0014. Alternatively, try out our featured models for free.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2023-06-03T01:33:07.560074Z",
"created_at": "2023-06-03T01:32:58.194293Z",
"data_removed": false,
"error": null,
"id": "vxkgky3plvhwxh6d7l3miyx4fi",
"input": {
"image": "https://replicate.delivery/pbxt/Ivy3PrONNiOURONDApNDaIxr35qgB06GYPeUB7GZdFSVuSrh/vermeer-01.webp",
"prompt": "Girl With A Pearl Earring.",
"upscale": 1,
"strength": 0.3,
"scheduler": "EulerAncestralDiscrete",
"num_outputs": 1,
"guidance_scale": 7.5,
"negative_prompt": "disfigured, kitsch, ugly, oversaturated, greain, low-res, deformed, blurry, bad anatomy, poorly drawn face, mutation, mutated, extra limb, poorly drawn hands, missing limb, floating limbs, disconnected limbs, malformed hands, blur, out of focus, long neck, long body, disgusting, poorly drawn, childish, mutilated, mangled, old, surreal, calligraphy, sign, writing, watermark, text, body out of frame, extra legs, extra arms, extra feet, out of frame, poorly drawn feet, cross-eye",
"num_inference_steps": 30
},
"logs": "Using seed: 42477\n 0%| | 0/9 [00:00<?, ?it/s]\n 11%|█ | 1/9 [00:00<00:05, 1.57it/s]\n 22%|██▏ | 2/9 [00:01<00:04, 1.57it/s]\n 33%|███▎ | 3/9 [00:01<00:03, 1.56it/s]\n 44%|████▍ | 4/9 [00:02<00:03, 1.56it/s]\n 56%|█████▌ | 5/9 [00:03<00:02, 1.56it/s]\n 67%|██████▋ | 6/9 [00:03<00:01, 1.56it/s]\n 78%|███████▊ | 7/9 [00:04<00:01, 1.56it/s]\n 89%|████████▉ | 8/9 [00:05<00:00, 1.56it/s]\n100%|██████████| 9/9 [00:05<00:00, 1.56it/s]\n100%|██████████| 9/9 [00:05<00:00, 1.56it/s]",
"metrics": {
"predict_time": 9.402829,
"total_time": 9.365781
},
"output": [
"https://replicate.delivery/pbxt/PAjmIBBuL35rPleavK9qljYgZksqCY39yKO8zIwE2dbpUChIA/out-0.png"
],
"started_at": "2023-06-03T01:32:58.157245Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/vxkgky3plvhwxh6d7l3miyx4fi",
"cancel": "https://api.replicate.com/v1/predictions/vxkgky3plvhwxh6d7l3miyx4fi/cancel"
},
"version": "d29c26440c4d7b1b7066031d049bdcb505fa81ace10d17ea0184be43aa104612"
}
Using seed: 42477
0%| | 0/9 [00:00<?, ?it/s]
11%|█ | 1/9 [00:00<00:05, 1.57it/s]
22%|██▏ | 2/9 [00:01<00:04, 1.57it/s]
33%|███▎ | 3/9 [00:01<00:03, 1.56it/s]
44%|████▍ | 4/9 [00:02<00:03, 1.56it/s]
56%|█████▌ | 5/9 [00:03<00:02, 1.56it/s]
67%|██████▋ | 6/9 [00:03<00:01, 1.56it/s]
78%|███████▊ | 7/9 [00:04<00:01, 1.56it/s]
89%|████████▉ | 8/9 [00:05<00:00, 1.56it/s]
100%|██████████| 9/9 [00:05<00:00, 1.56it/s]
100%|██████████| 9/9 [00:05<00:00, 1.56it/s]