tgohblio / instant-id-albedobase-xl
InstantID : Zero-shot Identity-Preserving Generation in Seconds with ⚡️LCM-LoRA⚡️. Using AlbedoBase-XL v2.0 as base model.
Prediction
tgohblio/instant-id-albedobase-xl:8b6fd273e9a686af0a8a1e07d01fb89c9f26578de7a2ed8ae6297c6e48652eb5ID3o5hoe3bxgcozw2uu5jo3eygzeStatusSucceededSourceWebHardwareA40Total durationCreatedInput
- width
- 640
- height
- 640
- prompt
- watercolor animation by Ford Madox Brown and by cory godbey, intricate details, masterpiece, best quality, Manga style art, vibrant, colourful, high-energy, detailed, iconic, Japanese comic style, manga, looking at viewer, dynamic pose in the style of nicola samori
- 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
- 20
- controlnet_conditioning_scale
- 0.5
{ "image": "https://replicate.delivery/pbxt/KIZJ9r1fqATmNEOsDRW6B2Infl1Fu2q8psh9BMfRVfog2BkV/bp_lisa.png", "width": 640, "height": 640, "prompt": "watercolor animation by Ford Madox Brown and by cory godbey, intricate details, masterpiece, best quality, Manga style art, vibrant, colourful, high-energy, detailed, iconic, Japanese comic style, manga, looking at viewer, dynamic pose in the style of nicola samori", "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": 20, "controlnet_conditioning_scale": 0.5 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; 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/KIZJ9r1fqATmNEOsDRW6B2Infl1Fu2q8psh9BMfRVfog2BkV/bp_lisa.png", width: 640, height: 640, prompt: "watercolor animation by Ford Madox Brown and by cory godbey, intricate details, masterpiece, best quality, Manga style art, vibrant, colourful, high-energy, detailed, iconic, Japanese comic style, manga, looking at viewer, dynamic pose in the style of nicola samori", 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: 20, 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.
Install Replicate’s Python client library:pip install replicate
Import the client: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/KIZJ9r1fqATmNEOsDRW6B2Infl1Fu2q8psh9BMfRVfog2BkV/bp_lisa.png", "width": 640, "height": 640, "prompt": "watercolor animation by Ford Madox Brown and by cory godbey, intricate details, masterpiece, best quality, Manga style art, vibrant, colourful, high-energy, detailed, iconic, Japanese comic style, manga, looking at viewer, dynamic pose in the style of nicola samori", "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": 20, "controlnet_conditioning_scale": 0.5 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
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/KIZJ9r1fqATmNEOsDRW6B2Infl1Fu2q8psh9BMfRVfog2BkV/bp_lisa.png", "width": 640, "height": 640, "prompt": "watercolor animation by Ford Madox Brown and by cory godbey, intricate details, masterpiece, best quality, Manga style art, vibrant, colourful, high-energy, detailed, iconic, Japanese comic style, manga, looking at viewer, dynamic pose in the style of nicola samori", "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": 20, "controlnet_conditioning_scale": 0.5 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-01-27T09:45:16.684409Z", "created_at": "2024-01-27T09:44:54.015347Z", "data_removed": false, "error": null, "id": "3o5hoe3bxgcozw2uu5jo3eygze", "input": { "image": "https://replicate.delivery/pbxt/KIZJ9r1fqATmNEOsDRW6B2Infl1Fu2q8psh9BMfRVfog2BkV/bp_lisa.png", "width": 640, "height": 640, "prompt": "watercolor animation by Ford Madox Brown and by cory godbey, intricate details, masterpiece, best quality, Manga style art, vibrant, colourful, high-energy, detailed, iconic, Japanese comic style, manga, looking at viewer, dynamic pose in the style of nicola samori", "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": 20, "controlnet_conditioning_scale": 0.5 }, "logs": "0%| | 0/20 [00:00<?, ?it/s]\n 5%|▌ | 1/20 [00:00<00:06, 2.99it/s]\n 10%|█ | 2/20 [00:00<00:06, 2.99it/s]\n 15%|█▌ | 3/20 [00:01<00:05, 2.97it/s]\n 20%|██ | 4/20 [00:01<00:05, 2.97it/s]\n 25%|██▌ | 5/20 [00:01<00:05, 2.97it/s]\n 30%|███ | 6/20 [00:02<00:04, 2.97it/s]\n 35%|███▌ | 7/20 [00:02<00:04, 2.96it/s]\n 40%|████ | 8/20 [00:02<00:04, 2.96it/s]\n 45%|████▌ | 9/20 [00:03<00:03, 2.96it/s]\n 50%|█████ | 10/20 [00:03<00:03, 2.96it/s]\n 55%|█████▌ | 11/20 [00:03<00:03, 2.97it/s]\n 60%|██████ | 12/20 [00:04<00:02, 2.97it/s]\n 65%|██████▌ | 13/20 [00:04<00:02, 2.97it/s]\n 70%|███████ | 14/20 [00:04<00:02, 2.98it/s]\n 75%|███████▌ | 15/20 [00:05<00:01, 2.98it/s]\n 80%|████████ | 16/20 [00:05<00:01, 2.98it/s]\n 85%|████████▌ | 17/20 [00:05<00:01, 2.98it/s]\n 90%|█████████ | 18/20 [00:06<00:00, 2.98it/s]\n 95%|█████████▌| 19/20 [00:06<00:00, 2.98it/s]\n100%|██████████| 20/20 [00:06<00:00, 2.98it/s]\n100%|██████████| 20/20 [00:06<00:00, 2.97it/s]", "metrics": { "predict_time": 22.632629, "total_time": 22.669062 }, "output": "https://replicate.delivery/pbxt/tS3ZSfTEkASFVKAWnXFFNZ9yKOWKeQMy5jrIUDVOHZYrKoQSA/result.jpg", "started_at": "2024-01-27T09:44:54.051780Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/3o5hoe3bxgcozw2uu5jo3eygze", "cancel": "https://api.replicate.com/v1/predictions/3o5hoe3bxgcozw2uu5jo3eygze/cancel" }, "version": "8b6fd273e9a686af0a8a1e07d01fb89c9f26578de7a2ed8ae6297c6e48652eb5" }
Generated in0%| | 0/20 [00:00<?, ?it/s] 5%|▌ | 1/20 [00:00<00:06, 2.99it/s] 10%|█ | 2/20 [00:00<00:06, 2.99it/s] 15%|█▌ | 3/20 [00:01<00:05, 2.97it/s] 20%|██ | 4/20 [00:01<00:05, 2.97it/s] 25%|██▌ | 5/20 [00:01<00:05, 2.97it/s] 30%|███ | 6/20 [00:02<00:04, 2.97it/s] 35%|███▌ | 7/20 [00:02<00:04, 2.96it/s] 40%|████ | 8/20 [00:02<00:04, 2.96it/s] 45%|████▌ | 9/20 [00:03<00:03, 2.96it/s] 50%|█████ | 10/20 [00:03<00:03, 2.96it/s] 55%|█████▌ | 11/20 [00:03<00:03, 2.97it/s] 60%|██████ | 12/20 [00:04<00:02, 2.97it/s] 65%|██████▌ | 13/20 [00:04<00:02, 2.97it/s] 70%|███████ | 14/20 [00:04<00:02, 2.98it/s] 75%|███████▌ | 15/20 [00:05<00:01, 2.98it/s] 80%|████████ | 16/20 [00:05<00:01, 2.98it/s] 85%|████████▌ | 17/20 [00:05<00:01, 2.98it/s] 90%|█████████ | 18/20 [00:06<00:00, 2.98it/s] 95%|█████████▌| 19/20 [00:06<00:00, 2.98it/s] 100%|██████████| 20/20 [00:06<00:00, 2.98it/s] 100%|██████████| 20/20 [00:06<00:00, 2.97it/s]
Prediction
tgohblio/instant-id-albedobase-xl:8b6fd273e9a686af0a8a1e07d01fb89c9f26578de7a2ed8ae6297c6e48652eb5IDfvzhz6dbmiyylqhs5qfarecvoyStatusSucceededSourceWebHardwareA40Total durationCreatedInput
- 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
{ "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 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; 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.
Install Replicate’s Python client library:pip install replicate
Import the client: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.
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.
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" }
Generated in0%| | 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]
Prediction
tgohblio/instant-id-albedobase-xl:8b6fd273e9a686af0a8a1e07d01fb89c9f26578de7a2ed8ae6297c6e48652eb5IDaafaug3bnghfvmo5q3mjb7namyStatusSucceededSourceWebHardwareA40Total durationCreatedInput
- width
- 768
- height
- 1024
- prompt
- RAW photo, masterpiece, a beautiful sexy woman radiates exceptional beauty and sophistication, Her porcelain-like skin enhances her captivating aura, youthful love and desire, Alluring Realism, vivid and well-defined colorful details, award winning, 8K, natural lighting, amazing composition, balanced and dynamic, intricate details, subsurface scattering, amazing textures, filmic, chiaroscuro, soft light, captured on Kodak Portra 400
- guidance_scale
- 7
- negative_prompt
- nsfw,
- ip_adapter_scale
- 0.5
- num_inference_steps
- 30
- controlnet_conditioning_scale
- 0.5
{ "image": "https://replicate.delivery/pbxt/KIZd9kRkO0XK7dWHQr0UaehvM9schNshgYJ3F0pg1ie4Fyc4/bp_lisa.png", "width": 768, "height": 1024, "prompt": "RAW photo, masterpiece, a beautiful sexy woman radiates exceptional beauty and sophistication, Her porcelain-like skin enhances her captivating aura, youthful love and desire, Alluring Realism, vivid and well-defined colorful details, award winning, 8K, natural lighting, amazing composition, balanced and dynamic, intricate details, subsurface scattering, amazing textures, filmic, chiaroscuro, soft light, captured on Kodak Portra 400", "guidance_scale": 7, "negative_prompt": "nsfw,", "ip_adapter_scale": 0.5, "num_inference_steps": 30, "controlnet_conditioning_scale": 0.5 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; 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/KIZd9kRkO0XK7dWHQr0UaehvM9schNshgYJ3F0pg1ie4Fyc4/bp_lisa.png", width: 768, height: 1024, prompt: "RAW photo, masterpiece, a beautiful sexy woman radiates exceptional beauty and sophistication, Her porcelain-like skin enhances her captivating aura, youthful love and desire, Alluring Realism, vivid and well-defined colorful details, award winning, 8K, natural lighting, amazing composition, balanced and dynamic, intricate details, subsurface scattering, amazing textures, filmic, chiaroscuro, soft light, captured on Kodak Portra 400", guidance_scale: 7, negative_prompt: "nsfw,", ip_adapter_scale: 0.5, num_inference_steps: 30, 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.
Install Replicate’s Python client library:pip install replicate
Import the client: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/KIZd9kRkO0XK7dWHQr0UaehvM9schNshgYJ3F0pg1ie4Fyc4/bp_lisa.png", "width": 768, "height": 1024, "prompt": "RAW photo, masterpiece, a beautiful sexy woman radiates exceptional beauty and sophistication, Her porcelain-like skin enhances her captivating aura, youthful love and desire, Alluring Realism, vivid and well-defined colorful details, award winning, 8K, natural lighting, amazing composition, balanced and dynamic, intricate details, subsurface scattering, amazing textures, filmic, chiaroscuro, soft light, captured on Kodak Portra 400", "guidance_scale": 7, "negative_prompt": "nsfw,", "ip_adapter_scale": 0.5, "num_inference_steps": 30, "controlnet_conditioning_scale": 0.5 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
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/KIZd9kRkO0XK7dWHQr0UaehvM9schNshgYJ3F0pg1ie4Fyc4/bp_lisa.png", "width": 768, "height": 1024, "prompt": "RAW photo, masterpiece, a beautiful sexy woman radiates exceptional beauty and sophistication, Her porcelain-like skin enhances her captivating aura, youthful love and desire, Alluring Realism, vivid and well-defined colorful details, award winning, 8K, natural lighting, amazing composition, balanced and dynamic, intricate details, subsurface scattering, amazing textures, filmic, chiaroscuro, soft light, captured on Kodak Portra 400", "guidance_scale": 7, "negative_prompt": "nsfw,", "ip_adapter_scale": 0.5, "num_inference_steps": 30, "controlnet_conditioning_scale": 0.5 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-01-27T10:06:19.367267Z", "created_at": "2024-01-27T10:06:00.459380Z", "data_removed": false, "error": null, "id": "aafaug3bnghfvmo5q3mjb7namy", "input": { "image": "https://replicate.delivery/pbxt/KIZd9kRkO0XK7dWHQr0UaehvM9schNshgYJ3F0pg1ie4Fyc4/bp_lisa.png", "width": 768, "height": 1024, "prompt": "RAW photo, masterpiece, a beautiful sexy woman radiates exceptional beauty and sophistication, Her porcelain-like skin enhances her captivating aura, youthful love and desire, Alluring Realism, vivid and well-defined colorful details, award winning, 8K, natural lighting, amazing composition, balanced and dynamic, intricate details, subsurface scattering, amazing textures, filmic, chiaroscuro, soft light, captured on Kodak Portra 400", "guidance_scale": 7, "negative_prompt": "nsfw,", "ip_adapter_scale": 0.5, "num_inference_steps": 30, "controlnet_conditioning_scale": 0.5 }, "logs": "The following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['aroscuro, soft light, captured on kodak portra 4 0 0']\nThe following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['aroscuro, soft light, captured on kodak portra 4 0 0']\n 0%| | 0/30 [00:00<?, ?it/s]\n 3%|▎ | 1/30 [00:00<00:09, 2.96it/s]\n 7%|▋ | 2/30 [00:00<00:09, 2.95it/s]\n 10%|█ | 3/30 [00:01<00:09, 2.94it/s]\n 13%|█▎ | 4/30 [00:01<00:08, 2.94it/s]\n 17%|█▋ | 5/30 [00:01<00:08, 2.94it/s]\n 20%|██ | 6/30 [00:02<00:08, 2.93it/s]\n 23%|██▎ | 7/30 [00:02<00:07, 2.94it/s]\n 27%|██▋ | 8/30 [00:02<00:07, 2.95it/s]\n 30%|███ | 9/30 [00:03<00:07, 2.95it/s]\n 33%|███▎ | 10/30 [00:03<00:06, 2.95it/s]\n 37%|███▋ | 11/30 [00:03<00:06, 2.95it/s]\n 40%|████ | 12/30 [00:04<00:06, 2.95it/s]\n 43%|████▎ | 13/30 [00:04<00:05, 2.95it/s]\n 47%|████▋ | 14/30 [00:04<00:05, 2.95it/s]\n 50%|█████ | 15/30 [00:05<00:05, 2.95it/s]\n 53%|█████▎ | 16/30 [00:05<00:04, 2.95it/s]\n 57%|█████▋ | 17/30 [00:05<00:04, 2.94it/s]\n 60%|██████ | 18/30 [00:06<00:04, 2.95it/s]\n 63%|██████▎ | 19/30 [00:06<00:03, 2.95it/s]\n 67%|██████▋ | 20/30 [00:06<00:03, 2.94it/s]\n 70%|███████ | 21/30 [00:07<00:03, 2.95it/s]\n 73%|███████▎ | 22/30 [00:07<00:02, 2.94it/s]\n 77%|███████▋ | 23/30 [00:07<00:02, 2.94it/s]\n 80%|████████ | 24/30 [00:08<00:02, 2.94it/s]\n 83%|████████▎ | 25/30 [00:08<00:01, 2.94it/s]\n 87%|████████▋ | 26/30 [00:08<00:01, 2.94it/s]\n 90%|█████████ | 27/30 [00:09<00:01, 2.94it/s]\n 93%|█████████▎| 28/30 [00:09<00:00, 2.94it/s]\n 97%|█████████▋| 29/30 [00:09<00:00, 2.94it/s]\n100%|██████████| 30/30 [00:10<00:00, 2.94it/s]\n100%|██████████| 30/30 [00:10<00:00, 2.94it/s]", "metrics": { "predict_time": 18.869448, "total_time": 18.907887 }, "output": "https://replicate.delivery/pbxt/sFHxzJ9IafxFZioVexFCoeIev8G3ueuzbXK8UlVjxYuUzDFSC/result.jpg", "started_at": "2024-01-27T10:06:00.497819Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/aafaug3bnghfvmo5q3mjb7namy", "cancel": "https://api.replicate.com/v1/predictions/aafaug3bnghfvmo5q3mjb7namy/cancel" }, "version": "8b6fd273e9a686af0a8a1e07d01fb89c9f26578de7a2ed8ae6297c6e48652eb5" }
Generated inThe following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['aroscuro, soft light, captured on kodak portra 4 0 0'] The following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['aroscuro, soft light, captured on kodak portra 4 0 0'] 0%| | 0/30 [00:00<?, ?it/s] 3%|▎ | 1/30 [00:00<00:09, 2.96it/s] 7%|▋ | 2/30 [00:00<00:09, 2.95it/s] 10%|█ | 3/30 [00:01<00:09, 2.94it/s] 13%|█▎ | 4/30 [00:01<00:08, 2.94it/s] 17%|█▋ | 5/30 [00:01<00:08, 2.94it/s] 20%|██ | 6/30 [00:02<00:08, 2.93it/s] 23%|██▎ | 7/30 [00:02<00:07, 2.94it/s] 27%|██▋ | 8/30 [00:02<00:07, 2.95it/s] 30%|███ | 9/30 [00:03<00:07, 2.95it/s] 33%|███▎ | 10/30 [00:03<00:06, 2.95it/s] 37%|███▋ | 11/30 [00:03<00:06, 2.95it/s] 40%|████ | 12/30 [00:04<00:06, 2.95it/s] 43%|████▎ | 13/30 [00:04<00:05, 2.95it/s] 47%|████▋ | 14/30 [00:04<00:05, 2.95it/s] 50%|█████ | 15/30 [00:05<00:05, 2.95it/s] 53%|█████▎ | 16/30 [00:05<00:04, 2.95it/s] 57%|█████▋ | 17/30 [00:05<00:04, 2.94it/s] 60%|██████ | 18/30 [00:06<00:04, 2.95it/s] 63%|██████▎ | 19/30 [00:06<00:03, 2.95it/s] 67%|██████▋ | 20/30 [00:06<00:03, 2.94it/s] 70%|███████ | 21/30 [00:07<00:03, 2.95it/s] 73%|███████▎ | 22/30 [00:07<00:02, 2.94it/s] 77%|███████▋ | 23/30 [00:07<00:02, 2.94it/s] 80%|████████ | 24/30 [00:08<00:02, 2.94it/s] 83%|████████▎ | 25/30 [00:08<00:01, 2.94it/s] 87%|████████▋ | 26/30 [00:08<00:01, 2.94it/s] 90%|█████████ | 27/30 [00:09<00:01, 2.94it/s] 93%|█████████▎| 28/30 [00:09<00:00, 2.94it/s] 97%|█████████▋| 29/30 [00:09<00:00, 2.94it/s] 100%|██████████| 30/30 [00:10<00:00, 2.94it/s] 100%|██████████| 30/30 [00:10<00:00, 2.94it/s]
Prediction
tgohblio/instant-id-albedobase-xl:8b6fd273e9a686af0a8a1e07d01fb89c9f26578de7a2ed8ae6297c6e48652eb5ID3q4xrftbdbefafinpoyxttm7qqStatusSucceededSourceWebHardwareA40Total durationCreatedInput
- width
- 640
- height
- 640
- prompt
- RAW photo, masterpiece, a beautiful sexy woman radiates exceptional beauty and sophistication, Her porcelain-like skin enhances her captivating aura, embodying the essence of youthful love and desire, Alluring Realism, vivid and well-defined colorful details, award winning, Showcasing extreme details at 8K resolution, natural lighting, amazing composition, carefully designed composition, balanced and dynamic, intricate details, subsurface scattering, amazing textures, filmic, chiaroscuro, soft light, captured on Kodak Portra 400
- guidance_scale
- 7
- negative_prompt
- nsfw,
- ip_adapter_scale
- 0.5
- num_inference_steps
- 30
- controlnet_conditioning_scale
- 0.5
{ "image": "https://replicate.delivery/pbxt/KIZaORDkSQiLnGk5MBcLNIc7WTv7J3CNXK4KsQAzV7p6IOgh/bp_lisa.png", "width": 640, "height": 640, "prompt": "RAW photo, masterpiece, a beautiful sexy woman radiates exceptional beauty and sophistication, Her porcelain-like skin enhances her captivating aura, embodying the essence of youthful love and desire, Alluring Realism, vivid and well-defined colorful details, award winning, Showcasing extreme details at 8K resolution, natural lighting, amazing composition, carefully designed composition, balanced and dynamic, intricate details, subsurface scattering, amazing textures, filmic, chiaroscuro, soft light, captured on Kodak Portra 400", "guidance_scale": 7, "negative_prompt": "nsfw,", "ip_adapter_scale": 0.5, "num_inference_steps": 30, "controlnet_conditioning_scale": 0.5 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; 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/KIZaORDkSQiLnGk5MBcLNIc7WTv7J3CNXK4KsQAzV7p6IOgh/bp_lisa.png", width: 640, height: 640, prompt: "RAW photo, masterpiece, a beautiful sexy woman radiates exceptional beauty and sophistication, Her porcelain-like skin enhances her captivating aura, embodying the essence of youthful love and desire, Alluring Realism, vivid and well-defined colorful details, award winning, Showcasing extreme details at 8K resolution, natural lighting, amazing composition, carefully designed composition, balanced and dynamic, intricate details, subsurface scattering, amazing textures, filmic, chiaroscuro, soft light, captured on Kodak Portra 400", guidance_scale: 7, negative_prompt: "nsfw,", ip_adapter_scale: 0.5, num_inference_steps: 30, 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.
Install Replicate’s Python client library:pip install replicate
Import the client: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/KIZaORDkSQiLnGk5MBcLNIc7WTv7J3CNXK4KsQAzV7p6IOgh/bp_lisa.png", "width": 640, "height": 640, "prompt": "RAW photo, masterpiece, a beautiful sexy woman radiates exceptional beauty and sophistication, Her porcelain-like skin enhances her captivating aura, embodying the essence of youthful love and desire, Alluring Realism, vivid and well-defined colorful details, award winning, Showcasing extreme details at 8K resolution, natural lighting, amazing composition, carefully designed composition, balanced and dynamic, intricate details, subsurface scattering, amazing textures, filmic, chiaroscuro, soft light, captured on Kodak Portra 400", "guidance_scale": 7, "negative_prompt": "nsfw,", "ip_adapter_scale": 0.5, "num_inference_steps": 30, "controlnet_conditioning_scale": 0.5 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
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/KIZaORDkSQiLnGk5MBcLNIc7WTv7J3CNXK4KsQAzV7p6IOgh/bp_lisa.png", "width": 640, "height": 640, "prompt": "RAW photo, masterpiece, a beautiful sexy woman radiates exceptional beauty and sophistication, Her porcelain-like skin enhances her captivating aura, embodying the essence of youthful love and desire, Alluring Realism, vivid and well-defined colorful details, award winning, Showcasing extreme details at 8K resolution, natural lighting, amazing composition, carefully designed composition, balanced and dynamic, intricate details, subsurface scattering, amazing textures, filmic, chiaroscuro, soft light, captured on Kodak Portra 400", "guidance_scale": 7, "negative_prompt": "nsfw,", "ip_adapter_scale": 0.5, "num_inference_steps": 30, "controlnet_conditioning_scale": 0.5 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-01-27T10:03:24.720535Z", "created_at": "2024-01-27T10:03:05.715841Z", "data_removed": false, "error": null, "id": "3q4xrftbdbefafinpoyxttm7qq", "input": { "image": "https://replicate.delivery/pbxt/KIZaORDkSQiLnGk5MBcLNIc7WTv7J3CNXK4KsQAzV7p6IOgh/bp_lisa.png", "width": 640, "height": 640, "prompt": "RAW photo, masterpiece, a beautiful sexy woman radiates exceptional beauty and sophistication, Her porcelain-like skin enhances her captivating aura, embodying the essence of youthful love and desire, Alluring Realism, vivid and well-defined colorful details, award winning, Showcasing extreme details at 8K resolution, natural lighting, amazing composition, carefully designed composition, balanced and dynamic, intricate details, subsurface scattering, amazing textures, filmic, chiaroscuro, soft light, captured on Kodak Portra 400", "guidance_scale": 7, "negative_prompt": "nsfw,", "ip_adapter_scale": 0.5, "num_inference_steps": 30, "controlnet_conditioning_scale": 0.5 }, "logs": "The following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['details, subsurface scattering, amazing textures, filmic, chiaroscuro, soft light, captured on kodak portra 4 0 0']\nThe following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['details, subsurface scattering, amazing textures, filmic, chiaroscuro, soft light, captured on kodak portra 4 0 0']\n 0%| | 0/30 [00:00<?, ?it/s]\n 3%|▎ | 1/30 [00:00<00:09, 2.98it/s]\n 7%|▋ | 2/30 [00:00<00:09, 2.97it/s]\n 10%|█ | 3/30 [00:01<00:09, 2.96it/s]\n 13%|█▎ | 4/30 [00:01<00:08, 2.95it/s]\n 17%|█▋ | 5/30 [00:01<00:08, 2.95it/s]\n 20%|██ | 6/30 [00:02<00:08, 2.95it/s]\n 23%|██▎ | 7/30 [00:02<00:07, 2.95it/s]\n 27%|██▋ | 8/30 [00:02<00:07, 2.95it/s]\n 30%|███ | 9/30 [00:03<00:07, 2.94it/s]\n 33%|███▎ | 10/30 [00:03<00:06, 2.94it/s]\n 37%|███▋ | 11/30 [00:03<00:06, 2.94it/s]\n 40%|████ | 12/30 [00:04<00:06, 2.94it/s]\n 43%|████▎ | 13/30 [00:04<00:05, 2.94it/s]\n 47%|████▋ | 14/30 [00:04<00:05, 2.94it/s]\n 50%|█████ | 15/30 [00:05<00:05, 2.94it/s]\n 53%|█████▎ | 16/30 [00:05<00:04, 2.95it/s]\n 57%|█████▋ | 17/30 [00:05<00:04, 2.95it/s]\n 60%|██████ | 18/30 [00:06<00:04, 2.95it/s]\n 63%|██████▎ | 19/30 [00:06<00:03, 2.95it/s]\n 67%|██████▋ | 20/30 [00:06<00:03, 2.96it/s]\n 70%|███████ | 21/30 [00:07<00:03, 2.96it/s]\n 73%|███████▎ | 22/30 [00:07<00:02, 2.96it/s]\n 77%|███████▋ | 23/30 [00:07<00:02, 2.96it/s]\n 80%|████████ | 24/30 [00:08<00:02, 2.95it/s]\n 83%|████████▎ | 25/30 [00:08<00:01, 2.95it/s]\n 87%|████████▋ | 26/30 [00:08<00:01, 2.96it/s]\n 90%|█████████ | 27/30 [00:09<00:01, 2.95it/s]\n 93%|█████████▎| 28/30 [00:09<00:00, 2.95it/s]\n 97%|█████████▋| 29/30 [00:09<00:00, 2.95it/s]\n100%|██████████| 30/30 [00:10<00:00, 2.95it/s]\n100%|██████████| 30/30 [00:10<00:00, 2.95it/s]", "metrics": { "predict_time": 18.907897, "total_time": 19.004694 }, "output": "https://replicate.delivery/pbxt/pLU4R2TUC3JYFlv3VgPsCGclhfMWVfwxen0cDSfzhDPuuhCJB/result.jpg", "started_at": "2024-01-27T10:03:05.812638Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/3q4xrftbdbefafinpoyxttm7qq", "cancel": "https://api.replicate.com/v1/predictions/3q4xrftbdbefafinpoyxttm7qq/cancel" }, "version": "8b6fd273e9a686af0a8a1e07d01fb89c9f26578de7a2ed8ae6297c6e48652eb5" }
Generated inThe following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['details, subsurface scattering, amazing textures, filmic, chiaroscuro, soft light, captured on kodak portra 4 0 0'] The following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['details, subsurface scattering, amazing textures, filmic, chiaroscuro, soft light, captured on kodak portra 4 0 0'] 0%| | 0/30 [00:00<?, ?it/s] 3%|▎ | 1/30 [00:00<00:09, 2.98it/s] 7%|▋ | 2/30 [00:00<00:09, 2.97it/s] 10%|█ | 3/30 [00:01<00:09, 2.96it/s] 13%|█▎ | 4/30 [00:01<00:08, 2.95it/s] 17%|█▋ | 5/30 [00:01<00:08, 2.95it/s] 20%|██ | 6/30 [00:02<00:08, 2.95it/s] 23%|██▎ | 7/30 [00:02<00:07, 2.95it/s] 27%|██▋ | 8/30 [00:02<00:07, 2.95it/s] 30%|███ | 9/30 [00:03<00:07, 2.94it/s] 33%|███▎ | 10/30 [00:03<00:06, 2.94it/s] 37%|███▋ | 11/30 [00:03<00:06, 2.94it/s] 40%|████ | 12/30 [00:04<00:06, 2.94it/s] 43%|████▎ | 13/30 [00:04<00:05, 2.94it/s] 47%|████▋ | 14/30 [00:04<00:05, 2.94it/s] 50%|█████ | 15/30 [00:05<00:05, 2.94it/s] 53%|█████▎ | 16/30 [00:05<00:04, 2.95it/s] 57%|█████▋ | 17/30 [00:05<00:04, 2.95it/s] 60%|██████ | 18/30 [00:06<00:04, 2.95it/s] 63%|██████▎ | 19/30 [00:06<00:03, 2.95it/s] 67%|██████▋ | 20/30 [00:06<00:03, 2.96it/s] 70%|███████ | 21/30 [00:07<00:03, 2.96it/s] 73%|███████▎ | 22/30 [00:07<00:02, 2.96it/s] 77%|███████▋ | 23/30 [00:07<00:02, 2.96it/s] 80%|████████ | 24/30 [00:08<00:02, 2.95it/s] 83%|████████▎ | 25/30 [00:08<00:01, 2.95it/s] 87%|████████▋ | 26/30 [00:08<00:01, 2.96it/s] 90%|█████████ | 27/30 [00:09<00:01, 2.95it/s] 93%|█████████▎| 28/30 [00:09<00:00, 2.95it/s] 97%|█████████▋| 29/30 [00:09<00:00, 2.95it/s] 100%|██████████| 30/30 [00:10<00:00, 2.95it/s] 100%|██████████| 30/30 [00:10<00:00, 2.95it/s]
Prediction
tgohblio/instant-id-albedobase-xl:2a2afbff09996b53247b0714577d4ff82d2c9da8e8b00c5499b5b34510bb8b5eIDdn3wqrtbk3feiiksj42fiwnhdaStatusSucceededSourceWebHardwareA40Total durationCreatedInput
- width
- 768
- height
- 1024
- prompt
- graffiti illustration of a handsome man, smouldering eyes, full body portrait, highly detailed, 4K, sharp focus, masterpiece
- guidance_scale
- 0
- safety_checker
- negative_prompt
- amateur quality, blurry, soft, wrong perspective, wrong angle, ugly, dowdy style, grainy
- ip_adapter_scale
- 0.9
- num_inference_steps
- 6
- controlnet_conditioning_scale
- 0.7
{ "image": "https://replicate.delivery/pbxt/KJMvqQyvakg1ENmhazdwv5Ef8QAWhw8MU2NFeikb5h1enWyf/george-michael.jpg", "width": 768, "height": 1024, "prompt": "graffiti illustration of a handsome man, smouldering eyes, full body portrait, highly detailed, 4K, sharp focus, masterpiece", "guidance_scale": 0, "safety_checker": true, "negative_prompt": "amateur quality, blurry, soft, wrong perspective, wrong angle, ugly, dowdy style, grainy", "ip_adapter_scale": 0.9, "num_inference_steps": 6, "controlnet_conditioning_scale": 0.7 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; 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/KJMvqQyvakg1ENmhazdwv5Ef8QAWhw8MU2NFeikb5h1enWyf/george-michael.jpg", width: 768, height: 1024, prompt: "graffiti illustration of a handsome man, smouldering eyes, full body portrait, highly detailed, 4K, sharp focus, masterpiece", guidance_scale: 0, safety_checker: true, negative_prompt: "amateur quality, blurry, soft, wrong perspective, wrong angle, ugly, dowdy style, grainy", ip_adapter_scale: 0.9, num_inference_steps: 6, controlnet_conditioning_scale: 0.7 } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client: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/KJMvqQyvakg1ENmhazdwv5Ef8QAWhw8MU2NFeikb5h1enWyf/george-michael.jpg", "width": 768, "height": 1024, "prompt": "graffiti illustration of a handsome man, smouldering eyes, full body portrait, highly detailed, 4K, sharp focus, masterpiece", "guidance_scale": 0, "safety_checker": True, "negative_prompt": "amateur quality, blurry, soft, wrong perspective, wrong angle, ugly, dowdy style, grainy", "ip_adapter_scale": 0.9, "num_inference_steps": 6, "controlnet_conditioning_scale": 0.7 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
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/KJMvqQyvakg1ENmhazdwv5Ef8QAWhw8MU2NFeikb5h1enWyf/george-michael.jpg", "width": 768, "height": 1024, "prompt": "graffiti illustration of a handsome man, smouldering eyes, full body portrait, highly detailed, 4K, sharp focus, masterpiece", "guidance_scale": 0, "safety_checker": true, "negative_prompt": "amateur quality, blurry, soft, wrong perspective, wrong angle, ugly, dowdy style, grainy", "ip_adapter_scale": 0.9, "num_inference_steps": 6, "controlnet_conditioning_scale": 0.7 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-01-29T15:52:06.670530Z", "created_at": "2024-01-29T15:51:55.755063Z", "data_removed": false, "error": null, "id": "dn3wqrtbk3feiiksj42fiwnhda", "input": { "image": "https://replicate.delivery/pbxt/KJMvqQyvakg1ENmhazdwv5Ef8QAWhw8MU2NFeikb5h1enWyf/george-michael.jpg", "width": 768, "height": 1024, "prompt": "graffiti illustration of a handsome man, smouldering eyes, full body portrait, highly detailed, 4K, sharp focus, masterpiece", "guidance_scale": 0, "safety_checker": true, "negative_prompt": "amateur quality, blurry, soft, wrong perspective, wrong angle, ugly, dowdy style, grainy", "ip_adapter_scale": 0.9, "num_inference_steps": 6, "controlnet_conditioning_scale": 0.7 }, "logs": "0%| | 0/6 [00:00<?, ?it/s]\n 17%|█▋ | 1/6 [00:00<00:01, 3.66it/s]\n 33%|███▎ | 2/6 [00:00<00:01, 3.68it/s]\n 50%|█████ | 3/6 [00:00<00:00, 3.70it/s]\n 67%|██████▋ | 4/6 [00:01<00:00, 3.69it/s]\n 83%|████████▎ | 5/6 [00:01<00:00, 3.70it/s]\n100%|██████████| 6/6 [00:01<00:00, 3.70it/s]\n100%|██████████| 6/6 [00:01<00:00, 3.69it/s]", "metrics": { "predict_time": 10.863377, "total_time": 10.915467 }, "output": "https://replicate.delivery/pbxt/B5quWffBclntEk2BN3SI6N474ZhX1I3gQBtZdVSHnBpluXRSA/result.jpg", "started_at": "2024-01-29T15:51:55.807153Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/dn3wqrtbk3feiiksj42fiwnhda", "cancel": "https://api.replicate.com/v1/predictions/dn3wqrtbk3feiiksj42fiwnhda/cancel" }, "version": "2a2afbff09996b53247b0714577d4ff82d2c9da8e8b00c5499b5b34510bb8b5e" }
Generated in0%| | 0/6 [00:00<?, ?it/s] 17%|█▋ | 1/6 [00:00<00:01, 3.66it/s] 33%|███▎ | 2/6 [00:00<00:01, 3.68it/s] 50%|█████ | 3/6 [00:00<00:00, 3.70it/s] 67%|██████▋ | 4/6 [00:01<00:00, 3.69it/s] 83%|████████▎ | 5/6 [00:01<00:00, 3.70it/s] 100%|██████████| 6/6 [00:01<00:00, 3.70it/s] 100%|██████████| 6/6 [00:01<00:00, 3.69it/s]
Prediction
tgohblio/instant-id-albedobase-xl:2a2afbff09996b53247b0714577d4ff82d2c9da8e8b00c5499b5b34510bb8b5eIDzuu7mqlbxszvb3jfwvpts36gkuStatusSucceededSourceWebHardwareA40Total durationCreatedInput
- width
- 768
- height
- 1024
- prompt
- painting of a handsome man in the style of golden light, sandalpunk, realistic and hyper-detailed renderings | precisionist, romanticized landscapes, hyper-realistic detailed character illustrations
- guidance_scale
- 0
- safety_checker
- negative_prompt
- amateur quality, blurry, soft, wrong perspective, wrong angle, ugly, dowdy style, grainy
- ip_adapter_scale
- 0.9
- num_inference_steps
- 6
- controlnet_conditioning_scale
- 0.7
{ "image": "https://replicate.delivery/pbxt/KJN1iUhfotriSgNyb05O0NETt8dJR6TGm3utYLYzHSShHAVA/george-michael.jpg", "width": 768, "height": 1024, "prompt": "painting of a handsome man in the style of golden light, sandalpunk, realistic and hyper-detailed renderings | precisionist, romanticized landscapes, hyper-realistic detailed character illustrations", "guidance_scale": 0, "safety_checker": true, "negative_prompt": "amateur quality, blurry, soft, wrong perspective, wrong angle, ugly, dowdy style, grainy", "ip_adapter_scale": 0.9, "num_inference_steps": 6, "controlnet_conditioning_scale": 0.7 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; 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/KJN1iUhfotriSgNyb05O0NETt8dJR6TGm3utYLYzHSShHAVA/george-michael.jpg", width: 768, height: 1024, prompt: "painting of a handsome man in the style of golden light, sandalpunk, realistic and hyper-detailed renderings | precisionist, romanticized landscapes, hyper-realistic detailed character illustrations", guidance_scale: 0, safety_checker: true, negative_prompt: "amateur quality, blurry, soft, wrong perspective, wrong angle, ugly, dowdy style, grainy", ip_adapter_scale: 0.9, num_inference_steps: 6, controlnet_conditioning_scale: 0.7 } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client: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/KJN1iUhfotriSgNyb05O0NETt8dJR6TGm3utYLYzHSShHAVA/george-michael.jpg", "width": 768, "height": 1024, "prompt": "painting of a handsome man in the style of golden light, sandalpunk, realistic and hyper-detailed renderings | precisionist, romanticized landscapes, hyper-realistic detailed character illustrations", "guidance_scale": 0, "safety_checker": True, "negative_prompt": "amateur quality, blurry, soft, wrong perspective, wrong angle, ugly, dowdy style, grainy", "ip_adapter_scale": 0.9, "num_inference_steps": 6, "controlnet_conditioning_scale": 0.7 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
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/KJN1iUhfotriSgNyb05O0NETt8dJR6TGm3utYLYzHSShHAVA/george-michael.jpg", "width": 768, "height": 1024, "prompt": "painting of a handsome man in the style of golden light, sandalpunk, realistic and hyper-detailed renderings | precisionist, romanticized landscapes, hyper-realistic detailed character illustrations", "guidance_scale": 0, "safety_checker": true, "negative_prompt": "amateur quality, blurry, soft, wrong perspective, wrong angle, ugly, dowdy style, grainy", "ip_adapter_scale": 0.9, "num_inference_steps": 6, "controlnet_conditioning_scale": 0.7 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-01-29T15:58:23.736110Z", "created_at": "2024-01-29T15:58:06.385309Z", "data_removed": false, "error": null, "id": "zuu7mqlbxszvb3jfwvpts36gku", "input": { "image": "https://replicate.delivery/pbxt/KJN1iUhfotriSgNyb05O0NETt8dJR6TGm3utYLYzHSShHAVA/george-michael.jpg", "width": 768, "height": 1024, "prompt": "painting of a handsome man in the style of golden light, sandalpunk, realistic and hyper-detailed renderings | precisionist, romanticized landscapes, hyper-realistic detailed character illustrations", "guidance_scale": 0, "safety_checker": true, "negative_prompt": "amateur quality, blurry, soft, wrong perspective, wrong angle, ugly, dowdy style, grainy", "ip_adapter_scale": 0.9, "num_inference_steps": 6, "controlnet_conditioning_scale": 0.7 }, "logs": "[!] Resizing output to 768x1024\nset det-size: (768, 1024)\nwarning: det_size is already set in detection model, ignore\n 0%| | 0/6 [00:00<?, ?it/s]\n 17%|█▋ | 1/6 [00:00<00:01, 3.77it/s]\n 33%|███▎ | 2/6 [00:00<00:01, 3.76it/s]\n 50%|█████ | 3/6 [00:00<00:00, 3.76it/s]\n 67%|██████▋ | 4/6 [00:01<00:00, 3.75it/s]\n 83%|████████▎ | 5/6 [00:01<00:00, 3.74it/s]\n100%|██████████| 6/6 [00:01<00:00, 3.73it/s]\n100%|██████████| 6/6 [00:01<00:00, 3.74it/s]", "metrics": { "predict_time": 17.313608, "total_time": 17.350801 }, "output": "https://replicate.delivery/pbxt/f3JOhG5Z7yzoCSQwiC8mqYcMLq7wCnwq8e3XOyHK4JkeovikA/result.jpg", "started_at": "2024-01-29T15:58:06.422502Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/zuu7mqlbxszvb3jfwvpts36gku", "cancel": "https://api.replicate.com/v1/predictions/zuu7mqlbxszvb3jfwvpts36gku/cancel" }, "version": "2a2afbff09996b53247b0714577d4ff82d2c9da8e8b00c5499b5b34510bb8b5e" }
Generated in[!] Resizing output to 768x1024 set det-size: (768, 1024) warning: det_size is already set in detection model, ignore 0%| | 0/6 [00:00<?, ?it/s] 17%|█▋ | 1/6 [00:00<00:01, 3.77it/s] 33%|███▎ | 2/6 [00:00<00:01, 3.76it/s] 50%|█████ | 3/6 [00:00<00:00, 3.76it/s] 67%|██████▋ | 4/6 [00:01<00:00, 3.75it/s] 83%|████████▎ | 5/6 [00:01<00:00, 3.74it/s] 100%|██████████| 6/6 [00:01<00:00, 3.73it/s] 100%|██████████| 6/6 [00:01<00:00, 3.74it/s]
Prediction
tgohblio/instant-id-albedobase-xl:2a2afbff09996b53247b0714577d4ff82d2c9da8e8b00c5499b5b34510bb8b5eIDijftkk3br4nwm5assm6f6irq3mStatusSucceededSourceWebHardwareA40Total durationCreatedInput
- width
- 640
- height
- 640
- prompt
- photo of an attractive 25 year old European supermodel,long blond hair with style,naturally smiling face,full body shot,profile,wearing a fitted casual red color short slip dress,high heels,65mm lens,front light, night street runway Promenade Anglais , 8K
- guidance_scale
- 0
- safety_checker
- negative_prompt
- amateur quality, vague shapes, vague texture, wrong perspective, wrong angle, ugly, dowdy style, grainy
- ip_adapter_scale
- 0.8
- num_inference_steps
- 6
- controlnet_conditioning_scale
- 0.8
{ "image": "https://replicate.delivery/pbxt/KIuaBkQJUNjzsAce8hZDbWmKAdOYIhoeCcyA4EBoguEnhjDU/bp_lisa.png", "width": 640, "height": 640, "prompt": "photo of an attractive 25 year old European supermodel,long blond hair with style,naturally smiling face,full body shot,profile,wearing a fitted casual red color short slip dress,high heels,65mm lens,front light, night street runway Promenade Anglais , 8K", "guidance_scale": 0, "safety_checker": true, "negative_prompt": "amateur quality, vague shapes, vague texture, wrong perspective, wrong angle, ugly, dowdy style, grainy", "ip_adapter_scale": 0.8, "num_inference_steps": 6, "controlnet_conditioning_scale": 0.8 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; 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: "photo of an attractive 25 year old European supermodel,long blond hair with style,naturally smiling face,full body shot,profile,wearing a fitted casual red color short slip dress,high heels,65mm lens,front light, night street runway Promenade Anglais , 8K", guidance_scale: 0, safety_checker: true, negative_prompt: "amateur quality, vague shapes, vague texture, wrong perspective, wrong angle, ugly, dowdy style, grainy", ip_adapter_scale: 0.8, 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.
Install Replicate’s Python client library:pip install replicate
Import the client: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": "photo of an attractive 25 year old European supermodel,long blond hair with style,naturally smiling face,full body shot,profile,wearing a fitted casual red color short slip dress,high heels,65mm lens,front light, night street runway Promenade Anglais , 8K", "guidance_scale": 0, "safety_checker": True, "negative_prompt": "amateur quality, vague shapes, vague texture, wrong perspective, wrong angle, ugly, dowdy style, grainy", "ip_adapter_scale": 0.8, "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.
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": "photo of an attractive 25 year old European supermodel,long blond hair with style,naturally smiling face,full body shot,profile,wearing a fitted casual red color short slip dress,high heels,65mm lens,front light, night street runway Promenade Anglais , 8K", "guidance_scale": 0, "safety_checker": true, "negative_prompt": "amateur quality, vague shapes, vague texture, wrong perspective, wrong angle, ugly, dowdy style, grainy", "ip_adapter_scale": 0.8, "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.
Output
{ "completed_at": "2024-01-30T08:34:02.271398Z", "created_at": "2024-01-30T08:33:55.274284Z", "data_removed": false, "error": null, "id": "ijftkk3br4nwm5assm6f6irq3m", "input": { "image": "https://replicate.delivery/pbxt/KIuaBkQJUNjzsAce8hZDbWmKAdOYIhoeCcyA4EBoguEnhjDU/bp_lisa.png", "width": 640, "height": 640, "prompt": "photo of an attractive 25 year old European supermodel,long blond hair with style,naturally smiling face,full body shot,profile,wearing a fitted casual red color short slip dress,high heels,65mm lens,front light, night street runway Promenade Anglais , 8K", "guidance_scale": 0, "safety_checker": true, "negative_prompt": "amateur quality, vague shapes, vague texture, wrong perspective, wrong angle, ugly, dowdy style, grainy", "ip_adapter_scale": 0.8, "num_inference_steps": 6, "controlnet_conditioning_scale": 0.8 }, "logs": "0%| | 0/6 [00:00<?, ?it/s]\n 17%|█▋ | 1/6 [00:00<00:00, 5.38it/s]\n 33%|███▎ | 2/6 [00:00<00:00, 5.35it/s]\n 50%|█████ | 3/6 [00:00<00:00, 5.33it/s]\n 67%|██████▋ | 4/6 [00:00<00:00, 5.32it/s]\n 83%|████████▎ | 5/6 [00:00<00:00, 5.32it/s]\n100%|██████████| 6/6 [00:01<00:00, 5.32it/s]\n100%|██████████| 6/6 [00:01<00:00, 5.33it/s]", "metrics": { "predict_time": 6.961048, "total_time": 6.997114 }, "output": "https://replicate.delivery/pbxt/JXvgSdeohRxycSeCpzIAXscjqoC2QDU23rgqHBfe8lrnnZGJB/result.jpg", "started_at": "2024-01-30T08:33:55.310350Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/ijftkk3br4nwm5assm6f6irq3m", "cancel": "https://api.replicate.com/v1/predictions/ijftkk3br4nwm5assm6f6irq3m/cancel" }, "version": "2a2afbff09996b53247b0714577d4ff82d2c9da8e8b00c5499b5b34510bb8b5e" }
Generated in0%| | 0/6 [00:00<?, ?it/s] 17%|█▋ | 1/6 [00:00<00:00, 5.38it/s] 33%|███▎ | 2/6 [00:00<00:00, 5.35it/s] 50%|█████ | 3/6 [00:00<00:00, 5.33it/s] 67%|██████▋ | 4/6 [00:00<00:00, 5.32it/s] 83%|████████▎ | 5/6 [00:00<00:00, 5.32it/s] 100%|██████████| 6/6 [00:01<00:00, 5.32it/s] 100%|██████████| 6/6 [00:01<00:00, 5.33it/s]
Prediction
tgohblio/instant-id-albedobase-xl:2a2afbff09996b53247b0714577d4ff82d2c9da8e8b00c5499b5b34510bb8b5eID5q4a47dbdutjwx3tenmizjujk4StatusSucceededSourceWebHardwareA40Total durationCreatedInput
- image
- bp_lisa.png
- width
- 640
- height
- 640
- prompt
- A digital steampunk inventor with vibrant anime art style shines in a palette of dark bronze and pink, In the style of artists Shilin Huang and Guillaume Seignac. Exudes an aura of ingenious creativity, perfectly blending the elements of steampunk 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
- ip_adapter_scale
- 0.2
- num_inference_steps
- 6
- controlnet_conditioning_scale
- 0.8
{ "image": "https://replicate.delivery/pbxt/KIuaBkQJUNjzsAce8hZDbWmKAdOYIhoeCcyA4EBoguEnhjDU/bp_lisa.png", "width": 640, "height": 640, "prompt": "A digital steampunk inventor with vibrant anime art style shines in a palette of dark bronze and pink, In the style of artists Shilin Huang and Guillaume Seignac. Exudes an aura of ingenious creativity, perfectly blending the elements of steampunk 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": false, "ip_adapter_scale": 0.2, "num_inference_steps": 6, "controlnet_conditioning_scale": 0.8 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; 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 steampunk inventor with vibrant anime art style shines in a palette of dark bronze and pink, In the style of artists Shilin Huang and Guillaume Seignac. Exudes an aura of ingenious creativity, perfectly blending the elements of steampunk 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: false, 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.
Install Replicate’s Python client library:pip install replicate
Import the client: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 steampunk inventor with vibrant anime art style shines in a palette of dark bronze and pink, In the style of artists Shilin Huang and Guillaume Seignac. Exudes an aura of ingenious creativity, perfectly blending the elements of steampunk 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": False, "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.
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 steampunk inventor with vibrant anime art style shines in a palette of dark bronze and pink, In the style of artists Shilin Huang and Guillaume Seignac. Exudes an aura of ingenious creativity, perfectly blending the elements of steampunk 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": false, "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.
Output
{ "completed_at": "2024-02-01T13:35:50.272158Z", "created_at": "2024-02-01T13:35:25.019953Z", "data_removed": false, "error": null, "id": "5q4a47dbdutjwx3tenmizjujk4", "input": { "image": "https://replicate.delivery/pbxt/KIuaBkQJUNjzsAce8hZDbWmKAdOYIhoeCcyA4EBoguEnhjDU/bp_lisa.png", "width": 640, "height": 640, "prompt": "A digital steampunk inventor with vibrant anime art style shines in a palette of dark bronze and pink, In the style of artists Shilin Huang and Guillaume Seignac. Exudes an aura of ingenious creativity, perfectly blending the elements of steampunk 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": false, "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: ['her already captivating presence']\nThe following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['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.38it/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.36it/s]\n100%|██████████| 6/6 [00:01<00:00, 5.35it/s]\n100%|██████████| 6/6 [00:01<00:00, 5.36it/s]", "metrics": { "predict_time": 20.590792, "total_time": 25.252205 }, "output": "https://replicate.delivery/pbxt/t98B6UQZfq3IOaBoMPt6r3JePeFrtEEyNsEevBfhCNcpGoSSC/result.jpg", "started_at": "2024-02-01T13:35:29.681366Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/5q4a47dbdutjwx3tenmizjujk4", "cancel": "https://api.replicate.com/v1/predictions/5q4a47dbdutjwx3tenmizjujk4/cancel" }, "version": "2a2afbff09996b53247b0714577d4ff82d2c9da8e8b00c5499b5b34510bb8b5e" }
Generated inThe following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['her already captivating presence'] The following part of your input was truncated because CLIP can only handle sequences up to 77 tokens: ['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.38it/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.36it/s] 100%|██████████| 6/6 [00:01<00:00, 5.35it/s] 100%|██████████| 6/6 [00:01<00:00, 5.36it/s]
Prediction
tgohblio/instant-id-albedobase-xl:2a2afbff09996b53247b0714577d4ff82d2c9da8e8b00c5499b5b34510bb8b5eID4tdp3ylb5pqss6zg6xesbyc33aStatusSucceededSourceWebHardwareA40Total durationCreatedInput
- 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
- ip_adapter_scale
- 0.2
- num_inference_steps
- 6
- controlnet_conditioning_scale
- 0.8
{ "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 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; 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, 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.
Install Replicate’s Python client library:pip install replicate
Import the client: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, "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.
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, "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.
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" }
Generated inThe 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]
Prediction
tgohblio/instant-id-albedobase-xl:2a2afbff09996b53247b0714577d4ff82d2c9da8e8b00c5499b5b34510bb8b5eIDld7kjulbo72xixtgpn3vsl4tv4StatusSucceededSourceWebHardwareA40Total durationCreatedInput
- width
- 640
- height
- 640
- prompt
- photorealistic RAW photo by rob hefferan, fashionista woman wearing gorgeous floral dress with victorian hat, highly detailed skin pores, 4K, sharp focus, deep shadows, beautiful spring season, vibrant small flowers, masterpiece
- guidance_scale
- 0
- safety_checker
- negative_prompt
- amateur quality, vague shapes, vague texture, wrong perspective, wrong angle, ugly, dowdy style, grainy
- ip_adapter_scale
- 0.8
- num_inference_steps
- 6
- controlnet_conditioning_scale
- 0.8
{ "image": "https://replicate.delivery/pbxt/KIuaBkQJUNjzsAce8hZDbWmKAdOYIhoeCcyA4EBoguEnhjDU/bp_lisa.png", "width": 640, "height": 640, "prompt": "photorealistic RAW photo by rob hefferan, fashionista woman wearing gorgeous floral dress with victorian hat, highly detailed skin pores, 4K, sharp focus, deep shadows, beautiful spring season, vibrant small flowers, masterpiece", "guidance_scale": 0, "safety_checker": true, "negative_prompt": "amateur quality, vague shapes, vague texture, wrong perspective, wrong angle, ugly, dowdy style, grainy", "ip_adapter_scale": 0.8, "num_inference_steps": 6, "controlnet_conditioning_scale": 0.8 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; 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: "photorealistic RAW photo by rob hefferan, fashionista woman wearing gorgeous floral dress with victorian hat, highly detailed skin pores, 4K, sharp focus, deep shadows, beautiful spring season, vibrant small flowers, masterpiece", guidance_scale: 0, safety_checker: true, negative_prompt: "amateur quality, vague shapes, vague texture, wrong perspective, wrong angle, ugly, dowdy style, grainy", ip_adapter_scale: 0.8, 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.
Install Replicate’s Python client library:pip install replicate
Import the client: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": "photorealistic RAW photo by rob hefferan, fashionista woman wearing gorgeous floral dress with victorian hat, highly detailed skin pores, 4K, sharp focus, deep shadows, beautiful spring season, vibrant small flowers, masterpiece", "guidance_scale": 0, "safety_checker": True, "negative_prompt": "amateur quality, vague shapes, vague texture, wrong perspective, wrong angle, ugly, dowdy style, grainy", "ip_adapter_scale": 0.8, "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.
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": "photorealistic RAW photo by rob hefferan, fashionista woman wearing gorgeous floral dress with victorian hat, highly detailed skin pores, 4K, sharp focus, deep shadows, beautiful spring season, vibrant small flowers, masterpiece", "guidance_scale": 0, "safety_checker": true, "negative_prompt": "amateur quality, vague shapes, vague texture, wrong perspective, wrong angle, ugly, dowdy style, grainy", "ip_adapter_scale": 0.8, "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.
Output
{ "completed_at": "2024-01-28T08:57:12.115544Z", "created_at": "2024-01-28T08:56:57.964762Z", "data_removed": false, "error": null, "id": "ld7kjulbo72xixtgpn3vsl4tv4", "input": { "image": "https://replicate.delivery/pbxt/KIuaBkQJUNjzsAce8hZDbWmKAdOYIhoeCcyA4EBoguEnhjDU/bp_lisa.png", "width": 640, "height": 640, "prompt": "photorealistic RAW photo by rob hefferan, fashionista woman wearing gorgeous floral dress with victorian hat, highly detailed skin pores, 4K, sharp focus, deep shadows, beautiful spring season, vibrant small flowers, masterpiece", "guidance_scale": 0, "safety_checker": true, "negative_prompt": "amateur quality, vague shapes, vague texture, wrong perspective, wrong angle, ugly, dowdy style, grainy", "ip_adapter_scale": 0.8, "num_inference_steps": 6, "controlnet_conditioning_scale": 0.8 }, "logs": "0%| | 0/6 [00:00<?, ?it/s]\n 17%|█▋ | 1/6 [00:00<00:00, 5.32it/s]\n 33%|███▎ | 2/6 [00:00<00:00, 5.33it/s]\n 50%|█████ | 3/6 [00:00<00:00, 5.33it/s]\n 67%|██████▋ | 4/6 [00:00<00:00, 5.33it/s]\n 83%|████████▎ | 5/6 [00:00<00:00, 5.32it/s]\n100%|██████████| 6/6 [00:01<00:00, 5.33it/s]\n100%|██████████| 6/6 [00:01<00:00, 5.33it/s]", "metrics": { "predict_time": 14.100746, "total_time": 14.150782 }, "output": "https://replicate.delivery/pbxt/KXeGFxxHaLQfBUZjMdfBK4LrxDT81ocoHrAezlgw2aqfckHSC/result.jpg", "started_at": "2024-01-28T08:56:58.014798Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/ld7kjulbo72xixtgpn3vsl4tv4", "cancel": "https://api.replicate.com/v1/predictions/ld7kjulbo72xixtgpn3vsl4tv4/cancel" }, "version": "2a2afbff09996b53247b0714577d4ff82d2c9da8e8b00c5499b5b34510bb8b5e" }
Generated in0%| | 0/6 [00:00<?, ?it/s] 17%|█▋ | 1/6 [00:00<00:00, 5.32it/s] 33%|███▎ | 2/6 [00:00<00:00, 5.33it/s] 50%|█████ | 3/6 [00:00<00:00, 5.33it/s] 67%|██████▋ | 4/6 [00:00<00:00, 5.33it/s] 83%|████████▎ | 5/6 [00:00<00:00, 5.32it/s] 100%|██████████| 6/6 [00:01<00:00, 5.33it/s] 100%|██████████| 6/6 [00:01<00:00, 5.33it/s]
Prediction
tgohblio/instant-id-albedobase-xl:2a2afbff09996b53247b0714577d4ff82d2c9da8e8b00c5499b5b34510bb8b5eIDtrki3tdbd7dvhlklptcitctj3mStatusSucceededSourceWebHardwareA40Total durationCreatedInput
- width
- 768
- height
- 1024
- prompt
- cinematic film still of a man as a jazz singer in 1950s New York city at night, highly detailed face, zavy-cnmtc, shallow depth of field, vignette, highly detailed, high budget, bokeh, cinemascope, epic, gorgeous
- guidance_scale
- 0
- safety_checker
- negative_prompt
- amateur quality, blurry, soft, wrong perspective, wrong angle, ugly, dowdy style, grainy, unnatural lips, digital art, illustration, drawing, painting, sketch, CGI, 3D, render, manga, child, childlike, text, signature
- ip_adapter_scale
- 0.7
- num_inference_steps
- 6
- controlnet_conditioning_scale
- 0.7
{ "image": "https://replicate.delivery/pbxt/KJN1iUhfotriSgNyb05O0NETt8dJR6TGm3utYLYzHSShHAVA/george-michael.jpg", "width": 768, "height": 1024, "prompt": "cinematic film still of a man as a jazz singer in 1950s New York city at night, highly detailed face, zavy-cnmtc, shallow depth of field, vignette, highly detailed, high budget, bokeh, cinemascope, epic, gorgeous", "guidance_scale": 0, "safety_checker": true, "negative_prompt": "amateur quality, blurry, soft, wrong perspective, wrong angle, ugly, dowdy style, grainy, unnatural lips, digital art, illustration, drawing, painting, sketch, CGI, 3D, render, manga, child, childlike, text, signature", "ip_adapter_scale": 0.7, "num_inference_steps": 6, "controlnet_conditioning_scale": 0.7 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; 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/KJN1iUhfotriSgNyb05O0NETt8dJR6TGm3utYLYzHSShHAVA/george-michael.jpg", width: 768, height: 1024, prompt: "cinematic film still of a man as a jazz singer in 1950s New York city at night, highly detailed face, zavy-cnmtc, shallow depth of field, vignette, highly detailed, high budget, bokeh, cinemascope, epic, gorgeous", guidance_scale: 0, safety_checker: true, negative_prompt: "amateur quality, blurry, soft, wrong perspective, wrong angle, ugly, dowdy style, grainy, unnatural lips, digital art, illustration, drawing, painting, sketch, CGI, 3D, render, manga, child, childlike, text, signature", ip_adapter_scale: 0.7, num_inference_steps: 6, controlnet_conditioning_scale: 0.7 } } ); // 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.
Install Replicate’s Python client library:pip install replicate
Import the client: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/KJN1iUhfotriSgNyb05O0NETt8dJR6TGm3utYLYzHSShHAVA/george-michael.jpg", "width": 768, "height": 1024, "prompt": "cinematic film still of a man as a jazz singer in 1950s New York city at night, highly detailed face, zavy-cnmtc, shallow depth of field, vignette, highly detailed, high budget, bokeh, cinemascope, epic, gorgeous", "guidance_scale": 0, "safety_checker": True, "negative_prompt": "amateur quality, blurry, soft, wrong perspective, wrong angle, ugly, dowdy style, grainy, unnatural lips, digital art, illustration, drawing, painting, sketch, CGI, 3D, render, manga, child, childlike, text, signature", "ip_adapter_scale": 0.7, "num_inference_steps": 6, "controlnet_conditioning_scale": 0.7 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
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/KJN1iUhfotriSgNyb05O0NETt8dJR6TGm3utYLYzHSShHAVA/george-michael.jpg", "width": 768, "height": 1024, "prompt": "cinematic film still of a man as a jazz singer in 1950s New York city at night, highly detailed face, zavy-cnmtc, shallow depth of field, vignette, highly detailed, high budget, bokeh, cinemascope, epic, gorgeous", "guidance_scale": 0, "safety_checker": true, "negative_prompt": "amateur quality, blurry, soft, wrong perspective, wrong angle, ugly, dowdy style, grainy, unnatural lips, digital art, illustration, drawing, painting, sketch, CGI, 3D, render, manga, child, childlike, text, signature", "ip_adapter_scale": 0.7, "num_inference_steps": 6, "controlnet_conditioning_scale": 0.7 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-03-19T15:38:55.063797Z", "created_at": "2024-03-19T15:35:19.610984Z", "data_removed": false, "error": null, "id": "trki3tdbd7dvhlklptcitctj3m", "input": { "image": "https://replicate.delivery/pbxt/KJN1iUhfotriSgNyb05O0NETt8dJR6TGm3utYLYzHSShHAVA/george-michael.jpg", "width": 768, "height": 1024, "prompt": "cinematic film still of a man as a jazz singer in 1950s New York city at night, highly detailed face, zavy-cnmtc, shallow depth of field, vignette, highly detailed, high budget, bokeh, cinemascope, epic, gorgeous", "guidance_scale": 0, "safety_checker": true, "negative_prompt": "amateur quality, blurry, soft, wrong perspective, wrong angle, ugly, dowdy style, grainy, unnatural lips, digital art, illustration, drawing, painting, sketch, CGI, 3D, render, manga, child, childlike, text, signature", "ip_adapter_scale": 0.7, "num_inference_steps": 6, "controlnet_conditioning_scale": 0.7 }, "logs": "[!] Resizing output to 768x1024\nset det-size: (768, 1024)\nwarning: det_size is already set in detection model, ignore\n/root/.pyenv/versions/3.11.7/lib/python3.11/site-packages/insightface/utils/transform.py:68: FutureWarning: `rcond` parameter will change to the default of machine precision times ``max(M, N)`` where M and N are the input matrix dimensions.\nTo use the future default and silence this warning we advise to pass `rcond=None`, to keep using the old, explicitly pass `rcond=-1`.\nP = np.linalg.lstsq(X_homo, Y)[0].T # Affine matrix. 3 x 4\n 0%| | 0/6 [00:00<?, ?it/s]\n 17%|█▋ | 1/6 [00:00<00:02, 1.69it/s]\n 33%|███▎ | 2/6 [00:00<00:01, 2.50it/s]\n 50%|█████ | 3/6 [00:01<00:01, 2.96it/s]\n 67%|██████▋ | 4/6 [00:01<00:00, 3.23it/s]\n 83%|████████▎ | 5/6 [00:01<00:00, 3.40it/s]\n100%|██████████| 6/6 [00:01<00:00, 3.52it/s]\n100%|██████████| 6/6 [00:01<00:00, 3.13it/s]", "metrics": { "predict_time": 16.532756, "total_time": 215.452813 }, "output": "https://replicate.delivery/pbxt/2fkfTXze0OKXzp3KvwPrNPFjXeZnCXl1bLdBixAY9KS44YHKB/result.jpg", "started_at": "2024-03-19T15:38:38.531041Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/trki3tdbd7dvhlklptcitctj3m", "cancel": "https://api.replicate.com/v1/predictions/trki3tdbd7dvhlklptcitctj3m/cancel" }, "version": "2a2afbff09996b53247b0714577d4ff82d2c9da8e8b00c5499b5b34510bb8b5e" }
Generated in[!] Resizing output to 768x1024 set det-size: (768, 1024) warning: det_size is already set in detection model, ignore /root/.pyenv/versions/3.11.7/lib/python3.11/site-packages/insightface/utils/transform.py:68: FutureWarning: `rcond` parameter will change to the default of machine precision times ``max(M, N)`` where M and N are the input matrix dimensions. To use the future default and silence this warning we advise to pass `rcond=None`, to keep using the old, explicitly pass `rcond=-1`. P = np.linalg.lstsq(X_homo, Y)[0].T # Affine matrix. 3 x 4 0%| | 0/6 [00:00<?, ?it/s] 17%|█▋ | 1/6 [00:00<00:02, 1.69it/s] 33%|███▎ | 2/6 [00:00<00:01, 2.50it/s] 50%|█████ | 3/6 [00:01<00:01, 2.96it/s] 67%|██████▋ | 4/6 [00:01<00:00, 3.23it/s] 83%|████████▎ | 5/6 [00:01<00:00, 3.40it/s] 100%|██████████| 6/6 [00:01<00:00, 3.52it/s] 100%|██████████| 6/6 [00:01<00:00, 3.13it/s]
Want to make some of these yourself?
Run this model