Official

black-forest-labs / flux-canny-dev

Open-weight edge-guided image generation. Control structure and composition using Canny edge detection.

  • Public
  • 37.3K runs
  • $0.025 per image
  • Commercial use
  • Weights
  • License

Input

control_image
*string
Shift + Return to add a new line

Prompt for generated image

*file

Image used to control the generation. The canny edge detection will be automatically generated.

integer
(minimum: 1, maximum: 4)

Number of outputs to generate

Default: 1

integer
(minimum: 1, maximum: 50)

Number of denoising steps. Recommended range is 28-50, and lower number of steps produce lower quality outputs, faster.

Default: 28

number
(minimum: 0, maximum: 100)

Guidance for generated image

Default: 30

integer

Random seed. Set for reproducible generation

string

Format of the output images

Default: "webp"

integer
(minimum: 0, maximum: 100)

Quality when saving the output images, from 0 to 100. 100 is best quality, 0 is lowest quality. Not relevant for .png outputs

Default: 80

boolean

This model’s safety checker can’t be disabled when running on the website. Learn more about platform safety on Replicate.

Disable safety checker for generated images.

Default: false

string

Approximate number of megapixels for generated image. Use match_input to match the size of the input (with an upper limit of 1440x1440 pixels)

Default: "1"

Output

output
Generated in

Pricing

Official model
Pricing for official models works differently from other models. Instead of being billed by time, you’re billed by input and output, making pricing more predictable.

This model is priced by how many images are generated.

TypePer unitPer $1
Output
$0.025 / image
or
40 images / $1

For example, generating 100 images should cost around $2.50.

Check out our docs for more information about how per-image pricing works on Replicate.

Readme

FLUX.1 Canny [dev]

FLUX.1 Canny [dev] gives developers the same edge-guided generation that powers Canny [pro]. Feed it a sketch or edge map plus a description, and it creates images that follow your structural guidance while adding rich detail and style.

Perfect for building creative tools that need precise control over image composition.

License

If you generate images on Replicate with FLUX.1 models and their fine-tunes, then you can use the images commercially.

If you download the weights off Replicate and generate images on your own computer, you can’t use the images commercially.