Skip to content

docs(azure-ai): document FLUX.2 Flex image generation and edits - #1549

Merged
mateo-berri merged 1 commit into
mainfrom
litellm_azure_ai_flux2_flex_docs
Sep 18, 2026
Merged

mateo-berri merged 1 commit into
mainfrom
litellm_azure_ai_flux2_flex_docs

Conversation

@mateo-berri

@mateo-berri mateo-berri commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Companion to BerriAI/litellm#39424, which adds azure_ai/FLUX.2-flex (it used to route to the flux-2-pro endpoint) and keeps FLUX.2 tolerant of the OpenAI-only image fields. Merge this after that PR lands

docs/providers/azure_ai_img.md gains a FLUX.2-flex row with its per-megapixel price, a note on the model-specific Black Forest Labs routes and case-insensitive model matching, a FLUX 2 Flex SDK tab with guidance and steps, a proxy config entry, and a FLUX 2 parameters section covering size to width/height, n to num_images, size: "auto", the 400 on a size that is not WxH, and the OpenAI-only fields that are accepted and dropped

docs/providers/azure_ai_img_edit.md gains FLUX 2 Pro and Flex rows with their reference-image limits (8 and 10), a multi-reference SDK example, a proxy config entry, and a parameter note pointing at the generation page

docs/image_edits.md lists Azure AI (FLUX) among the providers that support image edits

Both repo checks pass locally (node scripts/check-writing-style.js and python3 scripts/check-docs.py docs)


Note

Low Risk
Markdown documentation updates only; no changes to application logic, APIs, or security-sensitive code paths.

Overview
Documentation-only companion to the implementation that adds azure_ai/FLUX.2-flex routing and FLUX 2 parameter behavior. No runtime code changes in this PR.

The Azure AI image generation guide now documents FLUX 2 Flex (per-megapixel pricing, Black Forest Labs routes under api_base, case-insensitive model names), adds SDK and proxy examples with guidance/steps, and introduces a FLUX 2 parameters section covering size/width/height, n → num_images, size: "auto", invalid size handling, OpenAI-only fields that are silently dropped, and the one-image-per-request limit for FLUX 2.

The Azure AI image editing guide adds FLUX 2 Pro and Flex (reference-image limits, JSON/base64 multi-reference flow), a multi-reference SDK tab, proxy config for Flex edits, and a cross-link to generation parameters. docs/image_edits.md now lists Azure AI (FLUX) among supported image-edit providers.

Reviewed by Cursor Bugbot for commit c36d6c0. Bugbot is set up for automated code reviews on this repo. Configure here.

@vercel

vercel Bot commented Sep 18, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
litellm Ready Ready Preview Sep 18, 2026 7:33pm UTC

Request Review

@mateo-berri

Copy link
Copy Markdown
Contributor Author

bugbot run

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit c36d6c0. Configure here.

@mateo-berri
mateo-berri merged commit d9e548b into main Sep 18, 2026
5 checks passed
@mateo-berri
mateo-berri deleted the litellm_azure_ai_flux2_flex_docs branch September 18, 2026 21:31

This branch was successfully deployed

1 active deployment
Preview — c36d6c05 Deployed Sep 18, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant