impulse

FLUX 2 Flex

Image
API id FLUX.2-flex
Azure AI Foundry retires it on 20 Jan 2027 (in 63 days). 2 hosts keep serving it.
Input / 1M
-
not listed
Output / 1M
-
not listed
Context window
32K
tokens
Max output
-
tokens per reply
Hosts
3
3 listings
Released
-
date not published

Where to run it

3 hosts serve FLUX 2 Flex. The comparison is on blended price, 3 parts input to 1 part output.

HostIn / out per 1M
FLUX.2-flex
-
Retires 20 Jan 2027
falInference
flux-2-flex
-
ReplicateInference
flux-2-flex
-

Capabilities

Core

  • Streaming
  • Function calling
  • JSON mode
  • Structured outputs

Multimodal

  • Vision
  • Image input
  • Audio
  • Image generation
  • Video

Advanced

  • Reasoning
  • Tool calling
  • MCP
  • Prompt caching
  • Batch API
  • Embeddings
Takes in
ImagesText
Produces
Images

Similar models

This model has no listed price, so these are current models with similar capabilities.

Smaller Black Forest Labs models

No similar Black Forest Labs model keeps its key capabilities.

Other frontier labs

Open-weight picks

No similar open-weight match.

Call it

Using Azure AI Foundry's API.

Python
from litellm import completion

response = completion(
    model="azure_ai/FLUX.2-flex",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)

Quick answers

Which APIs offer FLUX 2 Flex?

FLUX 2 Flex runs on 3 APIs: Azure AI Foundry, fal and Replicate.

What is FLUX 2 Flex's context window?

32K tokens.

Is FLUX 2 Flex being retired?

Azure AI Foundry retires it on 20 Jan 2027. 2 hosts keep serving it.

What is FLUX 2 Flex's API model id?

Use FLUX.2-flex with Azure AI Foundry. Other hosts use their own ids: flux-2-flex on fal, flux-2-flex on Replicate.

Sources

Raw catalog entry for FLUX.2-flex on Azure AI Foundry
{
  "deprecation_date": "2027-01-20",
  "deprecation_source": "https://learn.microsoft.com/en-us/azure/foundry/concepts/model-lifecycle-retirement",
  "input_cost_per_pixel": 5e-8,
  "litellm_provider": "azure_ai",
  "max_input_tokens": 32000,
  "mode": "image_generation",
  "source": "https://azure.microsoft.com/en-us/pricing/details/ai-foundry-models/black-forest-labs/",
  "supported_endpoints": [
    "/v1/images/generations",
    "/v1/images/edits"
  ],
  "supported_modalities": [
    "text",
    "image"
  ],
  "supported_output_modalities": [
    "image"
  ]
}