Models / Black Forest Labs
Image

FLUX.2 [flex]

Customizable image generation with advanced text rendering capabilities

About model

FLUX.2 [flex] has 32K-token context window. On Together AI it costs $0.03 per image.

FLUX.2 [flex] is the FLUX.2 model from Black Forest Labs that gives developers control over generation settings. You set the number of steps and the guidance scale on each request to trade off quality, prompt adherence and speed, and Black Forest Labs describes the model as specialized for rendering text and preserving small details. The FLUX.2 family, released on November 25, 2025, pairs a Mistral-3 24B vision-language model with a rectified flow transformer and handles text-to-image generation and image editing in one architecture. FLUX.2 [flex] generates and edits images at up to 4 megapixels, accepts multiple reference images and follows structured JSON prompts and hex color codes. Available on Together AI.

A letterpress print reading MAKE THINGS SLOWLY, Print Shop No. 7
Typography
Wood type with ink texture, spelled as written.
Prompt
A letterpress print on thick cream cotton paper, photographed from above. Large black wood type reads "MAKE THINGS SLOWLY". Beneath it in small red type: "Print Shop No. 7". Visible ink texture and paper grain. No other text.
A beer can with a label reading HARBOR LIGHT, Pale Ale
Text on products
A can label with two typefaces and a small illustration.
Prompt
Product photograph of a single beer can with condensation on a dark slate surface. The label reads "HARBOR LIGHT" in bold type with "Pale Ale" beneath it, and a small lighthouse illustration. Moody side lighting. No other text.
A bicycle repair shop window with painted lettering reading BICYCLE REPAIR, Open
Signage
Hand-painted lettering on glass, in late sun.
Prompt
A bicycle repair shop window from the street. White hand-painted lettering on the glass reads "BICYCLE REPAIR" with "Open" beneath it. Bicycle wheels hanging inside, afternoon sun. No other text.
Generated with FLUX.2 [flex] on Together AI. Images are unedited.
Max Resolution

4MP

Generation and editing at up to 4 megapixels

Tuning Controls

2

Steps and guidance scale, set on each request

Vision-Language Model

24B

Mistral-3 model paired with a rectified flow transformer

Model key capabilities
  • Adjustable Steps and Guidance: Set the step count and guidance scale to balance quality, prompt adherence and speed
  • Typography: Black Forest Labs describes [flex] as specialized for text rendering and fine detail
  • Multi-Reference Editing: Combines several reference images in one request and keeps subjects and styles consistent
  • Production-Ready Infrastructure: 99.9% SLA, available on Together AI serverless infrastructure
  • API usage

    • cURL
    • Python
    • Typescript

    Endpoint:

    black-forest-labs/FLUX.2-flex

    curl -X POST "https://api.together.ai/v1/images/generations" \
      -H "Authorization: Bearer $TOGETHER_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "model": "black-forest-labs/FLUX.2-flex",
        "prompt": "A serene mountain landscape at sunset with a lake reflection"
      }'
    from together import Together
    
    client = Together()
    
    response = client.images.generate(
        model="black-forest-labs/FLUX.2-flex",
        prompt="A serene mountain landscape at sunset with a lake reflection",
    )
    
    print(response.data[0].url)
    import Together from 'together-ai';
    
    const together = new Together();
    
    const response = await together.images.generate({
      model: "black-forest-labs/FLUX.2-flex",
      prompt: "A serene mountain landscape at sunset with a lake reflection",
    });
    
    console.log(response.data[0].url);
  • Model card

    Architecture Overview:
    • Customizable inference with adjustable steps and guidance
    • Up to 4MP output resolution capability
    • 32K prompt token capacity

    Multi-Reference System:
    • API & Playground: Up to 10 reference images
    • 14 MP total input capacity
    • Enhanced character and product consistency

    Performance Characteristics:
    • Superior typography and text rendering
    • Enhanced prompt following capabilities
    • Photorealistic detail in skin, hair, fabric
    • Flexible quality/speed adjustment
    • Hex-code color accuracy support

    ‍

  • Prompting

    Together AI API Access:
    • Access FLUX.2 [flex] via Together AI APIs using the endpoint black-forest-labs/FLUX.2-flex
    • Authenticate using your Together AI API key in request headers
    • Send an image generation request with a text prompt, and set width and height from 256 to 1920 pixels
    • Set steps and the guidance scale on the request. More steps improve typography accuracy and image detail at the cost of latency
    • Put the exact text you want rendered in quotes inside the prompt, and keep it short and clear
    • Available on Together AI serverless infrastructure

  • Applications & use cases

    Typography and Signage:
    • Generate posters, labels and signs with the wording spelled as written
    • Create packaging mockups with brand text and exact hex colors

    Design and UI:
    • Produce interface mockups and infographics with fine, legible text
    • Raise the step count for final assets and lower it for quick drafts

    Brand and Product Imagery:
    • Keep a product consistent across scenes with reference images
    • Generate ad creative with embedded headlines

  • Model provider
    Black Forest Labs
  • Type
    Image
  • Main use cases
    Image Generation
  • Deployment
  • Context length
    32K
  • Price

    $0.03 / image

  • Input modalities
    Text
    Image
  • Output modalities
    Image