usamaehsan / flux-multi-controlnet
Fast FLUX DEV -> Flux Controlnet Canny, Controlnet Depth , Controlnet Line Art, Controlnet Upscaler - You can use just one controlnet or All - LORAs: HyperFlex LoRA , Add Details LoRA , Realism LoRA
- Public
- 176.5K runs
Prediction
usamaehsan/flux-multi-controlnet:8f72dc2274ae1473661abadebb0c5b5c0f0cefa6dd38a875e556b91d21a1cdfcIDe8p5cj3pd9rgg0chq0h8faepvwStatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- seed
- 55
- steps
- 8
- prompt
- A girl in city, 25 years old, cool, futuristic
- canny_strength
- 0.6
- guidance_scale
- 3.5
- use_controlnet
{ "seed": 55, "steps": 8, "prompt": "A girl in city, 25 years old, cool, futuristic", "canny_image": "https://replicate.delivery/pbxt/LYiatBXnZW3Ol34MLlkubHWD540A7P3O95Q51U5nu4PzrhKw/ComfyUI_02172_.png", "canny_strength": 0.6, "guidance_scale": 3.5, "use_controlnet": true }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run usamaehsan/flux-multi-controlnet using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "usamaehsan/flux-multi-controlnet:8f72dc2274ae1473661abadebb0c5b5c0f0cefa6dd38a875e556b91d21a1cdfc", { input: { seed: 55, steps: 8, prompt: "A girl in city, 25 years old, cool, futuristic", canny_image: "https://replicate.delivery/pbxt/LYiatBXnZW3Ol34MLlkubHWD540A7P3O95Q51U5nu4PzrhKw/ComfyUI_02172_.png", canny_strength: 0.6, guidance_scale: 3.5, use_controlnet: true } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run usamaehsan/flux-multi-controlnet using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "usamaehsan/flux-multi-controlnet:8f72dc2274ae1473661abadebb0c5b5c0f0cefa6dd38a875e556b91d21a1cdfc", input={ "seed": 55, "steps": 8, "prompt": "A girl in city, 25 years old, cool, futuristic", "canny_image": "https://replicate.delivery/pbxt/LYiatBXnZW3Ol34MLlkubHWD540A7P3O95Q51U5nu4PzrhKw/ComfyUI_02172_.png", "canny_strength": 0.6, "guidance_scale": 3.5, "use_controlnet": True } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run usamaehsan/flux-multi-controlnet 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": "usamaehsan/flux-multi-controlnet:8f72dc2274ae1473661abadebb0c5b5c0f0cefa6dd38a875e556b91d21a1cdfc", "input": { "seed": 55, "steps": 8, "prompt": "A girl in city, 25 years old, cool, futuristic", "canny_image": "https://replicate.delivery/pbxt/LYiatBXnZW3Ol34MLlkubHWD540A7P3O95Q51U5nu4PzrhKw/ComfyUI_02172_.png", "canny_strength": 0.6, "guidance_scale": 3.5, "use_controlnet": true } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-09-03T14:03:06.787640Z", "created_at": "2024-09-03T13:45:51.978000Z", "data_removed": false, "error": null, "id": "e8p5cj3pd9rgg0chq0h8faepvw", "input": { "seed": 55, "steps": 8, "prompt": "A girl in city, 25 years old, cool, futuristic", "canny_image": "https://replicate.delivery/pbxt/LYiatBXnZW3Ol34MLlkubHWD540A7P3O95Q51U5nu4PzrhKw/ComfyUI_02172_.png", "canny_strength": 0.6, "guidance_scale": 3.5, "use_controlnet": true }, "logs": "Using seed: 55\n 0%| | 0/8 [00:00<?, ?it/s]\n 12%|█▎ | 1/8 [00:01<00:08, 1.15s/it]\n 25%|██▌ | 2/8 [00:01<00:05, 1.07it/s]\n 38%|███▊ | 3/8 [00:03<00:05, 1.02s/it]\n 50%|█████ | 4/8 [00:04<00:04, 1.06s/it]\n 62%|██████▎ | 5/8 [00:05<00:03, 1.09s/it]\n 75%|███████▌ | 6/8 [00:06<00:02, 1.10s/it]\n 88%|████████▊ | 7/8 [00:07<00:01, 1.11s/it]\n100%|██████████| 8/8 [00:08<00:00, 1.12s/it]\n100%|██████████| 8/8 [00:08<00:00, 1.09s/it]", "metrics": { "predict_time": 11.767640481, "total_time": 1034.80964 }, "output": "https://replicate.delivery/pbxt/MgfAAVIywIQHaSVBO2ojYq89NhARL0MOf6BabirSflfqRykNB/output.png", "started_at": "2024-09-03T14:02:55.020000Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/e8p5cj3pd9rgg0chq0h8faepvw", "cancel": "https://api.replicate.com/v1/predictions/e8p5cj3pd9rgg0chq0h8faepvw/cancel" }, "version": "8f72dc2274ae1473661abadebb0c5b5c0f0cefa6dd38a875e556b91d21a1cdfc" }
Generated inUsing seed: 55 0%| | 0/8 [00:00<?, ?it/s] 12%|█▎ | 1/8 [00:01<00:08, 1.15s/it] 25%|██▌ | 2/8 [00:01<00:05, 1.07it/s] 38%|███▊ | 3/8 [00:03<00:05, 1.02s/it] 50%|█████ | 4/8 [00:04<00:04, 1.06s/it] 62%|██████▎ | 5/8 [00:05<00:03, 1.09s/it] 75%|███████▌ | 6/8 [00:06<00:02, 1.10s/it] 88%|████████▊ | 7/8 [00:07<00:01, 1.11s/it] 100%|██████████| 8/8 [00:08<00:00, 1.12s/it] 100%|██████████| 8/8 [00:08<00:00, 1.09s/it]
Prediction
usamaehsan/flux-multi-controlnet:85977e123cce81357b5d8622384de79331793cbefc847b127c3830bf88f9f946ID6qt82e1m9xrgg0cjqg58etws34StatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- seed
- 55
- steps
- 8
- prompt
- A girl in city, 25 years old, cool, futuristic
- widthh
- 0
- heightt
- 0
- guidance_scale
- 3.5
- controlnet_type
- canny
- control_strength
- 0.6
- realism_lora_weight
- 0
- hyperflex_lora_weight
- 0.125
- add_details_lora_weight
- 0
{ "seed": 55, "steps": 8, "prompt": "A girl in city, 25 years old, cool, futuristic", "widthh": 0, "heightt": 0, "control_image": "https://replicate.delivery/pbxt/LqdGuSlst5YSQdRgZtOpl6l5ngRBnc4V6SeJ14WszN0km2K4/ComfyUI_00001_.webp", "guidance_scale": 3.5, "controlnet_type": "canny", "control_strength": 0.6, "realism_lora_weight": 0, "hyperflex_lora_weight": 0.125, "add_details_lora_weight": 0 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run usamaehsan/flux-multi-controlnet using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "usamaehsan/flux-multi-controlnet:85977e123cce81357b5d8622384de79331793cbefc847b127c3830bf88f9f946", { input: { seed: 55, steps: 8, prompt: "A girl in city, 25 years old, cool, futuristic", widthh: 0, heightt: 0, control_image: "https://replicate.delivery/pbxt/LqdGuSlst5YSQdRgZtOpl6l5ngRBnc4V6SeJ14WszN0km2K4/ComfyUI_00001_.webp", guidance_scale: 3.5, controlnet_type: "canny", control_strength: 0.6, realism_lora_weight: 0, hyperflex_lora_weight: 0.125, add_details_lora_weight: 0 } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run usamaehsan/flux-multi-controlnet using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "usamaehsan/flux-multi-controlnet:85977e123cce81357b5d8622384de79331793cbefc847b127c3830bf88f9f946", input={ "seed": 55, "steps": 8, "prompt": "A girl in city, 25 years old, cool, futuristic", "widthh": 0, "heightt": 0, "control_image": "https://replicate.delivery/pbxt/LqdGuSlst5YSQdRgZtOpl6l5ngRBnc4V6SeJ14WszN0km2K4/ComfyUI_00001_.webp", "guidance_scale": 3.5, "controlnet_type": "canny", "control_strength": 0.6, "realism_lora_weight": 0, "hyperflex_lora_weight": 0.125, "add_details_lora_weight": 0 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run usamaehsan/flux-multi-controlnet 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": "usamaehsan/flux-multi-controlnet:85977e123cce81357b5d8622384de79331793cbefc847b127c3830bf88f9f946", "input": { "seed": 55, "steps": 8, "prompt": "A girl in city, 25 years old, cool, futuristic", "widthh": 0, "heightt": 0, "control_image": "https://replicate.delivery/pbxt/LqdGuSlst5YSQdRgZtOpl6l5ngRBnc4V6SeJ14WszN0km2K4/ComfyUI_00001_.webp", "guidance_scale": 3.5, "controlnet_type": "canny", "control_strength": 0.6, "realism_lora_weight": 0, "hyperflex_lora_weight": 0.125, "add_details_lora_weight": 0 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-10-24T01:08:45.455696Z", "created_at": "2024-10-24T01:00:38.351000Z", "data_removed": false, "error": null, "id": "6qt82e1m9xrgg0cjqg58etws34", "input": { "seed": 55, "steps": 8, "prompt": "A girl in city, 25 years old, cool, futuristic", "widthh": 0, "heightt": 0, "control_image": "https://replicate.delivery/pbxt/LqdGuSlst5YSQdRgZtOpl6l5ngRBnc4V6SeJ14WszN0km2K4/ComfyUI_00001_.webp", "guidance_scale": 3.5, "controlnet_type": "canny", "control_strength": 0.6, "realism_lora_weight": 0, "hyperflex_lora_weight": 0.125, "add_details_lora_weight": 0 }, "logs": "Using seed: 55\n 0%| | 0/8 [00:00<?, ?it/s]\n 12%|█▎ | 1/8 [00:01<00:08, 1.20s/it]\n 25%|██▌ | 2/8 [00:01<00:05, 1.08it/s]\n 38%|███▊ | 3/8 [00:03<00:04, 1.00it/s]\n 50%|█████ | 4/8 [00:04<00:04, 1.03s/it]\n 62%|██████▎ | 5/8 [00:05<00:03, 1.05s/it]\n 75%|███████▌ | 6/8 [00:06<00:02, 1.06s/it]\n 88%|████████▊ | 7/8 [00:07<00:01, 1.07s/it]\n100%|██████████| 8/8 [00:08<00:00, 1.07s/it]\n100%|██████████| 8/8 [00:08<00:00, 1.05s/it]", "metrics": { "predict_time": 11.117399738, "total_time": 487.104696 }, "output": "https://replicate.delivery/pbxt/GMmnCZwaIf1WCCqjz9I2Ge8PzWwzYiWGNqgf9lDDBBL7AqTnA/output.png", "started_at": "2024-10-24T01:08:34.338296Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/6qt82e1m9xrgg0cjqg58etws34", "cancel": "https://api.replicate.com/v1/predictions/6qt82e1m9xrgg0cjqg58etws34/cancel" }, "version": "85977e123cce81357b5d8622384de79331793cbefc847b127c3830bf88f9f946" }
Generated inUsing seed: 55 0%| | 0/8 [00:00<?, ?it/s] 12%|█▎ | 1/8 [00:01<00:08, 1.20s/it] 25%|██▌ | 2/8 [00:01<00:05, 1.08it/s] 38%|███▊ | 3/8 [00:03<00:04, 1.00it/s] 50%|█████ | 4/8 [00:04<00:04, 1.03s/it] 62%|██████▎ | 5/8 [00:05<00:03, 1.05s/it] 75%|███████▌ | 6/8 [00:06<00:02, 1.06s/it] 88%|████████▊ | 7/8 [00:07<00:01, 1.07s/it] 100%|██████████| 8/8 [00:08<00:00, 1.07s/it] 100%|██████████| 8/8 [00:08<00:00, 1.05s/it]
Prediction
usamaehsan/flux-multi-controlnet:b4bbaaca12958a10e5d09020bae87622ea022ab1cef361463002f6a8fbe61623IDqhd8pj7adsrgm0cjqj6r6gxst0StatusSucceededSourceWebHardwareA40 (Large)Total durationCreatedInput
- seed
- 55
- steps
- 8
- prompt
- A girl in city, 25 years old, cool, futuristic
- widthh
- 0
- heightt
- 0
- canny_strength
- 0.6
- depth_strength
- 0.6
- guidance_scale
- 3.5
- lineart_strength
- 0.6
- upscaler_strength
- 0.6
- realism_lora_weight
- 0
- hyperflex_lora_weight
- 0.125
- add_details_lora_weight
- 0
{ "seed": 55, "steps": 8, "prompt": "A girl in city, 25 years old, cool, futuristic", "widthh": 0, "heightt": 0, "canny_image": "https://replicate.delivery/pbxt/LqfTEt3bOgHxQUb7D4cXKowibv4yLsWbAjOnKjUjD70qGWxB/ComfyUI_00001_.webp", "canny_strength": 0.6, "depth_strength": 0.6, "guidance_scale": 3.5, "lineart_strength": 0.6, "upscaler_strength": 0.6, "realism_lora_weight": 0, "hyperflex_lora_weight": 0.125, "add_details_lora_weight": 0 }
Install Replicate’s Node.js client library:npm install replicate
Import and set up the client:import Replicate from "replicate"; import fs from "node:fs"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run usamaehsan/flux-multi-controlnet using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const output = await replicate.run( "usamaehsan/flux-multi-controlnet:b4bbaaca12958a10e5d09020bae87622ea022ab1cef361463002f6a8fbe61623", { input: { seed: 55, steps: 8, prompt: "A girl in city, 25 years old, cool, futuristic", widthh: 0, heightt: 0, canny_image: "https://replicate.delivery/pbxt/LqfTEt3bOgHxQUb7D4cXKowibv4yLsWbAjOnKjUjD70qGWxB/ComfyUI_00001_.webp", canny_strength: 0.6, depth_strength: 0.6, guidance_scale: 3.5, lineart_strength: 0.6, upscaler_strength: 0.6, realism_lora_weight: 0, hyperflex_lora_weight: 0.125, add_details_lora_weight: 0 } } ); // To access the file URL: console.log(output.url()); //=> "http://example.com" // To write the file to disk: fs.writeFile("my-image.png", output);
To learn more, take a look at the guide on getting started with Node.js.
Install Replicate’s Python client library:pip install replicate
Import the client:import replicate
Run usamaehsan/flux-multi-controlnet using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "usamaehsan/flux-multi-controlnet:b4bbaaca12958a10e5d09020bae87622ea022ab1cef361463002f6a8fbe61623", input={ "seed": 55, "steps": 8, "prompt": "A girl in city, 25 years old, cool, futuristic", "widthh": 0, "heightt": 0, "canny_image": "https://replicate.delivery/pbxt/LqfTEt3bOgHxQUb7D4cXKowibv4yLsWbAjOnKjUjD70qGWxB/ComfyUI_00001_.webp", "canny_strength": 0.6, "depth_strength": 0.6, "guidance_scale": 3.5, "lineart_strength": 0.6, "upscaler_strength": 0.6, "realism_lora_weight": 0, "hyperflex_lora_weight": 0.125, "add_details_lora_weight": 0 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Run usamaehsan/flux-multi-controlnet 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": "usamaehsan/flux-multi-controlnet:b4bbaaca12958a10e5d09020bae87622ea022ab1cef361463002f6a8fbe61623", "input": { "seed": 55, "steps": 8, "prompt": "A girl in city, 25 years old, cool, futuristic", "widthh": 0, "heightt": 0, "canny_image": "https://replicate.delivery/pbxt/LqfTEt3bOgHxQUb7D4cXKowibv4yLsWbAjOnKjUjD70qGWxB/ComfyUI_00001_.webp", "canny_strength": 0.6, "depth_strength": 0.6, "guidance_scale": 3.5, "lineart_strength": 0.6, "upscaler_strength": 0.6, "realism_lora_weight": 0, "hyperflex_lora_weight": 0.125, "add_details_lora_weight": 0 } }' \ https://api.replicate.com/v1/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-10-24T03:29:21.851350Z", "created_at": "2024-10-24T03:24:30.190000Z", "data_removed": false, "error": null, "id": "qhd8pj7adsrgm0cjqj6r6gxst0", "input": { "seed": 55, "steps": 8, "prompt": "A girl in city, 25 years old, cool, futuristic", "widthh": 0, "heightt": 0, "canny_image": "https://replicate.delivery/pbxt/LqfTEt3bOgHxQUb7D4cXKowibv4yLsWbAjOnKjUjD70qGWxB/ComfyUI_00001_.webp", "canny_strength": 0.6, "depth_strength": 0.6, "guidance_scale": 3.5, "lineart_strength": 0.6, "upscaler_strength": 0.6, "realism_lora_weight": 0, "hyperflex_lora_weight": 0.125, "add_details_lora_weight": 0 }, "logs": "Using seed: 55\n 0%| | 0/8 [00:00<?, ?it/s]\n 12%|█▎ | 1/8 [00:01<00:08, 1.15s/it]\n 25%|██▌ | 2/8 [00:01<00:05, 1.06it/s]\n 38%|███▊ | 3/8 [00:03<00:05, 1.03s/it]\n 50%|█████ | 4/8 [00:04<00:04, 1.07s/it]\n 62%|██████▎ | 5/8 [00:05<00:03, 1.10s/it]\n 75%|███████▌ | 6/8 [00:06<00:02, 1.11s/it]\n 88%|████████▊ | 7/8 [00:07<00:01, 1.12s/it]\n100%|██████████| 8/8 [00:08<00:00, 1.13s/it]\n100%|██████████| 8/8 [00:08<00:00, 1.10s/it]", "metrics": { "predict_time": 14.85371859, "total_time": 291.66135 }, "output": "https://replicate.delivery/pbxt/psKDf2UofVhRAkpTtOZAscLxAN3yIywcMFBt4xSW0k4QE3pTA/output.png", "started_at": "2024-10-24T03:29:06.997632Z", "status": "succeeded", "urls": { "get": "https://api.replicate.com/v1/predictions/qhd8pj7adsrgm0cjqj6r6gxst0", "cancel": "https://api.replicate.com/v1/predictions/qhd8pj7adsrgm0cjqj6r6gxst0/cancel" }, "version": "b4bbaaca12958a10e5d09020bae87622ea022ab1cef361463002f6a8fbe61623" }
Generated inUsing seed: 55 0%| | 0/8 [00:00<?, ?it/s] 12%|█▎ | 1/8 [00:01<00:08, 1.15s/it] 25%|██▌ | 2/8 [00:01<00:05, 1.06it/s] 38%|███▊ | 3/8 [00:03<00:05, 1.03s/it] 50%|█████ | 4/8 [00:04<00:04, 1.07s/it] 62%|██████▎ | 5/8 [00:05<00:03, 1.10s/it] 75%|███████▌ | 6/8 [00:06<00:02, 1.11s/it] 88%|████████▊ | 7/8 [00:07<00:01, 1.12s/it] 100%|██████████| 8/8 [00:08<00:00, 1.13s/it] 100%|██████████| 8/8 [00:08<00:00, 1.10s/it]
Want to make some of these yourself?
Run this model