# Black Forest Labs ## Docs - [Credits & Billing](https://docs.bfl.ml/account_management/credits_billing.md): Add credits, track usage, and handle billing for your organization - [Organizations & Projects](https://docs.bfl.ml/account_management/organizations_projects.md): Organize your teams, manage API keys, and control access with Organizations and Projects. - [Team Management](https://docs.bfl.ml/account_management/team_management.md): Invite team members, assign roles, and manage access to your organizations and projects. - [Get the user's credits](https://docs.bfl.ml/api-reference/get-the-users-credits.md): Get the user's credits - [Edit or create an image with Flux Kontext Max](https://docs.bfl.ml/api-reference/models/edit-or-create-an-image-with-flux-kontext-max.md) - [Edit or create an image with Flux Kontext Pro](https://docs.bfl.ml/api-reference/models/edit-or-create-an-image-with-flux-kontext-pro.md) - [Expand an image by adding pixels on any side.](https://docs.bfl.ml/api-reference/models/expand-an-image-by-adding-pixels-on-any-side.md): Submits an image expansion task that adds the specified number of pixels to any combination of sides (top, bottom, left, right) while maintaining context. - [Generate an image with FLUX 1.1 [pro].](https://docs.bfl.ml/api-reference/models/generate-an-image-with-flux-11-[pro].md): Submits an image generation task with FLUX 1.1 [pro]. - [Generate an image with FLUX 1.1 [pro] finetune with ultra mode.](https://docs.bfl.ml/api-reference/models/generate-an-image-with-flux-11-[pro]-finetune-with-ultra-mode.md): Submits an image generation task with FLUX 1.1 [pro] finetune with ultra mode. - [Generate an image with FLUX 1.1 [pro] with ultra mode and optional raw mode.](https://docs.bfl.ml/api-reference/models/generate-an-image-with-flux-11-[pro]-with-ultra-mode-and-optional-raw-mode.md): Submits an image generation task with FLUX 1.1 [pro] with ultra mode and optional raw mode. - [Generate an image with FLUX 2 MAX](https://docs.bfl.ml/api-reference/models/generate-an-image-with-flux-2-max.md): Submits an image generation task with FLUX 2 MAX. - [Generate an image with FLUX.1 [dev].](https://docs.bfl.ml/api-reference/models/generate-an-image-with-flux1-[dev].md): Submits an image generation task with FLUX.1 [dev]. - [Generate an image with FLUX.1 Fill [pro] finetune using an input image and mask.](https://docs.bfl.ml/api-reference/models/generate-an-image-with-flux1-fill-[pro]-finetune-using-an-input-image-and-mask.md): Submits an image generation task with the FLUX.1 Fill [pro] finetune model using an input image and mask. Mask can be applied to alpha channel or submitted as a separate image. - [Generate an image with FLUX.1 Fill [pro] using an input image and mask.](https://docs.bfl.ml/api-reference/models/generate-an-image-with-flux1-fill-[pro]-using-an-input-image-and-mask.md): Submits an image generation task with the FLUX.1 Fill [pro] model using an input image and mask. Mask can be applied to alpha channel or submitted as a separate image. - [Generate or edit an image with FLUX.2 [FLEX]](https://docs.bfl.ml/api-reference/models/generate-or-edit-an-image-with-flux2-[flex].md): Submits an image generation or editing task with FLUX.2 [FLEX]. - [Generate or edit an image with FLUX.2 [Klein 4B]](https://docs.bfl.ml/api-reference/models/generate-or-edit-an-image-with-flux2-[klein-4b].md): Submits an image generation or editing task with FLUX.2 [Klein 4B]. - [Generate or edit an image with FLUX.2 [Klein 9B KV]](https://docs.bfl.ml/api-reference/models/generate-or-edit-an-image-with-flux2-[klein-9b-kv].md): Submits an image generation or editing task with FLUX.2 [Klein 9B] with KV caching. - [Generate or edit an image with FLUX.2 [Klein 9B]](https://docs.bfl.ml/api-reference/models/generate-or-edit-an-image-with-flux2-[klein-9b].md): Submits an image generation or editing task with FLUX.2 [Klein 9B]. - [Generate or edit an image with FLUX.2 [PRO]](https://docs.bfl.ml/api-reference/models/generate-or-edit-an-image-with-flux2-[pro].md): Submits an image generation or edit task with FLUX.2 [PRO]. - [Generate or edit an image with FLUX.2 [PRO] Preview](https://docs.bfl.ml/api-reference/models/generate-or-edit-an-image-with-flux2-[pro]-preview.md): Submits an image generation or edit task with FLUX.2 [PRO] Preview. - [Report Model Usage](https://docs.bfl.ml/api-reference/models/report-model-usage.md) - [Delete Finetune](https://docs.bfl.ml/api-reference/utility/delete-finetune.md): Delete a finetune_id that was created by the user - [Finetune Details](https://docs.bfl.ml/api-reference/utility/finetune-details.md): Get details about the training parameters and other metadata connected to a specific finetune_id that was created by the user. - [Get Result](https://docs.bfl.ml/api-reference/utility/get-result.md): An endpoint for getting generation task result. - [My Finetunes](https://docs.bfl.ml/api-reference/utility/my-finetunes.md): List all finetune_ids created by the user - [Errors](https://docs.bfl.ml/api_integration/errors.md): Reference for HTTP status codes and response types returned by the FLUX API, including error handling guidance. - [FLUX API Integration Guide](https://docs.bfl.ml/api_integration/integration_guidelines.md): Essential guide for integrating with FLUX API endpoints, including endpoint selection, polling, and content handling. - [MCP Integration with FLUX](https://docs.bfl.ml/api_integration/mcp_integration.md): Use FLUX image generation models in Claude Desktop, Claude.ai, or any MCP-compatible application. - [BFL Agent Skills](https://docs.bfl.ml/api_integration/skills_integration.md): Reusable capabilities that teach AI agents how to work with FLUX models. - [FLUX.2 Image Editing](https://docs.bfl.ml/flux_2/flux2_image_editing.md): Edit images with FLUX.2 using text prompts, multi-reference support, and advanced controls for professional workflows - [FLUX.2 [klein] Training](https://docs.bfl.ml/flux_2/flux2_klein_training.md): Finetune FLUX.2 [klein] models with custom datasets for specialized image generation - [FLUX.2 [klein] Style Training](https://docs.bfl.ml/flux_2/flux2_klein_training_example.md): Technical guide for training style LoRAs on FLUX.2 [klein] models on Graphic Impressions Style - [Overview](https://docs.bfl.ml/flux_2/flux2_overview.md): From sub-second generation to highest quality — FLUX.2 covers the full spectrum with multi-reference editing, precise color control, and photorealistic output - [FLUX.2 Text to Image](https://docs.bfl.ml/flux_2/flux2_text_to_image.md): Generate high-fidelity images with advanced control, exact colors, and flexible aspect ratios. - [FLUX1.1 [pro] Image Generation](https://docs.bfl.ml/flux_models/flux_1_1_pro.md): Generate images with FLUX1.1 [pro], a fast and reliable text-to-image model with strong prompt adherence and competitive pricing. - [FLUX1.1 [pro] Ultra Mode](https://docs.bfl.ml/flux_models/flux_1_1_pro_ultra_raw.md): Generate up to 4MP resolution images with FLUX1.1 [pro] Ultra, featuring Raw mode for candid photography and image-to-image support. - [FLUX.1 Fill [pro]](https://docs.bfl.ml/flux_tools/flux_1_fill.md): Use FLUX.1 Fill for text-driven inpainting and outpainting to edit image regions or extend borders. - [Prompting Guide - FLUX.2 [pro] & [max]](https://docs.bfl.ml/guides/prompting_guide_flux2.md): Master FLUX.2 [pro] & [max] prompting for photorealism, typography, precise colors, and advanced techniques - [Prompting Guide - FLUX.2 [klein]](https://docs.bfl.ml/guides/prompting_guide_flux2_klein.md): Master narrative prompting for FLUX.2 [klein] - scene-first prose, lighting mastery, and multi-reference composition - [Interactive Prompt Builder](https://docs.bfl.ml/guides/prompting_guide_interactive_builder.md): Build and experiment with FLUX prompts using our interactive layer-by-layer tool - [Prompting Guide - Image-to-Image](https://docs.bfl.ml/guides/prompting_guide_kontext_i2i.md): Learn how to write effective prompts for FLUX.1 Kontext image-to-image editing, from basic modifications to multi-step workflows. - [Advanced Techniques](https://docs.bfl.ml/guides/prompting_guide_t2i_advanced.md): Advanced techniques for detailed and creative FLUX prompts - [Prompting Essentials](https://docs.bfl.ml/guides/prompting_guide_t2i_essentials.md): Enhance your FLUX text-to-image prompts with lighting, color, composition, and atmosphere techniques. - [Prompting Fundamentals](https://docs.bfl.ml/guides/prompting_guide_t2i_fundamentals.md): Learn the core framework for writing effective FLUX text-to-image prompts, including structure, style, and context. - [Working Without Negative Prompts](https://docs.bfl.ml/guides/prompting_guide_t2i_negative.md): Learn how to achieve precise results in FLUX without negative prompts - [Prompting Guide - Text to Image - Quick Reference](https://docs.bfl.ml/guides/prompting_summary.md): Essential techniques for effective FLUX text-to-image prompting - [Image Editing](https://docs.bfl.ml/kontext/kontext_image_editing.md): Edit images with FLUX.1 Kontext using simple text prompts for object changes, style transfers, and iterative modifications. - [Introduction](https://docs.bfl.ml/kontext/kontext_overview.md): Overview of FLUX.1 Kontext, a model that combines text-to-image generation with context-aware image editing. - [Image Generation](https://docs.bfl.ml/kontext/kontext_text_to_image.md): Generate images from text prompts using FLUX.1 Kontext, with support for character consistency and advanced editing. - [Image Generation with Text Prompts](https://docs.bfl.ml/quick_start/generating_images.md): Complete guide to FLUX API endpoints for AI image generation. Learn text-to-image creation, API polling, regional endpoints, and code examples. - [Quick Start](https://docs.bfl.ml/quick_start/get_started.md): Create your account, add credits, and generate your first AI image - [Welcome to BFL Documentation!](https://docs.bfl.ml/quick_start/introduction.md): Black Forest Labs builds state-of-the-art generative AI models - [Overview](https://docs.bfl.ml/quick_start/pricing.md): Pricing for FLUX models through our API or Playground. - [Release Notes](https://docs.bfl.ml/release-notes.md): Product updates and announcements across BFL products ## OpenAPI Specs - [openapi](https://api.bfl.ai/openapi.json) ## Optional - [BFL Homepage](https://bfl.ai) - [Help Center](https://help.bfl.ai) Built with [Mintlify](https://mintlify.com).