Flux Canny Dev

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

Playground

Try the model in real time below.

Control_Image
flux-canny-dev-ip.jpg selected

Files up to 2MB

output image


Examples

Check out what others have created with Flux Canny Dev
Example preview

Mystical fairy in real, magic, 4k picture, high quality

seed: 632558

API

If you're looking for an API, you can choose from your desired programming language.

POST
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 import requests api_key = "YOUR_API_KEY" url = "https://api.segmind.com/v1/flux-canny-dev" # Prepare data and files data = {} files = {} data['seed'] = 632558 data['prompt'] = "Mystical fairy in real, magic, 4k picture, high quality" data['guidance'] = 30 data['megapixels'] = "1" data['num_outputs'] = 1 # For parameter "control_image", you can send a raw file or a URI: # files['control_image'] = open('IMAGE_PATH', 'rb') # To send a file # data['control_image'] = 'IMAGE_URI' # To send a URI data['output_format'] = "jpg" data['output_quality'] = 80 data['num_inference_steps'] = 28 data['disable_safety_checker'] = False headers = {'x-api-key': api_key} response = requests.post(url, data=data, files=files, headers=headers) print(response.content) # The response is the generated image
RESPONSE
image/jpeg
HTTP Response Codes
200 - OKImage Generated
401 - UnauthorizedUser authentication failed
404 - Not FoundThe requested URL does not exist
405 - Method Not AllowedThe requested HTTP method is not allowed
406 - Not AcceptableNot enough credits
500 - Server ErrorServer had some issue with processing

Attributes


seedint ( default: 632558 )

Random seed. Set for reproducible generation


promptstr *

Prompt for generated image


guidancefloat ( default: 30 )

Guidance for generated image

min : 0,

max : 100


megapixelsenum:str ( default: 1 )

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

Allowed values:


num_outputsint ( default: 1 )

Number of outputs to generate

min : 1,

max : 4


control_imagestr *

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


output_formatenum:str ( default: jpg )

Format of the output images

Allowed values:


output_qualityint ( default: 80 )

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

min : 0,

max : 100


num_inference_stepsint ( default: 28 )

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

min : 1,

max : 50


disable_safety_checkerbool ( default: 1 )

Disable safety checker for generated images.

To keep track of your credit usage, you can inspect the response headers of each API call. The x-remaining-credits property will indicate the number of remaining credits in your account. Ensure you monitor this value to avoid any disruptions in your API usage.


Pricing

Serverless Pricing

Buy credits that can be used anywhere on Segmind

$ 0.03125 /per generation
FEATURES

PixelFlow allows you to use all these features

Unlock the full potential of generative AI with Segmind. Create stunning visuals and innovative designs with total creative control. Take advantage of powerful development tools to automate processes and models, elevating your creative workflow.

Segmented Creation Workflow

Gain greater control by dividing the creative process into distinct steps, refining each phase.

Customized Output

Customize at various stages, from initial generation to final adjustments, ensuring tailored creative outputs.

Layering Different Models

Integrate and utilize multiple models simultaneously, producing complex and polished creative results.

Workflow APIs

Deploy Pixelflows as APIs quickly, without server setup, ensuring scalability and efficiency.

Flux Canny Dev

Flux Canny Dev is an advanced AI model developed by Black Forest Labs, designed to enhance image generation by integrating edge detection techniques. This model leverages the Canny edge detection algorithm to identify and emphasize the structural outlines within images, resulting in outputs with enhanced clarity and definition.

Key Features of Flux Canny Dev

  • Edge Detection Integration: Utilizes the Canny algorithm to detect edges, ensuring that generated images maintain sharp and well-defined structures.

  • Enhanced Image Clarity: By focusing on prominent edges, the model produces images with improved clarity and detail, making them more visually appealing.

  • Versatile Application: Suitable for various creative projects, including digital art, graphic design, and content creation, where precise image details are crucial.

Benefits of Using Flux Canny Dev

  • Improved Visual Quality: The integration of edge detection leads to images with better-defined features, enhancing the overall visual quality.

  • Consistency in Output: Ensures that generated images consistently exhibit clear and sharp edges, maintaining a high standard across different projects.

  • Efficiency in Workflow: Streamlines the image generation process by automatically emphasizing structural details, reducing the need for manual adjustments.

Applications of Flux Canny Dev

  • Digital Art Creation: Assists artists in producing detailed and sharp images, enhancing the artistic quality of digital artworks.

  • Graphic Design: Enables designers to create visuals with clear outlines, improving the effectiveness of design elements.

  • Content Generation: Facilitates the creation of high-quality images for various content needs, including marketing materials and social media posts.

By incorporating the Canny edge detection algorithm, Flux Canny Dev offers a powerful tool for professionals seeking to generate images with enhanced structural clarity and detail.

F.A.Q.

Frequently Asked Questions

Take creative control today and thrive.

Start building with a free account or consult an expert for your Pro or Enterprise needs. Segmind's tools empower you to transform your creative visions into reality.

Pixelflow Banner