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.
witzelfitz /gardenflux:b50ad39c
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 witzelfitz/gardenflux using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run(
"witzelfitz/gardenflux:b50ad39c082c82d614b38d3cfaf5ae7a922b23b8528eeed5e54d44b56b90254e",
{
input: {
model: "schnell",
prompt: "swiss garden, vegetables, flowers, swimming pool",
go_fast: false,
lora_scale: 1,
megapixels: "1",
num_outputs: 1,
aspect_ratio: "16:9",
output_format: "webp",
guidance_scale: 3.5,
output_quality: 80,
prompt_strength: 0.8,
extra_lora_scale: 0.8,
num_inference_steps: 4
}
}
);
// 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 witzelfitz/gardenflux using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run(
"witzelfitz/gardenflux:b50ad39c082c82d614b38d3cfaf5ae7a922b23b8528eeed5e54d44b56b90254e",
input={
"model": "schnell",
"prompt": "swiss garden, vegetables, flowers, swimming pool",
"go_fast": False,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "16:9",
"output_format": "webp",
"guidance_scale": 3.5,
"output_quality": 80,
"prompt_strength": 0.8,
"extra_lora_scale": 0.8,
"num_inference_steps": 4
}
)
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 witzelfitz/gardenflux 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": "witzelfitz/gardenflux:b50ad39c082c82d614b38d3cfaf5ae7a922b23b8528eeed5e54d44b56b90254e",
"input": {
"model": "schnell",
"prompt": "swiss garden, vegetables, flowers, swimming pool",
"go_fast": false,
"lora_scale": 1,
"megapixels": "1",
"num_outputs": 1,
"aspect_ratio": "16:9",
"output_format": "webp",
"guidance_scale": 3.5,
"output_quality": 80,
"prompt_strength": 0.8,
"extra_lora_scale": 0.8,
"num_inference_steps": 4
}
}' \
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-24T13:51:19.983066Z",
"created_at": "2024-08-24T13:51:18.404000Z",
"data_removed": false,
"error": null,
"id": "yvzby9psghrm00chgjkt3q0kcr",
"input": {
"model": "schnell",
"prompt": "swiss garden, vegetables, flowers, swimming pool",
"lora_scale": 1,
"num_outputs": 1,
"aspect_ratio": "16:9",
"output_format": "webp",
"guidance_scale": 3.5,
"output_quality": 80,
"extra_lora_scale": 0.8,
"num_inference_steps": 4
},
"logs": "Using seed: 43197\nPrompt: swiss garden, vegetables, flowers, swimming pool\ntxt2img mode\nUsing schnell model\nWeights already loaded\nLoaded LoRAs in 0.04s\n 0%| | 0/4 [00:00<?, ?it/s]\n 25%|██▌ | 1/4 [00:00<00:00, 3.90it/s]\n 50%|█████ | 2/4 [00:00<00:00, 4.47it/s]\n 75%|███████▌ | 3/4 [00:00<00:00, 4.20it/s]\n100%|██████████| 4/4 [00:00<00:00, 4.08it/s]\n100%|██████████| 4/4 [00:00<00:00, 4.13it/s]",
"metrics": {
"predict_time": 1.569498674,
"total_time": 1.579066
},
"output": [
"https://replicate.delivery/yhqm/C87Lg43T2NrIBRdSfNXbarm7wje2m96nryGfSHPwjTbu6yrmA/out-0.webp"
],
"started_at": "2024-08-24T13:51:18.413567Z",
"status": "succeeded",
"urls": {
"get": "https://api.replicate.com/v1/predictions/yvzby9psghrm00chgjkt3q0kcr",
"cancel": "https://api.replicate.com/v1/predictions/yvzby9psghrm00chgjkt3q0kcr/cancel"
},
"version": "b50ad39c082c82d614b38d3cfaf5ae7a922b23b8528eeed5e54d44b56b90254e"
}
Using seed: 43197
Prompt: swiss garden, vegetables, flowers, swimming pool
txt2img mode
Using schnell model
Weights already loaded
Loaded LoRAs in 0.04s
0%| | 0/4 [00:00<?, ?it/s]
25%|██▌ | 1/4 [00:00<00:00, 3.90it/s]
50%|█████ | 2/4 [00:00<00:00, 4.47it/s]
75%|███████▌ | 3/4 [00:00<00:00, 4.20it/s]
100%|██████████| 4/4 [00:00<00:00, 4.08it/s]
100%|██████████| 4/4 [00:00<00:00, 4.13it/s]