FLUX.2 model family overview — from sub-second generation to highest quality, with multi-reference editing, color control, and up to 4MP output.
FLUX.2 spans the full spectrum of image generation—from sub-second inference with [klein] to highest quality with [max]. Generate photorealistic images with precise control over colors, poses, and composition, or edit existing images by referencing up to 10 sources simultaneously.Choose [klein] for real-time, high-volume generation, [pro] for production at scale, [flex] for fine-grained control, or [max] for maximum quality and grounding search.
Want to try first? Test FLUX.2 [max], [pro], and [flex] in our playground. [klein] is available via our API and on Hugging Face.
Combine elements from multiple images while maintaining identity across complex scenes. Create ad variants with consistent faces, product mockups in any context, or fashion editorials where models stay consistent.
Fashion editorial: 8 consistent characters from reference images
Character + pose guidance combined
Input references used for the scene above
Generate photorealistic images with enhanced detail, texture, and lighting. FLUX.2 produces images that merge seamlessly with real photography—ideal for e-commerce and product marketing.
Cinematic lighting
Realistic skin texture and lighting
Hyper-realistic close up
Product photography quality
Generate images grounded in real-time information with FLUX.2 [max]. It searches the web when needed, so you can create visuals of yesterday’s football game, the weather in real-time of any city, or re-create historical events.
Reliable text rendering for infographics, UI mockups, and marketing materials.
Data visualization with clean typography
Ad creative with embedded text
Magazine cover layout
Automotive ad with headline
Specify brand colors via hex codes with precision matching. No approximation—get the exact colors you need.Example: Gradient colors with hex codesPrompt: A vase on a table in living room, the color of the vase is a gradient of color, starting with color #02eb3c and finishing with color #edfa3c. The flowers inside the vase have the color #ff0088
Hex colors applied to vase and flowers
Example: Multiple hex colors for product designPrompt: Luxury eyeshadow palette with 6 pans: top row #B76E79, #E8D5B7, #8B4789; bottom row #CD7F32, #F8F6F0, #800020
Brand color matching
Use structured prompts for precise control over generation. Perfect for production workflows and automation.
Example: Structured Prompting
{ "subject": "Mona Lisa painting by Leonardo da Vinci", "background": "museum gallery wall, ornate gold frame", "lighting": "soft gallery lighting, warm spotlights", "style": "digital art, high contrast", "camera_angle": "eye level view", "composition": "centered, portrait orientation"}
FLUX.2 [klein] delivers sub-second inference with open weights. 4B runs on consumer GPUs (~13GB VRAM). Apache 2.0 for 4B, FLUX NCL for 9B. See model details below.
FLUX.2 [max] includes grounding search: when prompted, it performs web searches to access real-time information to visualize trending products, current events, or the latest styles without manually sourcing reference material.
Sub-second inference. Our fastest models with open weights. Runs on consumer GPUs (~13GB VRAM). From per image via API, or run locally with Apache 2.0 (4B) / FLUX NCL (9B).
[max]
Maximum performance. Highest editing consistency across tasks. Vast world knowledge. Strongest prompt following and faithful style representation.
[pro]
Top performance at affordable price. The high quality, production-grade image editing and generation model.
[flex]
Specialized for typography. Best for text rendering and preserving small details.
Open weights available: [klein] 4B is fully open under Apache 2.0. [klein] 9B is available under the FLUX Non-Commercial License. Download from Hugging Face.
The Base variants are undistilled foundation models with full training signal—ideal for fine-tuning, LoRA training, research, and custom pipelines. Higher output diversity than distilled models.
Preview endpoints are where our latest improvements land first. They reflect our most recent advances in quality and speed.
Endpoint
Description
flux-2-pro-preview
Our latest FLUX.2 [pro] model.
flux-2-pro
A fixed snapshot of FLUX.2 [pro]. This endpoint will not change, making it suitable for workflows that require reproducibility.
flux-2-klein-9b-preview
Our latest FLUX.2 [klein] 9B model with KV caching for improved performance.
flux-2-klein-9b
A fixed snapshot of FLUX.2 [klein] 9B. Choose this when you need reproducibility.
Which endpoint should I use? For most use cases, the preview endpoints (flux-2-pro-preview, flux-2-klein-9b-preview) give you the best results. Choose the non-preview endpoints when you need a pinned model — for example, if your workflow depends on consistent outputs across runs or you have compliance requirements around model stability.
The flux-2-pro and flux-2-klein-9b endpoints are unchanged. If you are already using them, no action is required.
Both preview and non-preview endpoints share the same API contract — the request and response format is identical. Only the underlying model weights differ.
Test FLUX.2 [max], [pro], and [flex] in your browser. No setup required.
Download [klein] Weights
Get [klein] weights from Hugging Face for local inference.
Text-to-Image API
Generate images from text prompts.
Image Editing API
Edit images with multi-reference support.
Prompting Guide
Master prompting techniques — basics, style, JSON, editing, and use cases.
Local Development
Download [dev] weights for local inference.
Was this page helpful?
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Black Forest Labs","colors":{"primary":"#486A58","light":"#F6F1E7","dark":"#13251D"},"logo":{"light":"https://mintcdn.com/bfl/OQ5B17YmedKOM4zs/logo/logo_light.png?fit=max\u0026auto=format\u0026n=OQ5B17YmedKOM4zs\u0026q=85\u0026s=a11f73fac1ef9254cffa5eb412269198","dark":"https://mintcdn.com/bfl/OQ5B17YmedKOM4zs/logo/logo_dark.png?fit=max\u0026auto=format\u0026n=OQ5B17YmedKOM4zs\u0026q=85\u0026s=d933d5452b84db18fc87cd6321e33d08"},"favicon":"https://mintcdn.com/bfl/OQ5B17YmedKOM4zs/favicon.ico?fit=max\u0026auto=format\u0026n=OQ5B17YmedKOM4zs\u0026q=85\u0026s=d0fe6b872ae546a0581d176dfb8726ce","api":{"openapi":["https://api.bfl.ai/openapi.json","https://api.bfl.ai/v1/licenses/docs/openapi.json"]},"background":{"color":{"light":"#f3f1e6","dark":"#07130e"}},"navbar":{"links":[{"href":"https://help.bfl.ai","label":"Help Center"},{"href":"https://status.bfl.ai","label":"API Status"},{"href":"https://bfl.ai/pricing","label":"API Pricing"}],"primary":{"type":"button","label":"Get API Key","href":"https://dashboard.bfl.ai/"}},"footer":{"socials":{"x":"https://x.com/bfl_ai","github":"https://github.com/black-forest-labs","linkedin":"https://www.linkedin.com/company/bflai"},"links":[{"header":"Legal","items":[{"label":"Impressum","href":"https://bfl.ai/legal/imprint"},{"label":"Developer Terms of Service","href":"https://bfl.ai/legal/developer-terms-of-service"},{"label":"Flux API Service Terms","href":"https://bfl.ai/legal/flux-api-service-terms"},{"label":"Terms of Use","href":"https://bfl.ai/legal/terms-of-use"},{"label":"Responsible AI Development Policy","href":"https://bfl.ai/legal/responsible-ai-development-policy"},{"label":"Usage Policy","href":"https://bfl.ai/legal/usage-policy"},{"label":"Intellectual Property Policy","href":"https://bfl.ai/legal/intellectual-property-policy"},{"label":"Privacy Policy","href":"https://bfl.ai/legal/privacy-policy"}]},{"header":"Company","items":[{"label":"Careers","href":"https://bfl.ai/careers"},{"label":"Help Center","href":"https://help.bfl.ai/"},{"label":"Contact","href":"https://bfl.ai/contact"}]}]},"fonts":{"family":"Instrument Sans"},"integrations":{"posthog":{"apiKey":"phc_S5D9NAXVC6BGl2PWlhihIW6IcKFYloe6zvUZW9SU1Bu","apiHost":"https://eu.i.posthog.com"}},"banner":{"content":"FLUX 3 Image Klein, designed for image editing. Fast and customizable with open weights. • [Learn more](/flux_3/flux3_image_klein)","dismissible":true},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"thumbnails":{"background":"https://cdn.sanity.io/images/2gpum2i6/production/7a2a3a2a8d594db99b03a24b413a3f59da2f7e9e-2401x1284.jpg"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"bfl","hasAudioNarration":false,"actualSubdomain":"bfl","customDomains":["docs.bfl.ml","docs.bfl.ai"],"gitSource":{"type":"github","owner":"black-forest-labs","repo":"dokumentation","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae98ed9eb38dc51d1c7c143","collectionId":"955541fa-64e1-4069-8752-c5e67575c366","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae98ed9eb38dc51d1c7c143"},"feedback":{"thumbs":true,"agentFeedback":false},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ae98ed9eb38dc51d1c7c143","clientVersion":"0.0.4054","searchFilterCounts":[{"language":"default","tag":"Documentation","count":137},{"language":"default","tag":"Prompting Guide","count":54},{"language":"default","tag":"API Reference","count":31},{"language":"default","tag":"Use Cases with FLUX","count":21},{"language":"default","tag":"FLUX Tools","count":13},{"language":"default","tag":"Legacy Models","count":13},{"language":"default","tag":"FLUX 3","count":13},{"language":"default","tag":"Editing Use Cases","count":11},{"language":"default","tag":"Text-to-Image Use Cases","count":9},{"language":"default","tag":"Image Generation with FLUX","count":7}],"searchSettings":{"showContentSnippets":true}},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"style.css","href":"/_mintlify/custom/bfl/1e17a8c4da2f1b11/style.css"}],"page":{"pagePath":"flux_2/flux2_overview","slug":"/flux_2/flux2_overview","pageMetadata":{"title":"Overview","sidebarTitle":"Overview","description":"FLUX.2 model family overview — from sub-second generation to highest quality, with multi-reference editing, color control, and up to 4MP output.","href":"/flux_2/flux2_overview"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"FLUX.2 model family overview — from sub-second generation to highest quality, with multi-reference editing, color control, and up to 4MP output.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const Pricing=({endpoint,field=`priceUnit`,variant,effort=`standard`,quantity=1,inputMP=0,outputMP=1,credits=false,fixed=false,suffix=``})=>{const rates={\"/v1/flux-3\":{standard:{t2v720:15,t2v1080:24,t2v1440:28,t2v2160:41,v2v720:21,v2v1080:27,v2v1440:31,v2v2160:45},draft:{t2v720:6,v2v720:12}},\"/v1/flux-3-image\":{tier768:4.1,tier1k:4.8,tier1_5k:7,tier2k:10,tier4k:60.7},\"/v1/flux-3-image-klein\":{tier768:.8,tier1k:.9,tier1_5k:1.1,tier2k:1.4,tier4k:3.6},\"/v1/flux-tools/video-upscale-v1\":{precise:{mpSecondPrice:3.5},creative:{mpSecondPrice:5}},\"/v1/flux-tools/video-edit-v1\":{secondPrice:3},\"/v1/flux-2-klein-4b\":{firstMpPrice:1.4,mpPrice:.1,inputMpPrice:.1},\"/v1/flux-2-klein-9b\":{firstMpPrice:1.5,mpPrice:.2,inputMpPrice:.2},\"/v1/flux-2-pro\":{firstMpPrice:3,mpPrice:1.5,inputMpPrice:1.5},\"/v1/flux-2-max\":{firstMpPrice:7,mpPrice:3,inputMpPrice:3},\"/v1/flux-2-flex\":{firstMpPrice:5,mpPrice:5,inputMpPrice:5},\"/v1/flux-kontext-pro\":{priceUnit:4},\"/v1/flux-kontext-max\":{priceUnit:8},\"/v1/flux-pro-1.1\":{priceUnit:4},\"/v1/flux-pro-1.1-ultra\":{priceUnit:6},\"/v1/flux-pro-1.0-fill\":{priceUnit:5}};const fallback=_jsx(`a`,{href:`https://bfl.ai/pricing`,children:`See current pricing`});const video=field.startsWith(`t2v`)||field.startsWith(`v2v`);const card=rates[endpoint];const rate=video?card?.[effort]:variant?card?.[variant]:card;let value=rate?.[field]??null;if(field===`firstMpPrice`\u0026\u0026outputMP>1){value=value===null||rate?.mpPrice==null?null:value+(Math.ceil(outputMP)-1)*rate.mpPrice}if(inputMP>0\u0026\u0026!video\u0026\u0026field!==`priceUnit`\u0026\u0026!field.startsWith(`tier`)){const input=rate?.inputMpPrice??rate?.mpPrice;value=value===null||input==null?null:value+inputMP*input}if(value===null)return fallback;if(!Number.isFinite(quantity)||quantity\u003c0||!Number.isFinite(inputMP)||inputMP\u003c0||!Number.isFinite(outputMP)||outputMP\u003c=0)return fallback;const amount=value*quantity;const formatted=credits?new Intl.NumberFormat(`en-US`,{maximumFractionDigits:4}).format(amount):new Intl.NumberFormat(`en-US`,{style:`currency`,currency:`USD`,minimumFractionDigits:2,maximumFractionDigits:fixed?2:4}).format(amount/100);return _jsxs(`span`,{children:[formatted,suffix]})};function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{Card,CardGroup,CodeBlock,Columns,Frame,Heading,Info,Note,OptimizedImage,Tab,Table,Tabs,Tip,_MdxComponentBoundary}=_components;if(!Card)_missingMdxReference(`Card`,true);if(!CardGroup)_missingMdxReference(`CardGroup`,true);if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Columns)_missingMdxReference(`Columns`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Info)_missingMdxReference(`Info`,true);if(!Note)_missingMdxReference(`Note`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsxs(_Fragment,{children:[_jsx(`img`,{noZoom:true,src:`https://cdn.sanity.io/images/2gpum2i6/production/61cc0918403fa5644b7778bce4bd4020e8aef7cd-1920x1440.jpg`,style:{borderRadius:`24px`},alt:`Black Forest`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`FLUX.2`}),` spans the full spectrum of image generation—from `,_jsx(_components.strong,{children:`sub-second inference`}),` with [klein] to `,_jsx(_components.strong,{children:`highest quality`}),` with [max]. Generate photorealistic images with precise control over colors, poses, and composition, or edit existing images by referencing up to 10 sources simultaneously.`]}),`\n`,_jsxs(_components.p,{children:[`Choose `,_jsx(_components.strong,{children:`[klein]`}),` for real-time, high-volume generation, `,_jsx(_components.strong,{children:`[pro]`}),` for production at scale, `,_jsx(_components.strong,{children:`[flex]`}),` for fine-grained control, or `,_jsx(_components.strong,{children:`[max]`}),` for maximum quality and grounding search.`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Want to try first?`}),` Test FLUX.2 [max], [pro], and [flex] in our `,_jsx(_components.a,{href:`https://playground.bfl.ai`,children:`playground`}),`. [klein] is available via our `,_jsx(_components.a,{href:`/flux_2/flux2_text_to_image`,children:`API`}),` and on `,_jsx(_components.a,{href:`https://huggingface.co/black-forest-labs`,children:`Hugging Face`}),`.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`what-can-you-do`,children:`What Can You Do?`}),`\n`,_jsxs(Tabs,{children:[_jsxs(Tab,{title:`Multi-Reference`,id:`multi-reference`,children:[_jsx(_components.p,{children:`Combine elements from multiple images while maintaining identity across complex scenes. Create ad variants with consistent faces, product mockups in any context, or fashion editorials where models stay consistent.`}),_jsx(Frame,{caption:`Fashion editorial: 8 consistent characters from reference images`,children:_jsx(OptimizedImage,{src:`https://cdn.sanity.io/images/2gpum2i6/production/51696bb4ac2972e1dda5f3e68f748210f392c4f4-4861x1863.jpg`})}),_jsx(Frame,{caption:`Character + pose guidance combined`,children:_jsx(OptimizedImage,{src:`https://cdn.sanity.io/images/2gpum2i6/production/685f20ad37fedb0dcf7cc52c7b012c35734184e9-3392x1967.jpg`})}),_jsx(Frame,{caption:`Input references used for the scene above`,children:_jsx(OptimizedImage,{src:`https://cdn.sanity.io/images/2gpum2i6/production/18bfb7b7d944ea6081babe2cb26ea3b445c993cf-3453x1863.jpg`})})]}),_jsxs(Tab,{title:`Photorealism \u0026 Detail`,id:`photorealism-%26-detail`,children:[_jsx(_components.p,{children:`Generate photorealistic images with enhanced detail, texture, and lighting. FLUX.2 produces images that merge seamlessly with real photography—ideal for e-commerce and product marketing.`}),_jsxs(Columns,{cols:2,children:[_jsx(Frame,{caption:`Cinematic lighting`,children:_jsx(OptimizedImage,{src:`https://cdn.sanity.io/images/2gpum2i6/production/98f466fde69d875943d47cc6238c401d09780537-1440x1152.png`})}),_jsx(Frame,{caption:`Realistic skin texture and lighting`,children:_jsx(OptimizedImage,{src:`https://cdn.sanity.io/images/2gpum2i6/production/e62db22fa2b77c59d28d02d71133623bf1153cdc-1920x1920.jpg`})})]}),_jsxs(Columns,{cols:2,children:[_jsx(Frame,{caption:`Hyper-realistic close up`,children:_jsx(OptimizedImage,{src:`https://cdn.sanity.io/images/2gpum2i6/production/20370abfd1d798f34419ccd241a068ca1c997ed2-1552x656.png`})}),_jsx(Frame,{caption:`Product photography quality`,children:_jsx(OptimizedImage,{src:`https://cdn.sanity.io/images/2gpum2i6/production/8be740a34ccb79731d3c4f59e67b73ca871b1d06-1552x656.png`})})]})]}),_jsxs(Tab,{title:`Grounding Search`,id:`grounding-search`,children:[_jsx(_components.p,{children:`Generate images grounded in real-time information with FLUX.2 [max]. It searches the web when needed, so you can create visuals of yesterday’s football game, the weather in real-time of any city, or re-create historical events.`}),_jsxs(Columns,{cols:2,children:[_jsx(Frame,{caption:`Score of a previous football game`,children:_jsx(OptimizedImage,{src:`https://cdn.sanity.io/images/2gpum2i6/production/5d9c090250ee74dcd77a9b600bafeb6e53c0f692-1680x1680.jpg`})}),_jsx(Frame,{caption:`The weather in real-time of Freiburg`,children:_jsx(OptimizedImage,{src:`https://cdn.sanity.io/images/2gpum2i6/production/d7b0dd9dfc0236ad763cda9de4b17dea9f455b90-1936x1952.jpg`})}),_jsx(Frame,{caption:`Re-create historical events: 'GC4Q+2V Berlin, Nov. 9th 1989'`,children:_jsx(OptimizedImage,{src:`https://cdn.sanity.io/images/2gpum2i6/production/23784cfd7989338315503484278d66ede410de02-2032x1808.jpg`})}),_jsx(Frame,{caption:`Next Starlink satellite launch`,children:_jsx(OptimizedImage,{src:`https://cdn.sanity.io/images/2gpum2i6/production/13aa8ee65ef34a6a6b43f9417ff0de9dfda7b503-2032x1968.jpg`})})]})]}),_jsxs(Tab,{title:`Typography \u0026 Text`,id:`typography-%26-text`,children:[_jsx(_components.p,{children:`Reliable text rendering for infographics, UI mockups, and marketing materials.`}),_jsxs(Columns,{cols:2,children:[_jsx(Frame,{caption:`Data visualization with clean typography`,children:_jsx(OptimizedImage,{src:`https://cdn.sanity.io/images/2gpum2i6/production/2355f71eb41d1da454ef3c1b820b3d7ce644bd16-1920x1920.jpg`})}),_jsx(Frame,{caption:`Ad creative with embedded text`,children:_jsx(OptimizedImage,{src:`https://cdn.sanity.io/images/2gpum2i6/production/216bd6da356153b3b3c9d3cce90225fab86fdc43-1440x960.jpg`})})]}),_jsxs(Columns,{cols:2,children:[_jsx(Frame,{caption:`Magazine cover layout`,children:_jsx(OptimizedImage,{src:`https://cdn.sanity.io/images/2gpum2i6/production/00ddd4ce8b582891f3b174462dc635dac4e45d46-1456x1920.jpg`})}),_jsx(Frame,{caption:`Automotive ad with headline`,children:_jsx(OptimizedImage,{src:`https://cdn.sanity.io/images/2gpum2i6/production/dd06b0f7b82ba5776e09d6827605733dcb5a7526-1456x1920.jpg`})})]})]}),_jsxs(Tab,{title:`Exact Color Control`,id:`exact-color-control`,children:[_jsx(_components.p,{children:`Specify brand colors via hex codes with precision matching. No approximation—get the exact colors you need.`}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Example`}),`: Gradient colors with hex codes`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Prompt`}),`: `,_jsx(_components.code,{children:`A vase on a table in living room, the color of the vase is a gradient of color, starting with color #02eb3c and finishing with color #edfa3c. The flowers inside the vase have the color #ff0088`})]}),_jsx(Frame,{caption:`Hex colors applied to vase and flowers`,children:_jsx(OptimizedImage,{src:`https://cdn.sanity.io/images/2gpum2i6/production/3a3bf9b588602adf581f7293611b0e59fd50eadb-1552x1520.png`})}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Example`}),`: Multiple hex colors for product design`]}),_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Prompt`}),`: `,_jsx(_components.code,{children:`Luxury eyeshadow palette with 6 pans: top row #B76E79, #E8D5B7, #8B4789; bottom row #CD7F32, #F8F6F0, #800020`})]}),_jsx(Frame,{caption:`Brand color matching`,children:_jsx(OptimizedImage,{src:`https://cdn.sanity.io/images/2gpum2i6/production/0dc0c7638df1869005b1a502211e5f0bf967dfdc-1024x768.jpg`})})]}),_jsxs(Tab,{title:`Structured Prompting`,id:`structured-prompting`,children:[_jsx(_components.p,{children:`Use structured prompts for precise control over generation. Perfect for production workflows and automation.`}),_jsx(CodeBlock,{filename:`Example: Structured Prompting`,numberOfLines:`8`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`8`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"subject\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Mona Lisa painting by Leonardo da Vinci\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"background\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"museum gallery wall, ornate gold frame\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"lighting\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"soft gallery lighting, warm spotlights\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"style\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"digital art, high contrast\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"camera_angle\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"eye level view\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"composition\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"centered, portrait orientation\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsxs(Columns,{cols:2,children:[_jsx(Frame,{caption:`Eye Level View`,children:_jsx(OptimizedImage,{src:`https://cdn.sanity.io/images/2gpum2i6/production/bc12fcb7269c9449f2cbc3b1d1f54c59da4850e3-1456x1424.jpg`})}),_jsx(Frame,{caption:`Worm's Eye View`,children:_jsx(OptimizedImage,{src:`https://cdn.sanity.io/images/2gpum2i6/production/8c3fa60821f9e0f30de348f7827547cb82b564c9-1456x1424.jpg`})})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`which-model-to-choose`,children:`Which Model to Choose?`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{}),_jsx(_components.th,{children:_jsx(_components.strong,{children:`[klein]`})}),_jsx(_components.th,{children:_jsx(_components.strong,{children:`[max]`})}),_jsx(_components.th,{children:_jsx(_components.strong,{children:`[pro]`})}),_jsx(_components.th,{children:_jsx(_components.strong,{children:`[flex]`})}),_jsx(_components.th,{children:_jsx(_components.strong,{children:`[dev]`})})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Best for`})}),_jsx(_components.td,{children:`Real-time, high-volume`}),_jsx(_components.td,{children:`Highest quality, final assets`}),_jsx(_components.td,{children:`Production at scale`}),_jsx(_components.td,{children:`Quality with control`}),_jsx(_components.td,{children:`Local development`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Multi-reference`})}),_jsx(_components.td,{children:`Up to 4`}),_jsx(_components.td,{children:`Up to 8 (API), 10 (playground)`}),_jsx(_components.td,{children:`Up to 8 (API), 10 (playground)`}),_jsx(_components.td,{children:`Up to 8 (API), 10 (playground)`}),_jsx(_components.td,{children:`Recommended max 6`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Controls`})}),_jsx(_components.td,{children:`Standard`}),_jsx(_components.td,{children:`Standard`}),_jsx(_components.td,{children:`Standard`}),_jsx(_components.td,{children:`Adjustable steps \u0026 guidance`}),_jsx(_components.td,{children:`Full customization`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Grounding search`})}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`Yes`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`No`}),_jsx(_components.td,{children:`No`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Pricing`})}),_jsxs(_components.td,{children:[`from `,_jsx(_MdxComponentBoundary,{name:`Pricing`,children:_jsx(Pricing,{endpoint:`/v1/flux-2-klein-4b`,field:`firstMpPrice`})}),` / image`]}),_jsxs(_components.td,{children:[`from `,_jsx(_MdxComponentBoundary,{name:`Pricing`,children:_jsx(Pricing,{endpoint:`/v1/flux-2-max`,field:`firstMpPrice`})}),` / image`]}),_jsxs(_components.td,{children:[`from `,_jsx(_MdxComponentBoundary,{name:`Pricing`,children:_jsx(Pricing,{endpoint:`/v1/flux-2-pro`,field:`firstMpPrice`})}),` / image`]}),_jsxs(_components.td,{children:[`from `,_jsx(_MdxComponentBoundary,{name:`Pricing`,children:_jsx(Pricing,{endpoint:`/v1/flux-2-flex`,field:`firstMpPrice`})}),` / image`]}),_jsx(_components.td,{children:`Free (non-commercial)`})]})]})]}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`FLUX.2 [klein]`}),` delivers sub-second inference with open weights. 4B runs on consumer GPUs (~13GB VRAM). Apache 2.0 for 4B, FLUX NCL for 9B. See `,_jsx(_components.a,{href:`#flux2-klein-models`,children:`model details below`}),`.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`FLUX.2 [max]`}),` includes `,_jsx(_components.strong,{children:`grounding search`}),`: when prompted, it performs web searches to access real-time information to visualize trending products, current events, or the latest styles without manually sourcing reference material.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`compare-flux-2-models`,children:`Compare FLUX.2 Models`}),`\n`,_jsx(Heading,{level:`3`,id:`at-a-glance`,children:`At a Glance`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`[klein]`,icon:`rocket`,children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Sub-second inference.`}),` Our fastest models with open weights. Runs on consumer GPUs (~13GB VRAM). From `,_jsx(_MdxComponentBoundary,{name:`Pricing`,children:_jsx(Pricing,{endpoint:`/v1/flux-2-klein-4b`,field:`firstMpPrice`})}),` per image via API, or run locally with Apache 2.0 (4B) / FLUX NCL (9B).`]})}),_jsx(Card,{title:`[max]`,icon:`crown`,children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Maximum performance.`}),` Highest editing consistency across tasks. Vast world knowledge. Strongest prompt following and faithful style representation.`]})}),_jsx(Card,{title:`[pro]`,icon:`bolt`,children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Top performance at affordable price.`}),` The high quality, production-grade image editing and generation model.`]})}),_jsx(Card,{title:`[flex]`,icon:`sliders`,children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Specialized for typography.`}),` Best for text rendering and preserving small details.`]})})]}),`\n`,_jsx(Heading,{level:`2`,id:`flux-2-klein-models`,children:`FLUX.2 [klein] Models`}),`\n`,_jsx(Frame,{caption:`Diverse Outputs`,children:_jsx(OptimizedImage,{src:`https://cdn.sanity.io/images/2gpum2i6/production/900de0722995119df9f27d799bdfed194d2112ac-2127x1400.jpg`,alt:`FLUX.2 [klein] diverse output examples`})}),`\n`,_jsx(Info,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Open weights available`}),`: [klein] 4B is fully open under `,_jsx(_components.strong,{children:`Apache 2.0`}),`. [klein] 9B is available under the `,_jsx(_components.strong,{children:`FLUX Non-Commercial License`}),`. Download from `,_jsx(_components.a,{href:`https://huggingface.co/black-forest-labs`,children:`Hugging Face`}),`.`]})}),`\n`,_jsx(Heading,{level:`3`,id:`api-models`,children:`API Models`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{}),_jsx(_components.th,{children:_jsx(_components.strong,{children:`[klein] 4B`})}),_jsx(_components.th,{children:_jsx(_components.strong,{children:`[klein] 9B`})})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Best for`})}),_jsx(_components.td,{children:`High volume, local deployment`}),_jsx(_components.td,{children:`Balanced quality and speed`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Inference steps`})}),_jsx(_components.td,{children:`4 (step-distilled)`}),_jsx(_components.td,{children:`4 (step-distilled)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Speed`})}),_jsx(_components.td,{children:`Sub-second`}),_jsx(_components.td,{children:`Sub-second`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`API Pricing`})}),_jsxs(_components.td,{children:[_jsx(_MdxComponentBoundary,{name:`Pricing`,children:_jsx(Pricing,{endpoint:`/v1/flux-2-klein-4b`,field:`firstMpPrice`})}),` first MP + `,_jsx(_MdxComponentBoundary,{name:`Pricing`,children:_jsx(Pricing,{endpoint:`/v1/flux-2-klein-4b`,field:`mpPrice`})}),` per additional MP`]}),_jsxs(_components.td,{children:[_jsx(_MdxComponentBoundary,{name:`Pricing`,children:_jsx(Pricing,{endpoint:`/v1/flux-2-klein-9b`,field:`firstMpPrice`})}),` first MP + `,_jsx(_MdxComponentBoundary,{name:`Pricing`,children:_jsx(Pricing,{endpoint:`/v1/flux-2-klein-9b`,field:`mpPrice`})}),` per additional MP`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`License`})}),_jsx(_components.td,{children:`Apache 2.0`}),_jsx(_components.td,{children:`FLUX Non-Commercial License`})]})]})]}),`\n`,_jsx(Heading,{level:`3`,id:`open-weights-community`,children:`Open Weights (Community)`}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.strong,{children:`Base`}),` variants are undistilled foundation models with full training signal—ideal for fine-tuning, LoRA training, research, and custom pipelines. Higher output diversity than distilled models.`]}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{}),_jsx(_components.th,{children:_jsx(_components.strong,{children:`[klein] Base 4B`})}),_jsx(_components.th,{children:_jsx(_components.strong,{children:`[klein] Base 9B`})})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Best for`})}),_jsx(_components.td,{children:`Fine-tuning, research, custom pipelines`}),_jsx(_components.td,{children:`Maximum quality, research`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Output diversity`})}),_jsx(_components.td,{children:`High`}),_jsx(_components.td,{children:`Highest`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Step-distilled`})}),_jsx(_components.td,{children:`No (full capacity)`}),_jsx(_components.td,{children:`No (full capacity)`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`License`})}),_jsx(_components.td,{children:`Apache 2.0`}),_jsx(_components.td,{children:`FLUX Non-Commercial License`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Availability`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`https://huggingface.co/black-forest-labs`,children:`Hugging Face`})}),_jsx(_components.td,{children:_jsx(_components.a,{href:`https://huggingface.co/black-forest-labs`,children:`Hugging Face`})})]})]})]}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`Base models are available as open weights for local development and research. They are not offered on the public API.`})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`FLUX.2 [klein] does not include prompt upsampling. Write detailed, descriptive prompts for best results. See our `,_jsx(_components.a,{href:`/guides/prompting_summary`,children:`Prompting Guide`}),` for techniques.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`preview-endpoints`,children:`Preview Endpoints`}),`\n`,_jsx(_components.p,{children:`Preview endpoints are where our latest improvements land first. They reflect our most recent advances in quality and speed.`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Endpoint`}),_jsx(_components.th,{children:`Description`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`flux-2-pro-preview`})}),_jsx(_components.td,{children:`Our latest FLUX.2 [pro] model.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`flux-2-pro`})}),_jsx(_components.td,{children:`A fixed snapshot of FLUX.2 [pro]. This endpoint will not change, making it suitable for workflows that require reproducibility.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`flux-2-klein-9b-preview`})}),_jsx(_components.td,{children:`Our latest FLUX.2 [klein] 9B model with KV caching for improved performance.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`flux-2-klein-9b`})}),_jsx(_components.td,{children:`A fixed snapshot of FLUX.2 [klein] 9B. Choose this when you need reproducibility.`})]})]})]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Which endpoint should I use?`}),` For most use cases, the preview endpoints (`,_jsx(_components.code,{children:`flux-2-pro-preview`}),`, `,_jsx(_components.code,{children:`flux-2-klein-9b-preview`}),`) give you the best results. Choose the non-preview endpoints when you need a pinned model — for example, if your workflow depends on consistent outputs across runs or you have compliance requirements around model stability.`]})}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`flux-2-pro`}),` and `,_jsx(_components.code,{children:`flux-2-klein-9b`}),` endpoints are unchanged. If you are already using them, no action is required.`]})}),`\n`,_jsx(_components.p,{children:`Both preview and non-preview endpoints share the same API contract — the request and response format is identical. Only the underlying model weights differ.`}),`\n`,_jsx(Heading,{level:`2`,id:`getting-started`,children:`Getting Started`}),`\n`,_jsxs(CardGroup,{cols:2,children:[_jsx(Card,{title:`Try in Playground`,icon:`play`,href:`https://playground.bfl.ai`,children:_jsx(_components.p,{children:`Test FLUX.2 [max], [pro], and [flex] in your browser. No setup required.`})}),_jsx(Card,{title:`Download [klein] Weights`,icon:`download`,href:`https://huggingface.co/black-forest-labs`,children:_jsx(_components.p,{children:`Get [klein] weights from Hugging Face for local inference.`})}),_jsx(Card,{title:`Text-to-Image API`,icon:`wand-magic-sparkles`,href:`/flux_2/flux2_text_to_image`,children:_jsx(_components.p,{children:`Generate images from text prompts.`})}),_jsx(Card,{title:`Image Editing API`,icon:`pen-to-square`,href:`/flux_2/flux2_image_editing`,children:_jsx(_components.p,{children:`Edit images with multi-reference support.`})}),_jsx(Card,{title:`Prompting Guide`,icon:`graduation-cap`,href:`/guides/prompting_summary`,children:_jsx(_components.p,{children:`Master prompting techniques — basics, style, JSON, editing, and use cases.`})}),_jsx(Card,{title:`Local Development`,icon:`download`,href:`https://huggingface.co/black-forest-labs/FLUX.2-dev`,children:_jsx(_components.p,{children:`Download [dev] weights for local inference.`})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{Pricing,default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Overview","sidebarTitle":"Overview","description":"FLUX.2 model family overview — from sub-second generation to highest quality, with multi-reference editing, color control, and up to 4MP output.","href":"/flux_2/flux2_overview"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[143,2286,")=>null;function _cr"]]},"mdxExtracts":{"tableOfContents":[{"title":"What Can You Do?","slug":"what-can-you-do","depth":2,"children":[]},{"title":"Which Model to Choose?","slug":"which-model-to-choose","depth":2,"children":[]},{"title":"Compare FLUX.2 Models","slug":"compare-flux-2-models","depth":2,"children":[{"title":"At a Glance","slug":"at-a-glance","depth":3,"children":[]}]},{"title":"FLUX.2 [klein] Models","slug":"flux-2-klein-models","depth":2,"children":[{"title":"API Models","slug":"api-models","depth":3,"children":[]},{"title":"Open Weights (Community)","slug":"open-weights-community","depth":3,"children":[]}]},{"title":"Preview Endpoints","slug":"preview-endpoints","depth":2,"children":[]},{"title":"Getting Started","slug":"getting-started","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/bfl/589dc04dc07c9b1b/analytics.js"],"subdomain":"bfl","siteName":"Black Forest Labs","title":"Overview - Black Forest Labs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-02T22:48:29.916Z","originalFileLocation":"flux_2/flux2_overview.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"FLUX.2 model family overview — from sub-second generation to highest quality, with multi-reference editing, color control, and up to 4MP output.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Black Forest Labs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/bfl/qSW9OJZxslZOxxB1/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/bfl/qSW9OJZxslZOxxB1/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/bfl/qSW9OJZxslZOxxB1/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/bfl/qSW9OJZxslZOxxB1/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/bfl/qSW9OJZxslZOxxB1/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/bfl/qSW9OJZxslZOxxB1/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/bfl/qSW9OJZxslZOxxB1/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/bfl/qSW9OJZxslZOxxB1/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/bfl/qSW9OJZxslZOxxB1/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Overview - Black Forest Labs\">\u003cmeta data-mint-head property=\"og:description\" content=\"FLUX.2 model family overview — from sub-second generation to highest quality, with multi-reference editing, color control, and up to 4MP output.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Black Forest Labs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.bfl.ml/flux_2/flux2_overview\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://bfl.mintlify.app/_mintlify/api/og/v2?division=FLUX.2\u0026amp;title=Overview\u0026amp;description=FLUX.2+model+family+overview+%E2%80%94+from+sub-second+generation+to+highest+quality%2C+with+multi-reference+editing%2C+color+control%2C+and+up+to+4MP+output.\u0026amp;theme=a70df1157b5b08d96e98c16c\u0026amp;signature=da12ab4750ad794825703638d31f1a7713b0ef2a8c81088925dce4391c3a15c3\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Overview - Black Forest Labs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"FLUX.2 model family overview — from sub-second generation to highest quality, with multi-reference editing, color control, and up to 4MP output.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://bfl.mintlify.app/_mintlify/api/og/v2?division=FLUX.2\u0026amp;title=Overview\u0026amp;description=FLUX.2+model+family+overview+%E2%80%94+from+sub-second+generation+to+highest+quality%2C+with+multi-reference+editing%2C+color+control%2C+and+up+to+4MP+output.\u0026amp;theme=a70df1157b5b08d96e98c16c\u0026amp;signature=da12ab4750ad794825703638d31f1a7713b0ef2a8c81088925dce4391c3a15c3\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/bfl/qSW9OJZxslZOxxB1/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Black Forest Labs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#486A58\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.bfl.ml/flux_2/flux2_overview\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/flux_2/flux2_overview.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.bfl.ml/#organization\",\"name\":\"Black Forest Labs\",\"url\":\"https://docs.bfl.ml\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/bfl/OQ5B17YmedKOM4zs/logo/logo_light.png?fit=max\u0026auto=format\u0026n=OQ5B17YmedKOM4zs\u0026q=85\u0026s=a11f73fac1ef9254cffa5eb412269198\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.bfl.ml#website\",\"name\":\"Black Forest Labs\",\"url\":\"https://docs.bfl.ml\",\"publisher\":{\"@id\":\"https://docs.bfl.ml/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.bfl.ml/flux_2/flux2_overview#webpage\",\"url\":\"https://docs.bfl.ml/flux_2/flux2_overview\",\"name\":\"Overview\",\"description\":\"FLUX.2 model family overview — from sub-second generation to highest quality, with multi-reference editing, color control, and up to 4MP output.\",\"dateModified\":\"2026-11-02T22:48:29.916Z\",\"isPartOf\":{\"@id\":\"https://docs.bfl.ml#website\"},\"breadcrumb\":{\"@id\":\"https://docs.bfl.ml/flux_2/flux2_overview#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.bfl.ml/flux_2/flux2_overview#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Black Forest Labs\",\"item\":\"https://docs.bfl.ml\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Overview\",\"item\":\"https://docs.bfl.ml/flux_2/flux2_overview\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.bfl.ml/flux_2/flux2_overview#article\",\"headline\":\"Overview\",\"name\":\"Overview\",\"description\":\"FLUX.2 model family overview — from sub-second generation to highest quality, with multi-reference editing, color control, and up to 4MP output.\",\"url\":\"https://docs.bfl.ml/flux_2/flux2_overview\",\"mainEntityOfPage\":{\"@id\":\"https://docs.bfl.ml/flux_2/flux2_overview#webpage\"},\"dateModified\":\"2026-11-02T22:48:29.916Z\",\"publisher\":{\"@id\":\"https://docs.bfl.ml/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.bfl.ml#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Black Forest Labs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Black Forest Labs","nav":{"global":null,"anchors":[{"anchor":"Documentation","icon":"book-open-cover","tabs":[{"tab":"Documentation","groups":[{"group":"Get Started","pages":[{"title":"The frontier of visual intelligence","sidebarTitle":"Overview","mode":"wide","href":"/quick_start/introduction"},{"title":"Quick Start","sidebarTitle":"Quick Start","mode":"wide","href":"/quick_start/get_started"},{"title":"Overview","sidebarTitle":"API Pricing","href":"/quick_start/pricing"}]},{"group":"Account Management","pages":[{"title":"Organizations \u0026 Projects","sidebarTitle":"Organizations \u0026 Projects","href":"/account_management/organizations_projects"},{"title":"Team Management","sidebarTitle":"Team Management","href":"/account_management/team_management"},{"title":"Credits \u0026 Billing","sidebarTitle":"Credits \u0026 Billing","href":"/account_management/credits_billing"}]},{"group":"FLUX 3","pages":[{"group":"Video","pages":[{"title":"FLUX 3 Video","sidebarTitle":"Overview","mode":"wide","href":"/flux_3/flux3_overview"},{"title":"Video","sidebarTitle":"Generate video","mode":"wide","href":"/flux_3/flux3_video"}]},{"group":"Image","pages":[{"title":"FLUX 3 Image","sidebarTitle":"Overview","href":"/flux_3/flux3_image_overview"},{"title":"FLUX 3 Text to Image","sidebarTitle":"FLUX 3 Text to Image","href":"/flux_3/flux3_image_generate"},{"title":"FLUX 3 Image Editing","sidebarTitle":"FLUX 3 Image Editing","href":"/flux_3/flux3_image_layout"},{"title":"Bounding boxes with FLUX 3 Image","sidebarTitle":"Bounding boxes","href":"/flux_3/flux3_image_bounding_boxes"},{"title":"FLUX 3 Image Klein","sidebarTitle":"FLUX 3 Image Klein","href":"/flux_3/flux3_image_klein"}]},{"group":"Action","pages":[{"title":"FLUX 3 Action","sidebarTitle":"Overview","href":"/flux_3/flux3_action_overview"},{"title":"Run FLUX 3 Action","sidebarTitle":"Run the model","href":"/flux_3/flux3_action_inference"},{"title":"Fine-tune FLUX 3 Action","sidebarTitle":"Fine-tuning","href":"/flux_3/flux3_action_finetuning"},{"title":"SO-101 with LeRobot","sidebarTitle":"SO-101 with LeRobot","href":"/flux_3/flux3_action_so101"},{"title":"Example: FLUX 3 Action plays video games","sidebarTitle":"Example: a video game","href":"/flux_3/flux3_action_games"},{"title":"Example: teach FLUX 3 Action to fly a drone","sidebarTitle":"Example: a drone","description":"Fine-tune FLUX 3 Action to follow drone flight instructions in Isaac Sim, then evaluate it on new layouts and reworded instructions.","href":"/flux_3/flux3_action_drone"}]}]},{"group":"FLUX.2","pages":[{"title":"Overview","sidebarTitle":"Overview","href":"/flux_2/flux2_overview"},{"title":"FLUX.2 Image Editing","sidebarTitle":"FLUX.2 Image Editing","description":"Edit images with FLUX.2 using text prompts and multi-reference support for up to 10 images, with advanced controls and up to 4MP output.","href":"/flux_2/flux2_image_editing"},{"title":"FLUX.2 Text to Image","sidebarTitle":"FLUX.2 Text to Image","href":"/flux_2/flux2_text_to_image"}]},{"group":"FLUX Tools","pages":[{"title":"FLUX Video Edit","sidebarTitle":"FLUX Video Edit","href":"/flux_tools/flux_video_edit"},{"title":"FLUX Video Upscale","sidebarTitle":"FLUX Video Upscale","href":"/flux_tools/flux_video_upscale"},{"title":"FLUX Outpainting","sidebarTitle":"FLUX Outpainting","href":"/flux_tools/flux_outpainting"},{"title":"FLUX Erase","sidebarTitle":"FLUX Erase","href":"/flux_tools/flux_erase"},{"title":"FLUX Deblur","sidebarTitle":"FLUX Deblur","href":"/flux_tools/flux_deblur"},{"title":"FLUX Virtual Try-On (VTO)","sidebarTitle":"FLUX Virtual Try-On","href":"/flux_tools/flux_vto"}]},{"group":"API Integration","pages":[{"title":"FLUX API Integration Guide","sidebarTitle":"Integration Guide","href":"/api_integration/integration_guidelines"},{"title":"FLUX MCP server","sidebarTitle":"MCP \u0026 Agent Skills","mode":"wide","href":"/api_integration/mcp_integration"},{"title":"Errors","sidebarTitle":"Errors","href":"/api_integration/errors"}]},{"group":"Training","pages":[{"title":"Train your first LoRA on FLUX 3 Image Klein","sidebarTitle":"FLUX 3 Image Klein LoRA Guide","href":"/flux_3/flux3_image_klein_lora_guide"},{"title":"FLUX.2 [klein] Training","sidebarTitle":"FLUX.2 [klein] Training","href":"/flux_2/flux2_klein_training"},{"title":"FLUX.2 [klein] Style Training","sidebarTitle":"FLUX.2 [klein] Style Training","href":"/flux_2/flux2_klein_training_example"}]},{"group":"Legacy Models","pages":[{"group":"FLUX.1 Kontext","pages":[{"title":"Introduction","sidebarTitle":"Introduction","href":"/kontext/kontext_overview"},{"title":"Image Generation","sidebarTitle":"Image Generation","href":"/kontext/kontext_text_to_image"},{"title":"Image Editing","href":"/kontext/kontext_image_editing"}]},{"group":"FLUX1.1 [pro] Models","pages":[{"title":"FLUX1.1 [pro] Image Generation","sidebarTitle":"FLUX1.1 [pro]","href":"/flux_models/flux_1_1_pro"},{"title":"FLUX1.1 [pro] Ultra Mode","sidebarTitle":"FLUX1.1 [pro] Ultra / Raw","href":"/flux_models/flux_1_1_pro_ultra_raw"}]},{"group":"FLUX.1 Tools","pages":[{"title":"FLUX.1 Fill [pro]","href":"/flux_1_fill"}]}]}]},{"tab":"Cookbook","hidden":true,"searchable":true,"pages":[{"title":"Cookbook","href":"/cookbook/overview"}]},{"tab":"Prompting Guide","pages":[{"title":"Prompting Guide","href":"/guides/prompting_video_overview"}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/utility/get-result"}]},{"tab":"Release Notes","pages":[{"title":"Release Notes","href":"/release-notes"}]}]},{"anchor":"Prompting Guide","icon":"graduation-cap","pages":[{"title":"Prompting Guide","href":"/guides/prompting_video_overview"}]},{"anchor":"BFL Homepage","icon":"house","href":"https://bfl.ai"},{"anchor":"Help Center","icon":"question","href":"https://help.bfl.ai"}]},"basePath":"","title":"Overview - Black Forest Labs","buildId":"dpl_345ReqzYaAjzS9QpeJemsKdb7KDj","deploymentId":"dpl_345ReqzYaAjzS9QpeJemsKdb7KDj","dynamics":["10e4515597","07c022d89b","a74be98ba7"],"chunks":["BannerMarkdown-DIeMibn4.js","dist-DJnKvr0g.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","clsx-B2v50t8t.js","html-void-elements-mCSPHezU.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","Frame-PS-3COT9.js","DynamicMarkdown-BcnBltEQ.js","zoom-image-lightbox-B4-wUcHm.js","lightbox-handle-r17bVUz3.js"]}