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";
import fs from "node:fs";
const replicate = new Replicate({
auth: process.env.REPLICATE_API_TOKEN,
});
Run len250/minecraft using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"len250/minecraft:de8e9ba9818c036f4d8b1322948e5d4f5a7af1769d1e2f34e6a0810b5b98797b",
{
input: {
image: "https://replicate.delivery/pbxt/Kald584SOcUMZvTEaZo83U6kf9MA2af8hKVsTPEmJv3vm6zf/Bildschirmfoto%202024-03-18%20um%2016.42.16.png",
width: 1024,
height: 1024,
prompt: "A bridge that crosses a river, in the background a couple of houses and a church in the style of MINECRAFT",
refine: "no_refiner",
scheduler: "K_EULER",
lora_scale: 0.7,
num_outputs: 1,
guidance_scale: 7.5,
apply_watermark: true,
high_noise_frac: 0.8,
negative_prompt: "",
prompt_strength: 0.7,
num_inference_steps: 50
}
}
);
// To access the file URL:
console.log(output[0].url()); //=> "http://example.com"
// To write the file to disk:
fs.writeFile("my-image.png", output[0]);
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 len250/minecraft using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"len250/minecraft:de8e9ba9818c036f4d8b1322948e5d4f5a7af1769d1e2f34e6a0810b5b98797b",
input={
"image": "https://replicate.delivery/pbxt/Kald584SOcUMZvTEaZo83U6kf9MA2af8hKVsTPEmJv3vm6zf/Bildschirmfoto%202024-03-18%20um%2016.42.16.png",
"width": 1024,
"height": 1024,
"prompt": "A bridge that crosses a river, in the background a couple of houses and a church in the style of MINECRAFT",
"refine": "no_refiner",
"scheduler": "K_EULER",
"lora_scale": 0.7,
"num_outputs": 1,
"guidance_scale": 7.5,
"apply_watermark": True,
"high_noise_frac": 0.8,
"negative_prompt": "",
"prompt_strength": 0.7,
"num_inference_steps": 50
}
)
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 len250/minecraft 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": "len250/minecraft:de8e9ba9818c036f4d8b1322948e5d4f5a7af1769d1e2f34e6a0810b5b98797b",
"input": {
"image": "https://replicate.delivery/pbxt/Kald584SOcUMZvTEaZo83U6kf9MA2af8hKVsTPEmJv3vm6zf/Bildschirmfoto%202024-03-18%20um%2016.42.16.png",
"width": 1024,
"height": 1024,
"prompt": "A bridge that crosses a river, in the background a couple of houses and a church in the style of MINECRAFT",
"refine": "no_refiner",
"scheduler": "K_EULER",
"lora_scale": 0.7,
"num_outputs": 1,
"guidance_scale": 7.5,
"apply_watermark": true,
"high_noise_frac": 0.8,
"negative_prompt": "",
"prompt_strength": 0.7,
"num_inference_steps": 50
}
}' \
https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Add a payment method to run this model.
By signing in, you agree to our
terms of service and privacy policy
Output
{
"completed_at": "2024-03-18T16:14:23.367447Z",
"created_at": "2024-03-18T16:14:11.489756Z",
"data_removed": false,
"error": null,
"id": "ewbguodbdazq7cjzo5ynisxbpq",
"input": {
"image": "https://replicate.delivery/pbxt/Kald584SOcUMZvTEaZo83U6kf9MA2af8hKVsTPEmJv3vm6zf/Bildschirmfoto%202024-03-18%20um%2016.42.16.png",
"width": 1024,
"height": 1024,
"prompt": "A bridge that crosses a river, in the background a couple of houses and a church in the style of MINECRAFT",
"refine": "no_refiner",
"scheduler": "K_EULER",
"lora_scale": 0.7,
"num_outputs": 1,
"guidance_scale": 7.5,
"apply_watermark": true,
"high_noise_frac": 0.8,
"negative_prompt": "",
"prompt_strength": 0.7,
"num_inference_steps": 50
},
"logs": "Using seed: 46792\nskipping loading .. weights already loaded\nPrompt: A bridge that crosses a river, in the background a couple of houses and a church in the style of <s0><s1>\nimg2img mode\n 0%| | 0/35 [00:00<?, ?it/s]\n 3%|▎ | 1/35 [00:00<00:09, 3.70it/s]\n 6%|▌ | 2/35 [00:00<00:08, 3.71it/s]\n 9%|▊ | 3/35 [00:00<00:08, 3.70it/s]\n 11%|█▏ | 4/35 [00:01<00:08, 3.70it/s]\n 14%|█▍ | 5/35 [00:01<00:08, 3.71it/s]\n 17%|█▋ | 6/35 [00:01<00:07, 3.72it/s]\n 20%|██ | 7/35 [00:01<00:07, 3.72it/s]\n 23%|██▎ | 8/35 [00:02<00:07, 3.72it/s]\n 26%|██▌ | 9/35 [00:02<00:06, 3.72it/s]\n 29%|██▊ | 10/35 [00:02<00:06, 3.72it/s]\n 31%|███▏ | 11/35 [00:02<00:06, 3.72it/s]\n 34%|███▍ | 12/35 [00:03<00:06, 3.72it/s]\n 37%|███▋ | 13/35 [00:03<00:05, 3.68it/s]\n 40%|████ | 14/35 [00:03<00:05, 3.70it/s]\n 43%|████▎ | 15/35 [00:04<00:05, 3.70it/s]\n 46%|████▌ | 16/35 [00:04<00:05, 3.71it/s]\n 49%|████▊ | 17/35 [00:04<00:04, 3.71it/s]\n 51%|█████▏ | 18/35 [00:04<00:04, 3.72it/s]\n 54%|█████▍ | 19/35 [00:05<00:04, 3.72it/s]\n 57%|█████▋ | 20/35 [00:05<00:04, 3.71it/s]\n 60%|██████ | 21/35 [00:05<00:03, 3.72it/s]\n 63%|██████▎ | 22/35 [00:05<00:03, 3.72it/s]\n 66%|██████▌ | 23/35 [00:06<00:03, 3.71it/s]\n 69%|██████▊ | 24/35 [00:06<00:02, 3.71it/s]\n 71%|███████▏ | 25/35 [00:06<00:02, 3.71it/s]\n 74%|███████▍ | 26/35 [00:07<00:02, 3.71it/s]\n 77%|███████▋ | 27/35 [00:07<00:02, 3.71it/s]\n 80%|████████ | 28/35 [00:07<00:01, 3.71it/s]\n 83%|████████▎ | 29/35 [00:07<00:01, 3.72it/s]\n 86%|████████▌ | 30/35 [00:08<00:01, 3.71it/s]\n 89%|████████▊ | 31/35 [00:08<00:01, 3.71it/s]\n 91%|█████████▏| 32/35 [00:08<00:00, 3.71it/s]\n 94%|█████████▍| 33/35 [00:08<00:00, 3.72it/s]\n 97%|█████████▋| 34/35 [00:09<00:00, 3.71it/s]\n100%|██████████| 35/35 [00:09<00:00, 3.71it/s]\n100%|██████████| 35/35 [00:09<00:00, 3.71it/s]",
"metrics": {
"predict_time": 11.869575,
"total_time": 11.877691
},
"output": [
"https://replicate.delivery/pbxt/fdRgEfudSjhy6khhEC5sUCueqOdawk6AQ7f1uojzpTU7lGGKB/out-0.png"
],
"started_at": "2024-03-18T16:14:11.497872Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/ewbguodbdazq7cjzo5ynisxbpq",
"cancel": "https://api.replicate.com/v1/predictions/ewbguodbdazq7cjzo5ynisxbpq/cancel"
},
"version": "de8e9ba9818c036f4d8b1322948e5d4f5a7af1769d1e2f34e6a0810b5b98797b"
}
Using seed: 46792
skipping loading .. weights already loaded
Prompt: A bridge that crosses a river, in the background a couple of houses and a church in the style of <s0><s1>
img2img mode
0%| | 0/35 [00:00<?, ?it/s]
3%|▎ | 1/35 [00:00<00:09, 3.70it/s]
6%|▌ | 2/35 [00:00<00:08, 3.71it/s]
9%|▊ | 3/35 [00:00<00:08, 3.70it/s]
11%|█▏ | 4/35 [00:01<00:08, 3.70it/s]
14%|█▍ | 5/35 [00:01<00:08, 3.71it/s]
17%|█▋ | 6/35 [00:01<00:07, 3.72it/s]
20%|██ | 7/35 [00:01<00:07, 3.72it/s]
23%|██▎ | 8/35 [00:02<00:07, 3.72it/s]
26%|██▌ | 9/35 [00:02<00:06, 3.72it/s]
29%|██▊ | 10/35 [00:02<00:06, 3.72it/s]
31%|███▏ | 11/35 [00:02<00:06, 3.72it/s]
34%|███▍ | 12/35 [00:03<00:06, 3.72it/s]
37%|███▋ | 13/35 [00:03<00:05, 3.68it/s]
40%|████ | 14/35 [00:03<00:05, 3.70it/s]
43%|████▎ | 15/35 [00:04<00:05, 3.70it/s]
46%|████▌ | 16/35 [00:04<00:05, 3.71it/s]
49%|████▊ | 17/35 [00:04<00:04, 3.71it/s]
51%|█████▏ | 18/35 [00:04<00:04, 3.72it/s]
54%|█████▍ | 19/35 [00:05<00:04, 3.72it/s]
57%|█████▋ | 20/35 [00:05<00:04, 3.71it/s]
60%|██████ | 21/35 [00:05<00:03, 3.72it/s]
63%|██████▎ | 22/35 [00:05<00:03, 3.72it/s]
66%|██████▌ | 23/35 [00:06<00:03, 3.71it/s]
69%|██████▊ | 24/35 [00:06<00:02, 3.71it/s]
71%|███████▏ | 25/35 [00:06<00:02, 3.71it/s]
74%|███████▍ | 26/35 [00:07<00:02, 3.71it/s]
77%|███████▋ | 27/35 [00:07<00:02, 3.71it/s]
80%|████████ | 28/35 [00:07<00:01, 3.71it/s]
83%|████████▎ | 29/35 [00:07<00:01, 3.72it/s]
86%|████████▌ | 30/35 [00:08<00:01, 3.71it/s]
89%|████████▊ | 31/35 [00:08<00:01, 3.71it/s]
91%|█████████▏| 32/35 [00:08<00:00, 3.71it/s]
94%|█████████▍| 33/35 [00:08<00:00, 3.72it/s]
97%|█████████▋| 34/35 [00:09<00:00, 3.71it/s]
100%|██████████| 35/35 [00:09<00:00, 3.71it/s]
100%|██████████| 35/35 [00:09<00:00, 3.71it/s]