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.
pixelprotest /flux-monkey-island:980fb047
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 pixelprotest/flux-monkey-island using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"pixelprotest/flux-monkey-island:980fb0479cd3a8637643ee87a8c1b9b56b3db5dd08f1737cd9dbed3cda1af842",
{
input: {
prompt: "astronaut flying through space looking a monkeys floating eating giant bananas",
lora_scale: 1,
num_outputs: 1,
aspect_ratio: "16:9",
output_format: "jpg",
guidance_scale: 4,
output_quality: 80,
num_inference_steps: 20
}
}
);
// 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 pixelprotest/flux-monkey-island using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"pixelprotest/flux-monkey-island:980fb0479cd3a8637643ee87a8c1b9b56b3db5dd08f1737cd9dbed3cda1af842",
input={
"prompt": "astronaut flying through space looking a monkeys floating eating giant bananas",
"lora_scale": 1,
"num_outputs": 1,
"aspect_ratio": "16:9",
"output_format": "jpg",
"guidance_scale": 4,
"output_quality": 80,
"num_inference_steps": 20
}
)
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 pixelprotest/flux-monkey-island 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": "pixelprotest/flux-monkey-island:980fb0479cd3a8637643ee87a8c1b9b56b3db5dd08f1737cd9dbed3cda1af842",
"input": {
"prompt": "astronaut flying through space looking a monkeys floating eating giant bananas",
"lora_scale": 1,
"num_outputs": 1,
"aspect_ratio": "16:9",
"output_format": "jpg",
"guidance_scale": 4,
"output_quality": 80,
"num_inference_steps": 20
}
}' \
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-08-21T13:39:10.869122Z",
"created_at": "2024-08-21T13:33:51.601000Z",
"data_removed": false,
"error": null,
"id": "jcs86cece5rgj0chemj8sda8dg",
"input": {
"prompt": "astronaut flying through space looking a monkeys floating eating giant bananas",
"lora_scale": 1,
"num_outputs": 1,
"aspect_ratio": "16:9",
"output_format": "jpg",
"guidance_scale": 4,
"output_quality": 80,
"num_inference_steps": 20
},
"logs": "Using seed: 63259\nPrompt: astronaut flying through space looking a monkeys floating eating giant bananas\ntxt2img mode\n---- lora is loaded: /src/lora/monkey_island_v002_10k.safetensors\n 0%| | 0/20 [00:00<?, ?it/s]\n 5%|▌ | 1/20 [00:00<00:12, 1.52it/s]\n 10%|█ | 2/20 [00:01<00:09, 1.96it/s]\n 15%|█▌ | 3/20 [00:01<00:08, 1.91it/s]\n 20%|██ | 4/20 [00:02<00:08, 1.88it/s]\n 25%|██▌ | 5/20 [00:02<00:08, 1.87it/s]\n 30%|███ | 6/20 [00:03<00:07, 1.86it/s]\n 35%|███▌ | 7/20 [00:03<00:07, 1.86it/s]\n 40%|████ | 8/20 [00:04<00:06, 1.85it/s]\n 45%|████▌ | 9/20 [00:04<00:05, 1.85it/s]\n 50%|█████ | 10/20 [00:05<00:05, 1.85it/s]\n 55%|█████▌ | 11/20 [00:05<00:04, 1.85it/s]\n 60%|██████ | 12/20 [00:06<00:04, 1.85it/s]\n 65%|██████▌ | 13/20 [00:07<00:03, 1.84it/s]\n 70%|███████ | 14/20 [00:07<00:03, 1.84it/s]\n 75%|███████▌ | 15/20 [00:08<00:02, 1.84it/s]\n 80%|████████ | 16/20 [00:08<00:02, 1.84it/s]\n 85%|████████▌ | 17/20 [00:09<00:01, 1.84it/s]\n 90%|█████████ | 18/20 [00:09<00:01, 1.84it/s]\n 95%|█████████▌| 19/20 [00:10<00:00, 1.84it/s]\n100%|██████████| 20/20 [00:10<00:00, 1.84it/s]\n100%|██████████| 20/20 [00:10<00:00, 1.85it/s]",
"metrics": {
"predict_time": 14.929652788,
"total_time": 319.268122
},
"output": [
"https://replicate.delivery/pbxt/yudnsVjeWNTLLSfOysIlSoBtKew1smgTahMLEmBlwe75fPnaC/out-0.jpg"
],
"started_at": "2024-08-21T13:38:55.939470Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/jcs86cece5rgj0chemj8sda8dg",
"cancel": "https://api.replicate.com/v1/predictions/jcs86cece5rgj0chemj8sda8dg/cancel"
},
"version": "980fb0479cd3a8637643ee87a8c1b9b56b3db5dd08f1737cd9dbed3cda1af842"
}
Using seed: 63259
Prompt: astronaut flying through space looking a monkeys floating eating giant bananas
txt2img mode
---- lora is loaded: /src/lora/monkey_island_v002_10k.safetensors
0%| | 0/20 [00:00<?, ?it/s]
5%|▌ | 1/20 [00:00<00:12, 1.52it/s]
10%|█ | 2/20 [00:01<00:09, 1.96it/s]
15%|█▌ | 3/20 [00:01<00:08, 1.91it/s]
20%|██ | 4/20 [00:02<00:08, 1.88it/s]
25%|██▌ | 5/20 [00:02<00:08, 1.87it/s]
30%|███ | 6/20 [00:03<00:07, 1.86it/s]
35%|███▌ | 7/20 [00:03<00:07, 1.86it/s]
40%|████ | 8/20 [00:04<00:06, 1.85it/s]
45%|████▌ | 9/20 [00:04<00:05, 1.85it/s]
50%|█████ | 10/20 [00:05<00:05, 1.85it/s]
55%|█████▌ | 11/20 [00:05<00:04, 1.85it/s]
60%|██████ | 12/20 [00:06<00:04, 1.85it/s]
65%|██████▌ | 13/20 [00:07<00:03, 1.84it/s]
70%|███████ | 14/20 [00:07<00:03, 1.84it/s]
75%|███████▌ | 15/20 [00:08<00:02, 1.84it/s]
80%|████████ | 16/20 [00:08<00:02, 1.84it/s]
85%|████████▌ | 17/20 [00:09<00:01, 1.84it/s]
90%|█████████ | 18/20 [00:09<00:01, 1.84it/s]
95%|█████████▌| 19/20 [00:10<00:00, 1.84it/s]
100%|██████████| 20/20 [00:10<00:00, 1.84it/s]
100%|██████████| 20/20 [00:10<00:00, 1.85it/s]