You're looking at a specific version of this model. Jump to the model overview.
aaronaftab /mirage-ghibli:166efd15
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 aaronaftab/mirage-ghibli using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"aaronaftab/mirage-ghibli:166efd159b4138da932522bc5af40d39194033f587d9bdbab1e594119eae3e7f",
{
input: {
image: "https://replicate.delivery/pbxt/Mjo5VWBA0fm8oq3BefpbdtXeJitBJc6AobPnnMdFxxCKzT3P/linkedin.jpeg",
model: "dev",
prompt: "GHBLI anime style photo",
go_fast: true,
lora_scale: 1,
megapixels: "1",
num_outputs: 1,
aspect_ratio: "1:1",
output_format: "webp",
guidance_scale: 10,
output_quality: 80,
prompt_strength: 0.78,
extra_lora_scale: 1,
num_inference_steps: 28
}
}
);
console.log(output);
To learn more, take a look at the guide on getting started with Node.js.
pip install replicate
REPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
import replicate
Run aaronaftab/mirage-ghibli using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"aaronaftab/mirage-ghibli:166efd159b4138da932522bc5af40d39194033f587d9bdbab1e594119eae3e7f",
input={
"image": "https://replicate.delivery/pbxt/Mjo5VWBA0fm8oq3BefpbdtXeJitBJc6AobPnnMdFxxCKzT3P/linkedin.jpeg",
"model": "dev",
"prompt": "GHBLI anime style photo",
"go_fast": True,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "webp",
"guidance_scale": 10,
"output_quality": 80,
"prompt_strength": 0.78,
"extra_lora_scale": 1,
"num_inference_steps": 28
}
)
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 aaronaftab/mirage-ghibli 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": "166efd159b4138da932522bc5af40d39194033f587d9bdbab1e594119eae3e7f",
"input": {
"image": "https://replicate.delivery/pbxt/Mjo5VWBA0fm8oq3BefpbdtXeJitBJc6AobPnnMdFxxCKzT3P/linkedin.jpeg",
"model": "dev",
"prompt": "GHBLI anime style photo",
"go_fast": true,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "webp",
"guidance_scale": 10,
"output_quality": 80,
"prompt_strength": 0.78,
"extra_lora_scale": 1,
"num_inference_steps": 28
}
}' \
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/aaronaftab/mirage-ghibli@sha256:166efd159b4138da932522bc5af40d39194033f587d9bdbab1e594119eae3e7f \
-i 'image="https://replicate.delivery/pbxt/Mjo5VWBA0fm8oq3BefpbdtXeJitBJc6AobPnnMdFxxCKzT3P/linkedin.jpeg"' \
-i 'model="dev"' \
-i 'prompt="GHBLI anime style photo"' \
-i 'go_fast=true' \
-i 'lora_scale=1' \
-i 'megapixels="1"' \
-i 'num_outputs=1' \
-i 'aspect_ratio="1:1"' \
-i 'output_format="webp"' \
-i 'guidance_scale=10' \
-i 'output_quality=80' \
-i 'prompt_strength=0.78' \
-i 'extra_lora_scale=1' \
-i 'num_inference_steps=28'
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/aaronaftab/mirage-ghibli@sha256:166efd159b4138da932522bc5af40d39194033f587d9bdbab1e594119eae3e7f
curl -s -X POST \ -H "Content-Type: application/json" \ -d $'{ "input": { "image": "https://replicate.delivery/pbxt/Mjo5VWBA0fm8oq3BefpbdtXeJitBJc6AobPnnMdFxxCKzT3P/linkedin.jpeg", "model": "dev", "prompt": "GHBLI anime style photo", "go_fast": true, "lora_scale": 1, "megapixels": "1", "num_outputs": 1, "aspect_ratio": "1:1", "output_format": "webp", "guidance_scale": 10, "output_quality": 80, "prompt_strength": 0.78, "extra_lora_scale": 1, "num_inference_steps": 28 } }' \ 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.019. Alternatively, try out our featured models for free.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2025-04-01T02:06:40.229479Z",
"created_at": "2025-04-01T02:06:28.048000Z",
"data_removed": false,
"error": null,
"id": "5xy8qd4wt1rm80cnxwcv3gz5dr",
"input": {
"image": "https://replicate.delivery/pbxt/Mjo5VWBA0fm8oq3BefpbdtXeJitBJc6AobPnnMdFxxCKzT3P/linkedin.jpeg",
"model": "dev",
"prompt": "GHBLI anime style photo",
"go_fast": true,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "webp",
"guidance_scale": 10,
"output_quality": 80,
"prompt_strength": 0.78,
"extra_lora_scale": 1,
"num_inference_steps": 28
},
"logs": "Img2img and inpainting not supported with fast fp8 inference; will run in bf16\nLoaded LoRAs in 0.61s\nUsing seed: 56976\nPrompt: GHBLI anime style photo\nInput image size: 768x1024\n[!] Resizing input image from 768x1024 to 768x1024\n[!] img2img mode\n 0%| | 0/22 [00:00<?, ?it/s]\n 5%|▍ | 1/22 [00:00<00:03, 6.06it/s]\n 9%|▉ | 2/22 [00:00<00:03, 5.34it/s]\n 14%|█▎ | 3/22 [00:00<00:03, 5.15it/s]\n 18%|█▊ | 4/22 [00:00<00:03, 5.06it/s]\n 23%|██▎ | 5/22 [00:00<00:03, 5.02it/s]\n 27%|██▋ | 6/22 [00:01<00:03, 4.99it/s]\n 32%|███▏ | 7/22 [00:01<00:03, 4.97it/s]\n 36%|███▋ | 8/22 [00:01<00:02, 4.96it/s]\n 41%|████ | 9/22 [00:01<00:02, 4.95it/s]\n 45%|████▌ | 10/22 [00:01<00:02, 4.95it/s]\n 50%|█████ | 11/22 [00:02<00:02, 4.95it/s]\n 55%|█████▍ | 12/22 [00:02<00:02, 4.94it/s]\n 59%|█████▉ | 13/22 [00:02<00:01, 4.94it/s]\n 64%|██████▎ | 14/22 [00:02<00:01, 4.94it/s]\n 68%|██████▊ | 15/22 [00:03<00:01, 4.94it/s]\n 73%|███████▎ | 16/22 [00:03<00:01, 4.94it/s]\n 77%|███████▋ | 17/22 [00:03<00:01, 4.94it/s]\n 82%|████████▏ | 18/22 [00:03<00:00, 4.94it/s]\n 86%|████████▋ | 19/22 [00:03<00:00, 4.94it/s]\n 91%|█████████ | 20/22 [00:04<00:00, 4.94it/s]\n 95%|█████████▌| 21/22 [00:04<00:00, 4.94it/s]\n100%|██████████| 22/22 [00:04<00:00, 4.94it/s]\n100%|██████████| 22/22 [00:04<00:00, 4.98it/s]\nTotal safe images: 1 out of 1",
"metrics": {
"predict_time": 5.36541672,
"total_time": 12.181479
},
"output": [
"https://replicate.delivery/xezq/rsHvdh8bjbKQMh8BZdpBrp2cMnYe3UwdD4Jx0imbUdTY4HPKA/out-0.webp"
],
"started_at": "2025-04-01T02:06:34.864062Z",
"status": "succeeded",
"urls": {
"stream": "https://stream.replicate.com/v1/files/bcwr-rpq3ogm4stote4wf2gcgoyxp3m34yzo7xoucuaqdc3p5cyjwieda",
"get": "https://api.replicate.com/v1/predictions/5xy8qd4wt1rm80cnxwcv3gz5dr",
"cancel": "https://api.replicate.com/v1/predictions/5xy8qd4wt1rm80cnxwcv3gz5dr/cancel"
},
"version": "166efd159b4138da932522bc5af40d39194033f587d9bdbab1e594119eae3e7f"
}
Img2img and inpainting not supported with fast fp8 inference; will run in bf16
Loaded LoRAs in 0.61s
Using seed: 56976
Prompt: GHBLI anime style photo
Input image size: 768x1024
[!] Resizing input image from 768x1024 to 768x1024
[!] img2img mode
0%| | 0/22 [00:00<?, ?it/s]
5%|▍ | 1/22 [00:00<00:03, 6.06it/s]
9%|▉ | 2/22 [00:00<00:03, 5.34it/s]
14%|█▎ | 3/22 [00:00<00:03, 5.15it/s]
18%|█▊ | 4/22 [00:00<00:03, 5.06it/s]
23%|██▎ | 5/22 [00:00<00:03, 5.02it/s]
27%|██▋ | 6/22 [00:01<00:03, 4.99it/s]
32%|███▏ | 7/22 [00:01<00:03, 4.97it/s]
36%|███▋ | 8/22 [00:01<00:02, 4.96it/s]
41%|████ | 9/22 [00:01<00:02, 4.95it/s]
45%|████▌ | 10/22 [00:01<00:02, 4.95it/s]
50%|█████ | 11/22 [00:02<00:02, 4.95it/s]
55%|█████▍ | 12/22 [00:02<00:02, 4.94it/s]
59%|█████▉ | 13/22 [00:02<00:01, 4.94it/s]
64%|██████▎ | 14/22 [00:02<00:01, 4.94it/s]
68%|██████▊ | 15/22 [00:03<00:01, 4.94it/s]
73%|███████▎ | 16/22 [00:03<00:01, 4.94it/s]
77%|███████▋ | 17/22 [00:03<00:01, 4.94it/s]
82%|████████▏ | 18/22 [00:03<00:00, 4.94it/s]
86%|████████▋ | 19/22 [00:03<00:00, 4.94it/s]
91%|█████████ | 20/22 [00:04<00:00, 4.94it/s]
95%|█████████▌| 21/22 [00:04<00:00, 4.94it/s]
100%|██████████| 22/22 [00:04<00:00, 4.94it/s]
100%|██████████| 22/22 [00:04<00:00, 4.98it/s]
Total safe images: 1 out of 1