black-forest-labs
/
flux-depth-dev
Open-weight depth-aware image generation. Edit images while preserving spatial relationships.
Prediction
black-forest-labs/flux-depth-devOfficial modelIDbfpjneq0f1rme0ck9wy8xdj014StatusSucceededSourceWebTotal durationCreatedInput
- prompt
- A tropical beach
- guidance
- 10
- megapixels
- 1
- num_outputs
- 1
- output_format
- webp
- output_quality
- 80
- num_inference_steps
- 28
{ "prompt": "A tropical beach", "guidance": 10, "megapixels": "1", "num_outputs": 1, "control_image": "https://replicate.delivery/pbxt/M0mJ4lphqO0HOGDb7jwYb4nMjmn0fh3joS0PxeQ90TPN0Skb/IMG_2270.jpg", "output_format": "webp", "output_quality": 80, "num_inference_steps": 28 }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run black-forest-labs/flux-depth-dev using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { prompt: "A tropical beach", guidance: 10, megapixels: "1", num_outputs: 1, control_image: "https://replicate.delivery/pbxt/M0mJ4lphqO0HOGDb7jwYb4nMjmn0fh3joS0PxeQ90TPN0Skb/IMG_2270.jpg", output_format: "webp", output_quality: 80, num_inference_steps: 28 }; const output = await replicate.run("black-forest-labs/flux-depth-dev", { input }); console.log(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
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run black-forest-labs/flux-depth-dev using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "black-forest-labs/flux-depth-dev", input={ "prompt": "A tropical beach", "guidance": 10, "megapixels": "1", "num_outputs": 1, "control_image": "https://replicate.delivery/pbxt/M0mJ4lphqO0HOGDb7jwYb4nMjmn0fh3joS0PxeQ90TPN0Skb/IMG_2270.jpg", "output_format": "webp", "output_quality": 80, "num_inference_steps": 28 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run black-forest-labs/flux-depth-dev 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 $'{ "input": { "prompt": "A tropical beach", "guidance": 10, "megapixels": "1", "num_outputs": 1, "control_image": "https://replicate.delivery/pbxt/M0mJ4lphqO0HOGDb7jwYb4nMjmn0fh3joS0PxeQ90TPN0Skb/IMG_2270.jpg", "output_format": "webp", "output_quality": 80, "num_inference_steps": 28 } }' \ https://api.replicate.com/v1/models/black-forest-labs/flux-depth-dev/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-11-21T15:00:20.577146Z", "created_at": "2024-11-21T15:00:09.976000Z", "data_removed": false, "error": null, "id": "bfpjneq0f1rme0ck9wy8xdj014", "input": { "prompt": "A tropical beach", "guidance": 10, "megapixels": "1", "num_outputs": 1, "control_image": "https://replicate.delivery/pbxt/M0mJ4lphqO0HOGDb7jwYb4nMjmn0fh3joS0PxeQ90TPN0Skb/IMG_2270.jpg", "output_format": "webp", "output_quality": 80, "num_inference_steps": 28 }, "logs": "running bf16 model, fp8 disabled\nUsing seed: 58064\n0it [00:00, ?it/s]\n1it [00:00, 6.69it/s]\n2it [00:00, 5.43it/s]\n3it [00:00, 5.12it/s]\n4it [00:00, 4.98it/s]\n5it [00:00, 4.89it/s]\n6it [00:01, 4.82it/s]\n7it [00:01, 4.79it/s]\n8it [00:01, 4.78it/s]\n9it [00:01, 4.78it/s]\n10it [00:02, 4.76it/s]\n11it [00:02, 4.75it/s]\n12it [00:02, 4.75it/s]\n13it [00:02, 4.76it/s]\n14it [00:02, 4.76it/s]\n15it [00:03, 4.74it/s]\n16it [00:03, 4.73it/s]\n17it [00:03, 4.74it/s]\n18it [00:03, 4.74it/s]\n19it [00:03, 4.75it/s]\n20it [00:04, 4.75it/s]\n21it [00:04, 4.74it/s]\n22it [00:04, 4.74it/s]\n23it [00:04, 4.74it/s]\n24it [00:04, 4.74it/s]\n25it [00:05, 4.74it/s]\n26it [00:05, 4.74it/s]\n27it [00:05, 4.74it/s]\n28it [00:05, 4.75it/s]\n28it [00:05, 4.80it/s]\nTotal safe images: 1 out of 1", "metrics": { "image_count": 1, "predict_time": 10.590404969, "total_time": 10.601146 }, "output": [ "https://replicate.delivery/xezq/JnlhyMG4GD6uEpGsfoXVG7wc8pIvQ3UtfRRhyef2aXkQQfZeE/out-0.webp" ], "started_at": "2024-11-21T15:00:09.986741Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-7brw2myhdndib5siqoz6hdynxdx7pnke4y5dmcb5uy62qdqqcddq", "get": "https://api.replicate.com/v1/predictions/bfpjneq0f1rme0ck9wy8xdj014", "cancel": "https://api.replicate.com/v1/predictions/bfpjneq0f1rme0ck9wy8xdj014/cancel" }, "version": "hidden" }
Generated inrunning bf16 model, fp8 disabled Using seed: 58064 0it [00:00, ?it/s] 1it [00:00, 6.69it/s] 2it [00:00, 5.43it/s] 3it [00:00, 5.12it/s] 4it [00:00, 4.98it/s] 5it [00:00, 4.89it/s] 6it [00:01, 4.82it/s] 7it [00:01, 4.79it/s] 8it [00:01, 4.78it/s] 9it [00:01, 4.78it/s] 10it [00:02, 4.76it/s] 11it [00:02, 4.75it/s] 12it [00:02, 4.75it/s] 13it [00:02, 4.76it/s] 14it [00:02, 4.76it/s] 15it [00:03, 4.74it/s] 16it [00:03, 4.73it/s] 17it [00:03, 4.74it/s] 18it [00:03, 4.74it/s] 19it [00:03, 4.75it/s] 20it [00:04, 4.75it/s] 21it [00:04, 4.74it/s] 22it [00:04, 4.74it/s] 23it [00:04, 4.74it/s] 24it [00:04, 4.74it/s] 25it [00:05, 4.74it/s] 26it [00:05, 4.74it/s] 27it [00:05, 4.74it/s] 28it [00:05, 4.75it/s] 28it [00:05, 4.80it/s] Total safe images: 1 out of 1
Prediction
black-forest-labs/flux-depth-devOfficial modelIDg2z2pmm1q9rme0ckcgw9x9q5j0StatusSucceededSourceWebTotal durationCreatedInput
- prompt
- watercolor cartoon of white unicorns with golden horns in a hole
- guidance
- 10
- megapixels
- 1
- num_outputs
- 1
- output_format
- webp
- output_quality
- 80
- num_inference_steps
- 28
{ "prompt": "watercolor cartoon of white unicorns with golden horns in a hole", "guidance": 10, "megapixels": "1", "num_outputs": 1, "control_image": "https://replicate.delivery/pbxt/M2DuylurzM5wQEszTwds2Rz9kJorMkCtc1nT5fQAyyiXKDfG/Screenshot%202024-11-25%20at%2011.39.03%E2%80%AFAM.png", "output_format": "webp", "output_quality": 80, "num_inference_steps": 28 }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run black-forest-labs/flux-depth-dev using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { prompt: "watercolor cartoon of white unicorns with golden horns in a hole", guidance: 10, megapixels: "1", num_outputs: 1, control_image: "https://replicate.delivery/pbxt/M2DuylurzM5wQEszTwds2Rz9kJorMkCtc1nT5fQAyyiXKDfG/Screenshot%202024-11-25%20at%2011.39.03%E2%80%AFAM.png", output_format: "webp", output_quality: 80, num_inference_steps: 28 }; const output = await replicate.run("black-forest-labs/flux-depth-dev", { input }); console.log(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
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run black-forest-labs/flux-depth-dev using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "black-forest-labs/flux-depth-dev", input={ "prompt": "watercolor cartoon of white unicorns with golden horns in a hole", "guidance": 10, "megapixels": "1", "num_outputs": 1, "control_image": "https://replicate.delivery/pbxt/M2DuylurzM5wQEszTwds2Rz9kJorMkCtc1nT5fQAyyiXKDfG/Screenshot%202024-11-25%20at%2011.39.03%E2%80%AFAM.png", "output_format": "webp", "output_quality": 80, "num_inference_steps": 28 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run black-forest-labs/flux-depth-dev 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 $'{ "input": { "prompt": "watercolor cartoon of white unicorns with golden horns in a hole", "guidance": 10, "megapixels": "1", "num_outputs": 1, "control_image": "https://replicate.delivery/pbxt/M2DuylurzM5wQEszTwds2Rz9kJorMkCtc1nT5fQAyyiXKDfG/Screenshot%202024-11-25%20at%2011.39.03%E2%80%AFAM.png", "output_format": "webp", "output_quality": 80, "num_inference_steps": 28 } }' \ https://api.replicate.com/v1/models/black-forest-labs/flux-depth-dev/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-11-25T16:47:31.821304Z", "created_at": "2024-11-25T16:47:25.114000Z", "data_removed": false, "error": null, "id": "g2z2pmm1q9rme0ckcgw9x9q5j0", "input": { "prompt": "watercolor cartoon of white unicorns with golden horns in a hole", "guidance": 10, "megapixels": "1", "num_outputs": 1, "control_image": "https://replicate.delivery/pbxt/M2DuylurzM5wQEszTwds2Rz9kJorMkCtc1nT5fQAyyiXKDfG/Screenshot%202024-11-25%20at%2011.39.03%E2%80%AFAM.png", "output_format": "webp", "output_quality": 80, "num_inference_steps": 28 }, "logs": "running bf16 model, fp8 disabled\nUsing seed: 2670\n0it [00:00, ?it/s]\n1it [00:00, 7.89it/s]\n2it [00:00, 5.51it/s]\n3it [00:00, 5.03it/s]\n4it [00:00, 4.83it/s]\n5it [00:01, 4.67it/s]\n6it [00:01, 4.62it/s]\n7it [00:01, 4.59it/s]\n8it [00:01, 4.58it/s]\n9it [00:01, 4.55it/s]\n10it [00:02, 4.52it/s]\n11it [00:02, 4.52it/s]\n12it [00:02, 4.52it/s]\n13it [00:02, 4.53it/s]\n14it [00:03, 4.51it/s]\n15it [00:03, 4.51it/s]\n16it [00:03, 4.51it/s]\n17it [00:03, 4.52it/s]\n18it [00:03, 4.52it/s]\n19it [00:04, 4.51it/s]\n20it [00:04, 4.50it/s]\n21it [00:04, 4.50it/s]\n22it [00:04, 4.51it/s]\n23it [00:05, 4.51it/s]\n24it [00:05, 4.51it/s]\n25it [00:05, 4.51it/s]\n26it [00:05, 4.51it/s]\n27it [00:05, 4.50it/s]\n28it [00:06, 4.51it/s]\n28it [00:06, 4.58it/s]\nTotal safe images: 1 out of 1", "metrics": { "image_count": 1, "predict_time": 6.700324886, "total_time": 6.707304 }, "output": [ "https://replicate.delivery/xezq/DezgylHmpL07OS6eZeZrSCifUflOjACnpRAS2Ekvl8DeIcJ9E/out-0.webp" ], "started_at": "2024-11-25T16:47:25.120979Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-uqsrvnelkysnyzfkbtp3i6omtpsrddwqhwnk3vof6bnd4mc5be4q", "get": "https://api.replicate.com/v1/predictions/g2z2pmm1q9rme0ckcgw9x9q5j0", "cancel": "https://api.replicate.com/v1/predictions/g2z2pmm1q9rme0ckcgw9x9q5j0/cancel" }, "version": "hidden" }
Generated inrunning bf16 model, fp8 disabled Using seed: 2670 0it [00:00, ?it/s] 1it [00:00, 7.89it/s] 2it [00:00, 5.51it/s] 3it [00:00, 5.03it/s] 4it [00:00, 4.83it/s] 5it [00:01, 4.67it/s] 6it [00:01, 4.62it/s] 7it [00:01, 4.59it/s] 8it [00:01, 4.58it/s] 9it [00:01, 4.55it/s] 10it [00:02, 4.52it/s] 11it [00:02, 4.52it/s] 12it [00:02, 4.52it/s] 13it [00:02, 4.53it/s] 14it [00:03, 4.51it/s] 15it [00:03, 4.51it/s] 16it [00:03, 4.51it/s] 17it [00:03, 4.52it/s] 18it [00:03, 4.52it/s] 19it [00:04, 4.51it/s] 20it [00:04, 4.50it/s] 21it [00:04, 4.50it/s] 22it [00:04, 4.51it/s] 23it [00:05, 4.51it/s] 24it [00:05, 4.51it/s] 25it [00:05, 4.51it/s] 26it [00:05, 4.51it/s] 27it [00:05, 4.50it/s] 28it [00:06, 4.51it/s] 28it [00:06, 4.58it/s] Total safe images: 1 out of 1
Prediction
black-forest-labs/flux-depth-devOfficial modelID4hnepdzm3hrme0ckcgwr1aqkpmStatusSucceededSourceWebTotal durationCreatedInput
- prompt
- kids drawing of green monsters in a hole
- guidance
- 10
- megapixels
- 1
- num_outputs
- 1
- output_format
- webp
- output_quality
- 80
- num_inference_steps
- 28
{ "prompt": "kids drawing of green monsters in a hole", "guidance": 10, "megapixels": "1", "num_outputs": 1, "control_image": "https://replicate.delivery/pbxt/M2E01bwgVS7s594smhArjSVLt03NURs8vmTE01MQR8guBcgm/Screenshot%202024-11-25%20at%2011.39.03%E2%80%AFAM.png", "output_format": "webp", "output_quality": 80, "num_inference_steps": 28 }
Install Replicate’s Node.js client library:npm install replicate
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import and set up the client:import Replicate from "replicate"; const replicate = new Replicate({ auth: process.env.REPLICATE_API_TOKEN, });
Run black-forest-labs/flux-depth-dev using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
const input = { prompt: "kids drawing of green monsters in a hole", guidance: 10, megapixels: "1", num_outputs: 1, control_image: "https://replicate.delivery/pbxt/M2E01bwgVS7s594smhArjSVLt03NURs8vmTE01MQR8guBcgm/Screenshot%202024-11-25%20at%2011.39.03%E2%80%AFAM.png", output_format: "webp", output_quality: 80, num_inference_steps: 28 }; const output = await replicate.run("black-forest-labs/flux-depth-dev", { input }); console.log(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
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Import the client:import replicate
Run black-forest-labs/flux-depth-dev using Replicate’s API. Check out the model's schema for an overview of inputs and outputs.
output = replicate.run( "black-forest-labs/flux-depth-dev", input={ "prompt": "kids drawing of green monsters in a hole", "guidance": 10, "megapixels": "1", "num_outputs": 1, "control_image": "https://replicate.delivery/pbxt/M2E01bwgVS7s594smhArjSVLt03NURs8vmTE01MQR8guBcgm/Screenshot%202024-11-25%20at%2011.39.03%E2%80%AFAM.png", "output_format": "webp", "output_quality": 80, "num_inference_steps": 28 } ) print(output)
To learn more, take a look at the guide on getting started with Python.
Set theREPLICATE_API_TOKEN
environment variable:export REPLICATE_API_TOKEN=<paste-your-token-here>
Find your API token in your account settings.
Run black-forest-labs/flux-depth-dev 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 $'{ "input": { "prompt": "kids drawing of green monsters in a hole", "guidance": 10, "megapixels": "1", "num_outputs": 1, "control_image": "https://replicate.delivery/pbxt/M2E01bwgVS7s594smhArjSVLt03NURs8vmTE01MQR8guBcgm/Screenshot%202024-11-25%20at%2011.39.03%E2%80%AFAM.png", "output_format": "webp", "output_quality": 80, "num_inference_steps": 28 } }' \ https://api.replicate.com/v1/models/black-forest-labs/flux-depth-dev/predictions
To learn more, take a look at Replicate’s HTTP API reference docs.
Output
{ "completed_at": "2024-11-25T16:49:06.670886Z", "created_at": "2024-11-25T16:48:59.932000Z", "data_removed": false, "error": null, "id": "4hnepdzm3hrme0ckcgwr1aqkpm", "input": { "prompt": "kids drawing of green monsters in a hole", "guidance": 10, "megapixels": "1", "num_outputs": 1, "control_image": "https://replicate.delivery/pbxt/M2E01bwgVS7s594smhArjSVLt03NURs8vmTE01MQR8guBcgm/Screenshot%202024-11-25%20at%2011.39.03%E2%80%AFAM.png", "output_format": "webp", "output_quality": 80, "num_inference_steps": 28 }, "logs": "running bf16 model, fp8 disabled\nUsing seed: 9081\n0it [00:00, ?it/s]\n1it [00:00, 7.89it/s]\n2it [00:00, 5.54it/s]\n3it [00:00, 5.06it/s]\n4it [00:00, 4.86it/s]\n5it [00:01, 4.72it/s]\n6it [00:01, 4.65it/s]\n7it [00:01, 4.62it/s]\n8it [00:01, 4.61it/s]\n9it [00:01, 4.59it/s]\n10it [00:02, 4.57it/s]\n11it [00:02, 4.56it/s]\n12it [00:02, 4.56it/s]\n13it [00:02, 4.56it/s]\n14it [00:02, 4.55it/s]\n15it [00:03, 4.53it/s]\n16it [00:03, 4.53it/s]\n17it [00:03, 4.53it/s]\n18it [00:03, 4.54it/s]\n19it [00:04, 4.53it/s]\n20it [00:04, 4.53it/s]\n21it [00:04, 4.52it/s]\n22it [00:04, 4.53it/s]\n23it [00:04, 4.53it/s]\n24it [00:05, 4.53it/s]\n25it [00:05, 4.53it/s]\n26it [00:05, 4.53it/s]\n27it [00:05, 4.53it/s]\n28it [00:06, 4.53it/s]\n28it [00:06, 4.61it/s]\nTotal safe images: 1 out of 1", "metrics": { "image_count": 1, "predict_time": 6.732261781, "total_time": 6.738886 }, "output": [ "https://replicate.delivery/xezq/tqA4QhLAgUJBLFmkptpLaRqyl6Ufei2nGFgRvwbiRu2Cyl0TA/out-0.webp" ], "started_at": "2024-11-25T16:48:59.938624Z", "status": "succeeded", "urls": { "stream": "https://stream.replicate.com/v1/files/bcwr-3tr3iujauyhfeke74e7nadmrlzrx4dbeeez3z2wcmpt5yg6kasyq", "get": "https://api.replicate.com/v1/predictions/4hnepdzm3hrme0ckcgwr1aqkpm", "cancel": "https://api.replicate.com/v1/predictions/4hnepdzm3hrme0ckcgwr1aqkpm/cancel" }, "version": "hidden" }
Generated inrunning bf16 model, fp8 disabled Using seed: 9081 0it [00:00, ?it/s] 1it [00:00, 7.89it/s] 2it [00:00, 5.54it/s] 3it [00:00, 5.06it/s] 4it [00:00, 4.86it/s] 5it [00:01, 4.72it/s] 6it [00:01, 4.65it/s] 7it [00:01, 4.62it/s] 8it [00:01, 4.61it/s] 9it [00:01, 4.59it/s] 10it [00:02, 4.57it/s] 11it [00:02, 4.56it/s] 12it [00:02, 4.56it/s] 13it [00:02, 4.56it/s] 14it [00:02, 4.55it/s] 15it [00:03, 4.53it/s] 16it [00:03, 4.53it/s] 17it [00:03, 4.53it/s] 18it [00:03, 4.54it/s] 19it [00:04, 4.53it/s] 20it [00:04, 4.53it/s] 21it [00:04, 4.52it/s] 22it [00:04, 4.53it/s] 23it [00:04, 4.53it/s] 24it [00:05, 4.53it/s] 25it [00:05, 4.53it/s] 26it [00:05, 4.53it/s] 27it [00:05, 4.53it/s] 28it [00:06, 4.53it/s] 28it [00:06, 4.61it/s] Total safe images: 1 out of 1
Want to make some of these yourself?
Run this model