Failed to load versions. Head to the versions page to see all versions for this model.
You're looking at a specific version of this model. Jump to the model overview.
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 fofr/illusions using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"fofr/illusions:7f0be5988e9838359a66b7481bb9b18290eb11a3ae76ccedd9c9bafd14f5bf7b",
{
input: {
seed: -1,
image: "https://replicate.delivery/pbxt/JouANiZNiW2mwouIgIk1VySvjL9MBmaPD6Ib8HyfW81CJzRR/out-0-44.png",
width: 768,
height: 768,
prompt: "a oil painting of a 19th century town, detailed textures, masterpiece",
num_outputs: 1,
control_image: "https://replicate.delivery/pbxt/JpUAy5SVqgmFpuYa6lp2WcQdyvMaKuOGbpZqixgeTloNPGu0/funky.jpg",
guidance_scale: 7.5,
negative_prompt: "ugly, disfigured, low quality, blurry, nsfw",
prompt_strength: 0.75,
sizing_strategy: "width/height",
num_inference_steps: 40,
controlnet_conditioning_scale: 1
}
}
);
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 fofr/illusions using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"fofr/illusions:7f0be5988e9838359a66b7481bb9b18290eb11a3ae76ccedd9c9bafd14f5bf7b",
input={
"seed": -1,
"image": "https://replicate.delivery/pbxt/JouANiZNiW2mwouIgIk1VySvjL9MBmaPD6Ib8HyfW81CJzRR/out-0-44.png",
"width": 768,
"height": 768,
"prompt": "a oil painting of a 19th century town, detailed textures, masterpiece",
"num_outputs": 1,
"control_image": "https://replicate.delivery/pbxt/JpUAy5SVqgmFpuYa6lp2WcQdyvMaKuOGbpZqixgeTloNPGu0/funky.jpg",
"guidance_scale": 7.5,
"negative_prompt": "ugly, disfigured, low quality, blurry, nsfw",
"prompt_strength": 0.75,
"sizing_strategy": "width/height",
"num_inference_steps": 40,
"controlnet_conditioning_scale": 1
}
)
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 fofr/illusions 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": "7f0be5988e9838359a66b7481bb9b18290eb11a3ae76ccedd9c9bafd14f5bf7b",
"input": {
"seed": -1,
"image": "https://replicate.delivery/pbxt/JouANiZNiW2mwouIgIk1VySvjL9MBmaPD6Ib8HyfW81CJzRR/out-0-44.png",
"width": 768,
"height": 768,
"prompt": "a oil painting of a 19th century town, detailed textures, masterpiece",
"num_outputs": 1,
"control_image": "https://replicate.delivery/pbxt/JpUAy5SVqgmFpuYa6lp2WcQdyvMaKuOGbpZqixgeTloNPGu0/funky.jpg",
"guidance_scale": 7.5,
"negative_prompt": "ugly, disfigured, low quality, blurry, nsfw",
"prompt_strength": 0.75,
"sizing_strategy": "width/height",
"num_inference_steps": 40,
"controlnet_conditioning_scale": 1
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2023-11-06T11:20:53.144204Z",
"created_at": "2023-11-06T11:20:47.255907Z",
"data_removed": false,
"error": null,
"id": "n3t2u5lbsggunc3u6pyrebg764",
"input": {
"seed": -1,
"image": "https://replicate.delivery/pbxt/JouANiZNiW2mwouIgIk1VySvjL9MBmaPD6Ib8HyfW81CJzRR/out-0-44.png",
"width": 768,
"height": 768,
"prompt": "a oil painting of a 19th century town, detailed textures, masterpiece",
"num_outputs": 1,
"control_image": "https://replicate.delivery/pbxt/JpUAy5SVqgmFpuYa6lp2WcQdyvMaKuOGbpZqixgeTloNPGu0/funky.jpg",
"guidance_scale": 7.5,
"negative_prompt": "ugly, disfigured, low quality, blurry, nsfw",
"prompt_strength": 0.75,
"sizing_strategy": "width/height",
"num_inference_steps": 40,
"controlnet_conditioning_scale": 1
},
"logs": "img2img mode\nUsing given dimensions\n 0%| | 0/30 [00:00<?, ?it/s]\n 3%|▎ | 1/30 [00:00<00:06, 4.22it/s]\n 7%|▋ | 2/30 [00:00<00:04, 5.96it/s]\n 10%|█ | 3/30 [00:00<00:03, 6.86it/s]\n 13%|█▎ | 4/30 [00:00<00:03, 7.39it/s]\n 17%|█▋ | 5/30 [00:00<00:03, 7.72it/s]\n 20%|██ | 6/30 [00:00<00:03, 7.93it/s]\n 23%|██▎ | 7/30 [00:00<00:02, 8.07it/s]\n 27%|██▋ | 8/30 [00:01<00:02, 8.16it/s]\n 30%|███ | 9/30 [00:01<00:02, 8.22it/s]\n 33%|███▎ | 10/30 [00:01<00:02, 8.27it/s]\n 37%|███▋ | 11/30 [00:01<00:02, 8.30it/s]\n 40%|████ | 12/30 [00:01<00:02, 8.33it/s]\n 43%|████▎ | 13/30 [00:01<00:02, 8.35it/s]\n 47%|████▋ | 14/30 [00:01<00:01, 8.38it/s]\n 50%|█████ | 15/30 [00:01<00:01, 8.38it/s]\n 53%|█████▎ | 16/30 [00:02<00:01, 8.39it/s]\n 57%|█████▋ | 17/30 [00:02<00:01, 8.40it/s]\n 60%|██████ | 18/30 [00:02<00:01, 8.41it/s]\n 63%|██████▎ | 19/30 [00:02<00:01, 8.42it/s]\n 67%|██████▋ | 20/30 [00:02<00:01, 8.43it/s]\n 70%|███████ | 21/30 [00:02<00:01, 8.42it/s]\n 73%|███████▎ | 22/30 [00:02<00:00, 8.42it/s]\n 77%|███████▋ | 23/30 [00:02<00:00, 8.41it/s]\n 80%|████████ | 24/30 [00:02<00:00, 8.41it/s]\n 83%|████████▎ | 25/30 [00:03<00:00, 8.42it/s]\n 87%|████████▋ | 26/30 [00:03<00:00, 8.41it/s]\n 90%|█████████ | 27/30 [00:03<00:00, 8.41it/s]\n 93%|█████████▎| 28/30 [00:03<00:00, 8.41it/s]\n 97%|█████████▋| 29/30 [00:03<00:00, 8.41it/s]\n100%|██████████| 30/30 [00:03<00:00, 8.41it/s]\n100%|██████████| 30/30 [00:03<00:00, 8.13it/s]",
"metrics": {
"predict_time": 5.924251,
"total_time": 5.888297
},
"output": [
"https://replicate.delivery/pbxt/Cs2FyeB1yDyiUatJBiWXqpbeeg5fiS4DOdfnDzhynhDiCfZdE/output-0.png"
],
"started_at": "2023-11-06T11:20:47.219953Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/n3t2u5lbsggunc3u6pyrebg764",
"cancel": "https://api.replicate.com/v1/predictions/n3t2u5lbsggunc3u6pyrebg764/cancel"
},
"version": "7f0be5988e9838359a66b7481bb9b18290eb11a3ae76ccedd9c9bafd14f5bf7b"
}
img2img mode
Using given dimensions
0%| | 0/30 [00:00<?, ?it/s]
3%|▎ | 1/30 [00:00<00:06, 4.22it/s]
7%|▋ | 2/30 [00:00<00:04, 5.96it/s]
10%|█ | 3/30 [00:00<00:03, 6.86it/s]
13%|█▎ | 4/30 [00:00<00:03, 7.39it/s]
17%|█▋ | 5/30 [00:00<00:03, 7.72it/s]
20%|██ | 6/30 [00:00<00:03, 7.93it/s]
23%|██▎ | 7/30 [00:00<00:02, 8.07it/s]
27%|██▋ | 8/30 [00:01<00:02, 8.16it/s]
30%|███ | 9/30 [00:01<00:02, 8.22it/s]
33%|███▎ | 10/30 [00:01<00:02, 8.27it/s]
37%|███▋ | 11/30 [00:01<00:02, 8.30it/s]
40%|████ | 12/30 [00:01<00:02, 8.33it/s]
43%|████▎ | 13/30 [00:01<00:02, 8.35it/s]
47%|████▋ | 14/30 [00:01<00:01, 8.38it/s]
50%|█████ | 15/30 [00:01<00:01, 8.38it/s]
53%|█████▎ | 16/30 [00:02<00:01, 8.39it/s]
57%|█████▋ | 17/30 [00:02<00:01, 8.40it/s]
60%|██████ | 18/30 [00:02<00:01, 8.41it/s]
63%|██████▎ | 19/30 [00:02<00:01, 8.42it/s]
67%|██████▋ | 20/30 [00:02<00:01, 8.43it/s]
70%|███████ | 21/30 [00:02<00:01, 8.42it/s]
73%|███████▎ | 22/30 [00:02<00:00, 8.42it/s]
77%|███████▋ | 23/30 [00:02<00:00, 8.41it/s]
80%|████████ | 24/30 [00:02<00:00, 8.41it/s]
83%|████████▎ | 25/30 [00:03<00:00, 8.42it/s]
87%|████████▋ | 26/30 [00:03<00:00, 8.41it/s]
90%|█████████ | 27/30 [00:03<00:00, 8.41it/s]
93%|█████████▎| 28/30 [00:03<00:00, 8.41it/s]
97%|█████████▋| 29/30 [00:03<00:00, 8.41it/s]
100%|██████████| 30/30 [00:03<00:00, 8.41it/s]
100%|██████████| 30/30 [00:03<00:00, 8.13it/s]