FLUX.1 Canny
FLUX structural control via Canny edge maps. Preserve composition while restyling.
FLUX.1 Canny is image generation AI model from Replicate, priced at €0.000 per 1M input tokens with a unknown context window.
Pricing
API Integration
Use our OpenAI-compatible API to integrate FLUX.1 Canny into your application.
npm install railwailimport railwail from "railwail";
const rw = railwail("YOUR_API_KEY");
const images = await rw.run("flux-1-canny", "A beautiful sunset over Tokyo");
console.log(images[0].url);
// Or use the image() method for full control
const res = await rw.image("flux-1-canny", "A cat in space", {
size: "1024x1024",
n: 1,
});
console.log(res.data[0].url);Deep dive — Black Forest Labs's FLUX.1 Canny
Black Forest Labs was founded in August 2024 in Freiburg, Germany by Robin Rombach, Patrick Esser, Andreas Blattmann and Dominik Lorenz, the core team that previously developed Latent Diffusion Models (LDM) and Stable Diffusion at LMU Munich and Stability AI. The team's earlier work includes the seminal 'High-Resolution Image Synthesis with Latent Diffusion Models' (CVPR 2022) and the Stable Diffusion 1.x/2.x and SDXL releases. The company raised a $31M seed round led by Andreessen Horowitz in 2024 and launched the FLUX.1 model family (pro, dev, schnell) along with specialist Tools models (Fill, Canny, Depth, Redux). Their stated goal is to be the leading open foundation-model lab for generative media in Europe.
Visit Black Forest Labs →FLUX.1 Canny is part of the FLUX.1 Tools family released by Black Forest Labs in late 2024. It extends the base FLUX.1 [dev] / [pro] rectified-flow transformer (a Diffusion Transformer trained with the flow-matching objective rather than classical DDPM) with a structural conditioning branch that ingests a Canny edge map of a reference image. The conditioning is implemented as a ControlNet-like adapter that injects edge features into the DiT blocks via cross-attention residuals, so that the output respects the line structure of the input while the prompt controls semantics, style and lighting. The backbone uses T5-XXL plus CLIP-L as text encoders and operates in a learned latent space at 16x downsampling. Sampling typically uses 28-50 flow-matching steps with the Euler or DPM-Solver sampler. The model was distilled and fine-tuned on edge-conditioned pairs derived from a large licensed image corpus.
- Parameters
- ~12B (FLUX.1 dev backbone) plus ControlNet-style conditioning
- Context
- 512 tokens
- Edge-conditioned image generation that preserves line structure of a reference
- Works at up to 2 MP output resolution
- Strong photorealism inherited from FLUX.1 [dev]/[pro]
- Excellent prompt adherence via T5-XXL text encoder
- Useful for redesigns, restyles and product re-skins on a fixed silhouette
- Compatible with the rest of the FLUX Tools family (Fill, Depth, Redux)
- Best for: e-commerce restyling, architectural restyling, fashion mockups, design iteration.
Fine-tuned from FLUX.1 base weights on pairs of images with extracted Canny edge maps. Exact dataset is not disclosed; Black Forest Labs states licensed and curated data.
License: FLUX.1 [dev] non-commercial license for the dev weights; FLUX.1 [pro] available only via API. Commercial use requires the pro/enterprise tier.
Known limitations
- Requires a precomputed Canny edge map as input
- Quality of output is strongly dependent on the source edges
- Dev weights are non-commercial only
- Slower than schnell-tier base model
Frequently asked questions
Related Models
View all Image GenerationFlux 1.1 Pro Ultra
FLUX 1.1 Pro in ultra mode. Up to 4 megapixel images with raw mode for photorealism.
Flux Dev
Black Forest Labs' development model. Fast, high-quality image generation with LoRA support.
Google Imagen 4
Google's Imagen 4. Text-to-image with strong photorealism and improved typography support.
Google Imagen 4 Ultra
Premium Imagen 4 tier. Highest fidelity, prompt adherence and typography quality from Google.
Start using FLUX.1 Canny today
Get started with free credits. No credit card required. Access FLUX.1 Canny and 100+ other models through a single API.