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.
bingbangboom-lab /flux-waterscape:798f5ad1
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 bingbangboom-lab/flux-waterscape using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"bingbangboom-lab/flux-waterscape:798f5ad1241db1e1069a647323845837a546a29a1c33b0b1b0e7d8dbc8e5f179",
{
input: {
model: "dev",
prompt: "a girl wearing a flower crown, standing in a garden ,watercolor illustration in the style of WTRSCPE003",
go_fast: false,
lora_scale: 1,
megapixels: "1",
num_outputs: 1,
aspect_ratio: "1:1",
output_format: "png",
guidance_scale: 3.5,
output_quality: 100,
prompt_strength: 0.8,
extra_lora_scale: 1,
num_inference_steps: 25
}
}
);
// 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 bingbangboom-lab/flux-waterscape using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"bingbangboom-lab/flux-waterscape:798f5ad1241db1e1069a647323845837a546a29a1c33b0b1b0e7d8dbc8e5f179",
input={
"model": "dev",
"prompt": "a girl wearing a flower crown, standing in a garden ,watercolor illustration in the style of WTRSCPE003",
"go_fast": False,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "png",
"guidance_scale": 3.5,
"output_quality": 100,
"prompt_strength": 0.8,
"extra_lora_scale": 1,
"num_inference_steps": 25
}
)
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 bingbangboom-lab/flux-waterscape 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": "bingbangboom-lab/flux-waterscape:798f5ad1241db1e1069a647323845837a546a29a1c33b0b1b0e7d8dbc8e5f179",
"input": {
"model": "dev",
"prompt": "a girl wearing a flower crown, standing in a garden ,watercolor illustration in the style of WTRSCPE003",
"go_fast": false,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "png",
"guidance_scale": 3.5,
"output_quality": 100,
"prompt_strength": 0.8,
"extra_lora_scale": 1,
"num_inference_steps": 25
}
}' \
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-10-09T11:56:29.935324Z",
"created_at": "2024-10-09T11:56:07.619000Z",
"data_removed": false,
"error": null,
"id": "fqr7x4fe8drm40cje4h8mnxnag",
"input": {
"model": "dev",
"prompt": "a girl wearing a flower crown, standing in a garden ,watercolor illustration in the style of WTRSCPE003",
"lora_scale": 1,
"num_outputs": 1,
"aspect_ratio": "1:1",
"output_format": "png",
"guidance_scale": 3.5,
"output_quality": 100,
"prompt_strength": 0.8,
"extra_lora_scale": 1,
"num_inference_steps": 25
},
"logs": "Using seed: 50812\nPrompt: a girl wearing a flower crown, standing in a garden ,watercolor illustration in the style of WTRSCPE003\n[!] txt2img mode\nUsing dev model\nfree=7717417009152\nDownloading weights\n2024-10-09T11:56:17Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmp1inbq6s4/weights url=https://replicate.delivery/yhqm/Azk0nsBV5CaOONEV7b0neRHMoNbeLd9KVOhAcBSeEqySfovNB/trained_model.tar\n2024-10-09T11:56:20Z | INFO | [ Complete ] dest=/tmp/tmp1inbq6s4/weights size=\"172 MB\" total_elapsed=2.382s url=https://replicate.delivery/yhqm/Azk0nsBV5CaOONEV7b0neRHMoNbeLd9KVOhAcBSeEqySfovNB/trained_model.tar\nDownloaded weights in 2.41s\nLoaded LoRAs in 3.11s\n 0%| | 0/25 [00:00<?, ?it/s]\n 4%|▍ | 1/25 [00:00<00:08, 2.86it/s]\n 8%|▊ | 2/25 [00:00<00:07, 3.19it/s]\n 12%|█▏ | 3/25 [00:00<00:07, 3.03it/s]\n 16%|█▌ | 4/25 [00:01<00:07, 2.96it/s]\n 20%|██ | 5/25 [00:01<00:06, 2.93it/s]\n 24%|██▍ | 6/25 [00:02<00:06, 2.91it/s]\n 28%|██▊ | 7/25 [00:02<00:06, 2.89it/s]\n 32%|███▏ | 8/25 [00:02<00:05, 2.88it/s]\n 36%|███▌ | 9/25 [00:03<00:05, 2.88it/s]\n 40%|████ | 10/25 [00:03<00:05, 2.87it/s]\n 44%|████▍ | 11/25 [00:03<00:04, 2.87it/s]\n 48%|████▊ | 12/25 [00:04<00:04, 2.87it/s]\n 52%|█████▏ | 13/25 [00:04<00:04, 2.87it/s]\n 56%|█████▌ | 14/25 [00:04<00:03, 2.87it/s]\n 60%|██████ | 15/25 [00:05<00:03, 2.87it/s]\n 64%|██████▍ | 16/25 [00:05<00:03, 2.87it/s]\n 68%|██████▊ | 17/25 [00:05<00:02, 2.86it/s]\n 72%|███████▏ | 18/25 [00:06<00:02, 2.86it/s]\n 76%|███████▌ | 19/25 [00:06<00:02, 2.86it/s]\n 80%|████████ | 20/25 [00:06<00:01, 2.86it/s]\n 84%|████████▍ | 21/25 [00:07<00:01, 2.86it/s]\n 88%|████████▊ | 22/25 [00:07<00:01, 2.86it/s]\n 92%|█████████▏| 23/25 [00:07<00:00, 2.86it/s]\n 96%|█████████▌| 24/25 [00:08<00:00, 2.86it/s]\n100%|██████████| 25/25 [00:08<00:00, 2.86it/s]\n100%|██████████| 25/25 [00:08<00:00, 2.88it/s]",
"metrics": {
"predict_time": 12.354242571,
"total_time": 22.316324
},
"output": [
"https://replicate.delivery/yhqm/oC7fjNEylzTsSSseWvfLLdzfYKIVMetERRi7vNp1W8HptQocC/out-0.png"
],
"started_at": "2024-10-09T11:56:17.581082Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/fqr7x4fe8drm40cje4h8mnxnag",
"cancel": "https://api.replicate.com/v1/predictions/fqr7x4fe8drm40cje4h8mnxnag/cancel"
},
"version": "798f5ad1241db1e1069a647323845837a546a29a1c33b0b1b0e7d8dbc8e5f179"
}
Using seed: 50812
Prompt: a girl wearing a flower crown, standing in a garden ,watercolor illustration in the style of WTRSCPE003
[!] txt2img mode
Using dev model
free=7717417009152
Downloading weights
2024-10-09T11:56:17Z | INFO | [ Initiating ] chunk_size=150M dest=/tmp/tmp1inbq6s4/weights url=https://replicate.delivery/yhqm/Azk0nsBV5CaOONEV7b0neRHMoNbeLd9KVOhAcBSeEqySfovNB/trained_model.tar
2024-10-09T11:56:20Z | INFO | [ Complete ] dest=/tmp/tmp1inbq6s4/weights size="172 MB" total_elapsed=2.382s url=https://replicate.delivery/yhqm/Azk0nsBV5CaOONEV7b0neRHMoNbeLd9KVOhAcBSeEqySfovNB/trained_model.tar
Downloaded weights in 2.41s
Loaded LoRAs in 3.11s
0%| | 0/25 [00:00<?, ?it/s]
4%|▍ | 1/25 [00:00<00:08, 2.86it/s]
8%|▊ | 2/25 [00:00<00:07, 3.19it/s]
12%|█▏ | 3/25 [00:00<00:07, 3.03it/s]
16%|█▌ | 4/25 [00:01<00:07, 2.96it/s]
20%|██ | 5/25 [00:01<00:06, 2.93it/s]
24%|██▍ | 6/25 [00:02<00:06, 2.91it/s]
28%|██▊ | 7/25 [00:02<00:06, 2.89it/s]
32%|███▏ | 8/25 [00:02<00:05, 2.88it/s]
36%|███▌ | 9/25 [00:03<00:05, 2.88it/s]
40%|████ | 10/25 [00:03<00:05, 2.87it/s]
44%|████▍ | 11/25 [00:03<00:04, 2.87it/s]
48%|████▊ | 12/25 [00:04<00:04, 2.87it/s]
52%|█████▏ | 13/25 [00:04<00:04, 2.87it/s]
56%|█████▌ | 14/25 [00:04<00:03, 2.87it/s]
60%|██████ | 15/25 [00:05<00:03, 2.87it/s]
64%|██████▍ | 16/25 [00:05<00:03, 2.87it/s]
68%|██████▊ | 17/25 [00:05<00:02, 2.86it/s]
72%|███████▏ | 18/25 [00:06<00:02, 2.86it/s]
76%|███████▌ | 19/25 [00:06<00:02, 2.86it/s]
80%|████████ | 20/25 [00:06<00:01, 2.86it/s]
84%|████████▍ | 21/25 [00:07<00:01, 2.86it/s]
88%|████████▊ | 22/25 [00:07<00:01, 2.86it/s]
92%|█████████▏| 23/25 [00:07<00:00, 2.86it/s]
96%|█████████▌| 24/25 [00:08<00:00, 2.86it/s]
100%|██████████| 25/25 [00:08<00:00, 2.86it/s]
100%|██████████| 25/25 [00:08<00:00, 2.88it/s]