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:2a2afbff
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:2a2afbff09996b53247b0714577d4ff82d2c9da8e8b00c5499b5b34510bb8b5e",
{
input: {
image: "https://replicate.delivery/pbxt/KIuaBkQJUNjzsAce8hZDbWmKAdOYIhoeCcyA4EBoguEnhjDU/bp_lisa.png",
width: 640,
height: 640,
prompt: "A digital elven princess with vibrant anime art style shines in a palette of dark pink and teal, In the style of artists Shilin Huang and Guillaume Seignac. Exudes an aura of heavenly angel, perfectly blending the elements of sultriness and ethereal beauty. The eyes, brimming with life, sparkle with a mesmerizing shine, adding a touch of spectral fascination to her already captivating presence",
guidance_scale: 0,
safety_checker: true,
negative_prompt: "",
ip_adapter_scale: 0.2,
num_inference_steps: 6,
controlnet_conditioning_scale: 0.8
}
}
);
// 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:2a2afbff09996b53247b0714577d4ff82d2c9da8e8b00c5499b5b34510bb8b5e",
input={
"image": "https://replicate.delivery/pbxt/KIuaBkQJUNjzsAce8hZDbWmKAdOYIhoeCcyA4EBoguEnhjDU/bp_lisa.png",
"width": 640,
"height": 640,
"prompt": "A digital elven princess with vibrant anime art style shines in a palette of dark pink and teal, In the style of artists Shilin Huang and Guillaume Seignac. Exudes an aura of heavenly angel, perfectly blending the elements of sultriness and ethereal beauty. The eyes, brimming with life, sparkle with a mesmerizing shine, adding a touch of spectral fascination to her already captivating presence",
"guidance_scale": 0,
"safety_checker": True,
"negative_prompt": "",
"ip_adapter_scale": 0.2,
"num_inference_steps": 6,
"controlnet_conditioning_scale": 0.8
}
)
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:2a2afbff09996b53247b0714577d4ff82d2c9da8e8b00c5499b5b34510bb8b5e",
"input": {
"image": "https://replicate.delivery/pbxt/KIuaBkQJUNjzsAce8hZDbWmKAdOYIhoeCcyA4EBoguEnhjDU/bp_lisa.png",
"width": 640,
"height": 640,
"prompt": "A digital elven princess with vibrant anime art style shines in a palette of dark pink and teal, In the style of artists Shilin Huang and Guillaume Seignac. Exudes an aura of heavenly angel, perfectly blending the elements of sultriness and ethereal beauty. The eyes, brimming with life, sparkle with a mesmerizing shine, adding a touch of spectral fascination to her already captivating presence",
"guidance_scale": 0,
"safety_checker": true,
"negative_prompt": "",
"ip_adapter_scale": 0.2,
"num_inference_steps": 6,
"controlnet_conditioning_scale": 0.8
}
}' \
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-02-01T13:39:21.796865Z",
"created_at": "2024-02-01T13:39:04.987480Z",
"data_removed": false,
"error": null,
"id": "4tdp3ylb5pqss6zg6xesbyc33a",
"input": {
"image": "https://replicate.delivery/pbxt/KIuaBkQJUNjzsAce8hZDbWmKAdOYIhoeCcyA4EBoguEnhjDU/bp_lisa.png",
"width": 640,
"height": 640,
"prompt": "A digital elven princess with vibrant anime art style shines in a palette of dark pink and teal, In the style of artists Shilin Huang and Guillaume Seignac. Exudes an aura of heavenly angel, perfectly blending the elements of sultriness and ethereal beauty. The eyes, brimming with life, sparkle with a mesmerizing shine, adding a touch of spectral fascination to her already captivating presence",
"guidance_scale": 0,
"safety_checker": true,
"ip_adapter_scale": 0.2,
"num_inference_steps": 6,
"controlnet_conditioning_scale": 0.8
},
"logs": "The following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['ation to her already captivating presence']\nThe following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['ation to her already captivating presence']\n 0%| | 0/6 [00:00<?, ?it/s]\n 17%|█▋ | 1/6 [00:00<00:00, 5.41it/s]\n 33%|███▎ | 2/6 [00:00<00:00, 5.39it/s]\n 50%|█████ | 3/6 [00:00<00:00, 5.37it/s]\n 67%|██████▋ | 4/6 [00:00<00:00, 5.36it/s]\n 83%|████████▎ | 5/6 [00:00<00:00, 5.35it/s]\n100%|██████████| 6/6 [00:01<00:00, 5.34it/s]\n100%|██████████| 6/6 [00:01<00:00, 5.36it/s]",
"metrics": {
"predict_time": 16.780217,
"total_time": 16.809385
},
"output": "https://replicate.delivery/pbxt/iE31W3EYU7YuHldT0HGKLZVO6TUwFCxN7StGnkQ0ncLCRlkE/result.jpg",
"started_at": "2024-02-01T13:39:05.016648Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/4tdp3ylb5pqss6zg6xesbyc33a",
"cancel": "https://api.replicate.com/v1/predictions/4tdp3ylb5pqss6zg6xesbyc33a/cancel"
},
"version": "2a2afbff09996b53247b0714577d4ff82d2c9da8e8b00c5499b5b34510bb8b5e"
}
The following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['ation to her already captivating presence']
The following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['ation to her already captivating presence']
0%| | 0/6 [00:00<?, ?it/s]
17%|█▋ | 1/6 [00:00<00:00, 5.41it/s]
33%|███▎ | 2/6 [00:00<00:00, 5.39it/s]
50%|█████ | 3/6 [00:00<00:00, 5.37it/s]
67%|██████▋ | 4/6 [00:00<00:00, 5.36it/s]
83%|████████▎ | 5/6 [00:00<00:00, 5.35it/s]
100%|██████████| 6/6 [00:01<00:00, 5.34it/s]
100%|██████████| 6/6 [00:01<00:00, 5.36it/s]