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.
tgohblio /instant-id-albedobase-xl:8b6fd273
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";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run tgohblio/instant-id-albedobase-xl using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"tgohblio/instant-id-albedobase-xl:8b6fd273e9a686af0a8a1e07d01fb89c9f26578de7a2ed8ae6297c6e48652eb5",
{
input: {
image: "https://replicate.delivery/pbxt/KIZQ3pdyecai2VfYEZEif5SlN6i7LYF7gSFZO835elakE6Et/bp_lisa.png",
width: 640,
height: 640,
prompt: "photorealistic, RAW photo, back view of a woman, turn around to look over shoulder, beautiful autumn season, gentle falling autumn leaves, masterpiece, detailed skin pores",
guidance_scale: 5,
negative_prompt: "amateur quality, vague shapes, vague texture, wrong perspective, ugly, dowdy style, nsfw",
ip_adapter_scale: 0.5,
num_inference_steps: 25,
controlnet_conditioning_scale: 0.5
}
}
);
// To access the file URL:
console.log(output.url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", 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 tgohblio/instant-id-albedobase-xl using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"tgohblio/instant-id-albedobase-xl:8b6fd273e9a686af0a8a1e07d01fb89c9f26578de7a2ed8ae6297c6e48652eb5",
input={
"image": "https://replicate.delivery/pbxt/KIZQ3pdyecai2VfYEZEif5SlN6i7LYF7gSFZO835elakE6Et/bp_lisa.png",
"width": 640,
"height": 640,
"prompt": "photorealistic, RAW photo, back view of a woman, turn around to look over shoulder, beautiful autumn season, gentle falling autumn leaves, masterpiece, detailed skin pores",
"guidance_scale": 5,
"negative_prompt": "amateur quality, vague shapes, vague texture, wrong perspective, ugly, dowdy style, nsfw",
"ip_adapter_scale": 0.5,
"num_inference_steps": 25,
"controlnet_conditioning_scale": 0.5
}
)
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 tgohblio/instant-id-albedobase-xl 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": "tgohblio/instant-id-albedobase-xl:8b6fd273e9a686af0a8a1e07d01fb89c9f26578de7a2ed8ae6297c6e48652eb5",
"input": {
"image": "https://replicate.delivery/pbxt/KIZQ3pdyecai2VfYEZEif5SlN6i7LYF7gSFZO835elakE6Et/bp_lisa.png",
"width": 640,
"height": 640,
"prompt": "photorealistic, RAW photo, back view of a woman, turn around to look over shoulder, beautiful autumn season, gentle falling autumn leaves, masterpiece, detailed skin pores",
"guidance_scale": 5,
"negative_prompt": "amateur quality, vague shapes, vague texture, wrong perspective, ugly, dowdy style, nsfw",
"ip_adapter_scale": 0.5,
"num_inference_steps": 25,
"controlnet_conditioning_scale": 0.5
}
}' \
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-01-27T09:52:33.800748Z",
"created_at": "2024-01-27T09:52:10.860265Z",
"data_removed": false,
"error": null,
"id": "fvzhz6dbmiyylqhs5qfarecvoy",
"input": {
"image": "https://replicate.delivery/pbxt/KIZQ3pdyecai2VfYEZEif5SlN6i7LYF7gSFZO835elakE6Et/bp_lisa.png",
"width": 640,
"height": 640,
"prompt": "photorealistic, RAW photo, back view of a woman, turn around to look over shoulder, beautiful autumn season, gentle falling autumn leaves, masterpiece, detailed skin pores",
"guidance_scale": 5,
"negative_prompt": "amateur quality, vague shapes, vague texture, wrong perspective, ugly, dowdy style, nsfw",
"ip_adapter_scale": 0.5,
"num_inference_steps": 25,
"controlnet_conditioning_scale": 0.5
},
"logs": "0%| | 0/25 [00:00<?, ?it/s]\n 4%|▍ | 1/25 [00:00<00:08, 2.99it/s]\n 8%|▊ | 2/25 [00:00<00:07, 2.98it/s]\n 12%|█▏ | 3/25 [00:01<00:07, 2.97it/s]\n 16%|█▌ | 4/25 [00:01<00:07, 2.96it/s]\n 20%|██ | 5/25 [00:01<00:06, 2.96it/s]\n 24%|██▍ | 6/25 [00:02<00:06, 2.96it/s]\n 28%|██▊ | 7/25 [00:02<00:06, 2.96it/s]\n 32%|███▏ | 8/25 [00:02<00:05, 2.96it/s]\n 36%|███▌ | 9/25 [00:03<00:05, 2.96it/s]\n 40%|████ | 10/25 [00:03<00:05, 2.96it/s]\n 44%|████▍ | 11/25 [00:03<00:04, 2.96it/s]\n 48%|████▊ | 12/25 [00:04<00:04, 2.96it/s]\n 52%|█████▏ | 13/25 [00:04<00:04, 2.96it/s]\n 56%|█████▌ | 14/25 [00:04<00:03, 2.97it/s]\n 60%|██████ | 15/25 [00:05<00:03, 2.97it/s]\n 64%|██████▍ | 16/25 [00:05<00:03, 2.97it/s]\n 68%|██████▊ | 17/25 [00:05<00:02, 2.97it/s]\n 72%|███████▏ | 18/25 [00:06<00:02, 2.97it/s]\n 76%|███████▌ | 19/25 [00:06<00:02, 2.97it/s]\n 80%|████████ | 20/25 [00:06<00:01, 2.97it/s]\n 84%|████████▍ | 21/25 [00:07<00:01, 2.97it/s]\n 88%|████████▊ | 22/25 [00:07<00:01, 2.97it/s]\n 92%|█████████▏| 23/25 [00:07<00:00, 2.97it/s]\n 96%|█████████▌| 24/25 [00:08<00:00, 2.97it/s]\n100%|██████████| 25/25 [00:08<00:00, 2.97it/s]\n100%|██████████| 25/25 [00:08<00:00, 2.97it/s]",
"metrics": {
"predict_time": 22.904333,
"total_time": 22.940483
},
"output": "https://replicate.delivery/pbxt/szL8LzYfdTVGXy26qqnD5rHrQeUe3A5WRavdyI1LqJwAjQhkA/result.jpg",
"started_at": "2024-01-27T09:52:10.896415Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/fvzhz6dbmiyylqhs5qfarecvoy",
"cancel": "https://api.replicate.com/v1/predictions/fvzhz6dbmiyylqhs5qfarecvoy/cancel"
},
"version": "8b6fd273e9a686af0a8a1e07d01fb89c9f26578de7a2ed8ae6297c6e48652eb5"
}
0%| | 0/25 [00:00<?, ?it/s]
4%|▍ | 1/25 [00:00<00:08, 2.99it/s]
8%|▊ | 2/25 [00:00<00:07, 2.98it/s]
12%|█▏ | 3/25 [00:01<00:07, 2.97it/s]
16%|█▌ | 4/25 [00:01<00:07, 2.96it/s]
20%|██ | 5/25 [00:01<00:06, 2.96it/s]
24%|██▍ | 6/25 [00:02<00:06, 2.96it/s]
28%|██▊ | 7/25 [00:02<00:06, 2.96it/s]
32%|███▏ | 8/25 [00:02<00:05, 2.96it/s]
36%|███▌ | 9/25 [00:03<00:05, 2.96it/s]
40%|████ | 10/25 [00:03<00:05, 2.96it/s]
44%|████▍ | 11/25 [00:03<00:04, 2.96it/s]
48%|████▊ | 12/25 [00:04<00:04, 2.96it/s]
52%|█████▏ | 13/25 [00:04<00:04, 2.96it/s]
56%|█████▌ | 14/25 [00:04<00:03, 2.97it/s]
60%|██████ | 15/25 [00:05<00:03, 2.97it/s]
64%|██████▍ | 16/25 [00:05<00:03, 2.97it/s]
68%|██████▊ | 17/25 [00:05<00:02, 2.97it/s]
72%|███████▏ | 18/25 [00:06<00:02, 2.97it/s]
76%|███████▌ | 19/25 [00:06<00:02, 2.97it/s]
80%|████████ | 20/25 [00:06<00:01, 2.97it/s]
84%|████████▍ | 21/25 [00:07<00:01, 2.97it/s]
88%|████████▊ | 22/25 [00:07<00:01, 2.97it/s]
92%|█████████▏| 23/25 [00:07<00:00, 2.97it/s]
96%|█████████▌| 24/25 [00:08<00:00, 2.97it/s]
100%|██████████| 25/25 [00:08<00:00, 2.97it/s]
100%|██████████| 25/25 [00:08<00:00, 2.97it/s]