# Black Forest Labs integration

> FLUX text-to-image generation and image editing API.

- Authentication: apiKey

## Tools (19)

- **Edit Image — FLUX.1 Kontext [max]**: Submit a FLUX.1 Kontext [max] prompt-based image edit (with up to 4 reference images) and poll for the result.
- **Edit Image — FLUX.1 Kontext [pro]**: Submit a FLUX.1 Kontext [pro] prompt-based image edit (with up to 4 reference images) and poll for the result.
- **Erase Object from Image — FLUX Tools**: Submit a FLUX Tools erase task that removes a masked object from an image, and poll for the result.
- **Expand Image — FLUX.1 Expand [pro]**: Submit a FLUX.1 Expand [pro] task that adds pixels on any side of an image, and poll for the result.
- **Generate Image — FLUX 1.1 [pro]**: Submit a FLUX 1.1 [pro] text-to-image generation task and poll for the result.
- **Generate Image — FLUX 1.1 [pro] Ultra**: Submit a FLUX 1.1 [pro] ultra-mode text-to-image task (up to 4MP) and poll for the result.
- **Generate Image — FLUX.1 [dev]**: Submit a FLUX.1 [dev] text-to-image task with step/guidance controls and poll for the result.
- **Generate or Edit Image — FLUX.2 [flex]**: Submit a FLUX.2 [flex] generation or edit task with steps/guidance controls and poll for the result.
- **Generate or Edit Image — FLUX.2 [klein] 4B**: Submit a FLUX.2 [klein] 4B generation or edit task with up to 4 reference images and poll for the result.
- **Generate or Edit Image — FLUX.2 [klein] 9B**: Submit a FLUX.2 [klein] 9B generation or edit task with up to 4 reference images and poll for the result.
- **Generate or Edit Image — FLUX.2 [max]**: Submit a FLUX.2 [max] generation or edit task with up to 8 reference images and poll for the result.
- **Generate or Edit Image — FLUX.2 [pro]**: Submit a FLUX.2 [pro] generation or edit task with up to 8 reference images and poll for the result.
- **Get Credits**: Return the account's current credit balance. Cheapest read to validate an API key.
- **Get Result**: Poll for the result of a previously submitted generation task by id.
- **Inpaint Image — FLUX.1 Fill [pro]**: Submit a FLUX.1 Fill [pro] inpainting task using an input image and mask, and poll for the result.
- **Outpaint Image — FLUX Tools**: Submit a FLUX Tools outpainting task that extends an image to a target canvas size, and poll for the result.
- **Remove Blur from Image — FLUX Tools**: Submit a FLUX Tools deblur task that sharpens a blurry image, and poll for the result.
- **Report Model Usage**: Report generation usage for a licensed model against a licensing agreement.
- **Virtual Try-On — FLUX Tools**: Submit a FLUX Tools virtual try-on task that dresses a person image in a garment image, and poll for the result.

## Related prompts

- [Weekly AI photo refresh for flagged Shopify products](https://www.generalinput.com/prompts/weekly-ai-photo-refresh-for-flagged-shopify-products.md)
- [Auto-generate on-brand FLUX images for your Airtable content calendar](https://www.generalinput.com/prompts/auto-generate-on-brand-flux-images-for-your-airtable-content-calendar.md)
- [Daily hero images from your Google Sheets social calendar](https://www.generalinput.com/prompts/daily-hero-images-from-your-google-sheets-social-calendar.md)
- [Auto-generate AI hero images for Notion blog drafts](https://www.generalinput.com/prompts/auto-generate-ai-hero-images-for-notion-blog-drafts.md)

Connect Black Forest Labs in General Input: https://www.generalinput.com/apps/black-forest-labs