You're looking at a specific version of this model. Jump to the model overview.
grandlineai /instant-id-artistic:9cad10c7
Input
Run this model in Node.js with one line of code:
npm install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import Replicate from "replicate";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run grandlineai/instant-id-artistic using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"grandlineai/instant-id-artistic:9cad10c7870bac9d6b587f406aef28208f964454abff5c4152f7dec9b0212a9a",
{
input: {
image: "https://replicate.delivery/pbxt/KHRI4GBd3FevVULAtdu7JySdF17BAXDk1bzIZeZoZ78NXXzY/chipu.jpeg",
width: 640,
height: 640,
prompt: "anime girl, night, blue light behind her, ((Galaxy, Lens flare)), short hair, flower field, night sky, cinematic shot. Wallpaper. (Blue color schema), detailed background, a city in the distance",
guidance_scale: 5,
negative_prompt: "cgi, 3d render, bad quality, worst quality, text, signature, watermark, extra limbs,",
ip_adapter_scale: 0.8,
num_inference_steps: 30,
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 grandlineai/instant-id-artistic using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"grandlineai/instant-id-artistic:9cad10c7870bac9d6b587f406aef28208f964454abff5c4152f7dec9b0212a9a",
input={
"image": "https://replicate.delivery/pbxt/KHRI4GBd3FevVULAtdu7JySdF17BAXDk1bzIZeZoZ78NXXzY/chipu.jpeg",
"width": 640,
"height": 640,
"prompt": "anime girl, night, blue light behind her, ((Galaxy, Lens flare)), short hair, flower field, night sky, cinematic shot. Wallpaper. (Blue color schema), detailed background, a city in the distance",
"guidance_scale": 5,
"negative_prompt": "cgi, 3d render, bad quality, worst quality, text, signature, watermark, extra limbs,",
"ip_adapter_scale": 0.8,
"num_inference_steps": 30,
"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 grandlineai/instant-id-artistic 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": "9cad10c7870bac9d6b587f406aef28208f964454abff5c4152f7dec9b0212a9a",
"input": {
"image": "https://replicate.delivery/pbxt/KHRI4GBd3FevVULAtdu7JySdF17BAXDk1bzIZeZoZ78NXXzY/chipu.jpeg",
"width": 640,
"height": 640,
"prompt": "anime girl, night, blue light behind her, ((Galaxy, Lens flare)), short hair, flower field, night sky, cinematic shot. Wallpaper. (Blue color schema), detailed background, a city in the distance",
"guidance_scale": 5,
"negative_prompt": "cgi, 3d render, bad quality, worst quality, text, signature, watermark, extra limbs,",
"ip_adapter_scale": 0.8,
"num_inference_steps": 30,
"controlnet_conditioning_scale": 0.8
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
brew install cog
If you don’t have Homebrew, there are other installation options available.
Run this to download the model and run it in your local environment:
cog predict r8.im/grandlineai/instant-id-artistic@sha256:9cad10c7870bac9d6b587f406aef28208f964454abff5c4152f7dec9b0212a9a \
-i 'image="https://replicate.delivery/pbxt/KHRI4GBd3FevVULAtdu7JySdF17BAXDk1bzIZeZoZ78NXXzY/chipu.jpeg"' \
-i 'width=640' \
-i 'height=640' \
-i 'prompt="anime girl, night, blue light behind her, ((Galaxy, Lens flare)), short hair, flower field, night sky, cinematic shot. Wallpaper. (Blue color schema), detailed background, a city in the distance"' \
-i 'guidance_scale=5' \
-i 'negative_prompt="cgi, 3d render, bad quality, worst quality, text, signature, watermark, extra limbs,"' \
-i 'ip_adapter_scale=0.8' \
-i 'num_inference_steps=30' \
-i 'controlnet_conditioning_scale=0.8'
To learn more, take a look at the Cog documentation.
Run this to download the model and run it in your local environment:
docker run -d -p 5000:5000 --gpus=all r8.im/grandlineai/instant-id-artistic@sha256:9cad10c7870bac9d6b587f406aef28208f964454abff5c4152f7dec9b0212a9a
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "image": "https://replicate.delivery/pbxt/KHRI4GBd3FevVULAtdu7JySdF17BAXDk1bzIZeZoZ78NXXzY/chipu.jpeg", "width": 640, "height": 640, "prompt": "anime girl, night, blue light behind her, ((Galaxy, Lens flare)), short hair, flower field, night sky, cinematic shot. Wallpaper. (Blue color schema), detailed background, a city in the distance", "guidance_scale": 5, "negative_prompt": "cgi, 3d render, bad quality, worst quality, text, signature, watermark, extra limbs,", "ip_adapter_scale": 0.8, "num_inference_steps": 30, "controlnet_conditioning_scale": 0.8 } }' \ http://localhost:5000/predictions
To learn more, take a look at the Cog documentation.
Add a payment method to run this model.
Each run costs approximately $0.016. Alternatively, try out our featured models for free.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2024-01-24T06:41:13.394586Z",
"created_at": "2024-01-24T06:40:44.672281Z",
"data_removed": false,
"error": null,
"id": "nbk762lbyg5sbk5lt4vxtqo7ea",
"input": {
"image": "https://replicate.delivery/pbxt/KHRI4GBd3FevVULAtdu7JySdF17BAXDk1bzIZeZoZ78NXXzY/chipu.jpeg",
"width": 640,
"height": 640,
"prompt": "anime girl, night, blue light behind her, ((Galaxy, Lens flare)), short hair, flower field, night sky, cinematic shot. Wallpaper. (Blue color schema), detailed background, a city in the distance",
"guidance_scale": 5,
"negative_prompt": "cgi, 3d render, bad quality, worst quality, text, signature, watermark, extra limbs,",
"ip_adapter_scale": 0.8,
"num_inference_steps": 30,
"controlnet_conditioning_scale": 0.8
},
"logs": "0%| | 0/30 [00:00<?, ?it/s]\n 3%|▎ | 1/30 [00:00<00:14, 2.01it/s]\n 7%|▋ | 2/30 [00:00<00:13, 2.01it/s]\n 10%|█ | 3/30 [00:01<00:13, 2.01it/s]\n 13%|█▎ | 4/30 [00:01<00:12, 2.00it/s]\n 17%|█▋ | 5/30 [00:02<00:12, 2.00it/s]\n 20%|██ | 6/30 [00:02<00:11, 2.00it/s]\n 23%|██▎ | 7/30 [00:03<00:11, 2.00it/s]\n 27%|██▋ | 8/30 [00:03<00:10, 2.00it/s]\n 30%|███ | 9/30 [00:04<00:10, 2.00it/s]\n 33%|███▎ | 10/30 [00:04<00:10, 2.00it/s]\n 37%|███▋ | 11/30 [00:05<00:09, 2.00it/s]\n 40%|████ | 12/30 [00:05<00:09, 2.00it/s]\n 43%|████▎ | 13/30 [00:06<00:08, 2.00it/s]\n 47%|████▋ | 14/30 [00:06<00:08, 2.00it/s]\n 50%|█████ | 15/30 [00:07<00:07, 2.00it/s]\n 53%|█████▎ | 16/30 [00:07<00:07, 2.00it/s]\n 57%|█████▋ | 17/30 [00:08<00:06, 2.00it/s]\n 60%|██████ | 18/30 [00:08<00:06, 2.00it/s]\n 63%|██████▎ | 19/30 [00:09<00:05, 2.00it/s]\n 67%|██████▋ | 20/30 [00:10<00:05, 1.99it/s]\n 70%|███████ | 21/30 [00:10<00:04, 1.99it/s]\n 73%|███████▎ | 22/30 [00:11<00:04, 1.99it/s]\n 77%|███████▋ | 23/30 [00:11<00:03, 1.99it/s]\n 80%|████████ | 24/30 [00:12<00:03, 1.99it/s]\n 83%|████████▎ | 25/30 [00:12<00:02, 1.99it/s]\n 87%|████████▋ | 26/30 [00:13<00:02, 1.99it/s]\n 90%|█████████ | 27/30 [00:13<00:01, 2.00it/s]\n 93%|█████████▎| 28/30 [00:14<00:01, 2.00it/s]\n 97%|█████████▋| 29/30 [00:14<00:00, 2.00it/s]\n100%|██████████| 30/30 [00:15<00:00, 2.00it/s]\n100%|██████████| 30/30 [00:15<00:00, 2.00it/s]",
"metrics": {
"predict_time": 28.669217,
"total_time": 28.722305
},
"output": "https://replicate.delivery/pbxt/zgISN4ixigYfcKLSW0eP9S9qHQzQfDIwtUDMBBLwnHZRYMfIB/result.jpg",
"started_at": "2024-01-24T06:40:44.725369Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/nbk762lbyg5sbk5lt4vxtqo7ea",
"cancel": "https://api.replicate.com/v1/predictions/nbk762lbyg5sbk5lt4vxtqo7ea/cancel"
},
"version": "9cad10c7870bac9d6b587f406aef28208f964454abff5c4152f7dec9b0212a9a"
}
0%| | 0/30 [00:00<?, ?it/s]
3%|▎ | 1/30 [00:00<00:14, 2.01it/s]
7%|▋ | 2/30 [00:00<00:13, 2.01it/s]
10%|█ | 3/30 [00:01<00:13, 2.01it/s]
13%|█▎ | 4/30 [00:01<00:12, 2.00it/s]
17%|█▋ | 5/30 [00:02<00:12, 2.00it/s]
20%|██ | 6/30 [00:02<00:11, 2.00it/s]
23%|██▎ | 7/30 [00:03<00:11, 2.00it/s]
27%|██▋ | 8/30 [00:03<00:10, 2.00it/s]
30%|███ | 9/30 [00:04<00:10, 2.00it/s]
33%|███▎ | 10/30 [00:04<00:10, 2.00it/s]
37%|███▋ | 11/30 [00:05<00:09, 2.00it/s]
40%|████ | 12/30 [00:05<00:09, 2.00it/s]
43%|████▎ | 13/30 [00:06<00:08, 2.00it/s]
47%|████▋ | 14/30 [00:06<00:08, 2.00it/s]
50%|█████ | 15/30 [00:07<00:07, 2.00it/s]
53%|█████▎ | 16/30 [00:07<00:07, 2.00it/s]
57%|█████▋ | 17/30 [00:08<00:06, 2.00it/s]
60%|██████ | 18/30 [00:08<00:06, 2.00it/s]
63%|██████▎ | 19/30 [00:09<00:05, 2.00it/s]
67%|██████▋ | 20/30 [00:10<00:05, 1.99it/s]
70%|███████ | 21/30 [00:10<00:04, 1.99it/s]
73%|███████▎ | 22/30 [00:11<00:04, 1.99it/s]
77%|███████▋ | 23/30 [00:11<00:03, 1.99it/s]
80%|████████ | 24/30 [00:12<00:03, 1.99it/s]
83%|████████▎ | 25/30 [00:12<00:02, 1.99it/s]
87%|████████▋ | 26/30 [00:13<00:02, 1.99it/s]
90%|█████████ | 27/30 [00:13<00:01, 2.00it/s]
93%|█████████▎| 28/30 [00:14<00:01, 2.00it/s]
97%|█████████▋| 29/30 [00:14<00:00, 2.00it/s]
100%|██████████| 30/30 [00:15<00:00, 2.00it/s]
100%|██████████| 30/30 [00:15<00:00, 2.00it/s]