Models / Black Forest Labs
Image

FLUX.2 [dev]

State-of-the-art image generation and editing with multi-reference capabilities

About model

FLUX.2 [dev] is a state-of-the-art image generation and editing model that combines powerful text-to-image capabilities with advanced single and multi-reference editing without requiring finetuning. Built on a 32 billion parameter rectified flow transformer architecture, it enables character, object, and style reference in a unified model. Trained using guidance distillation for enhanced efficiency, FLUX.2 [dev] delivers professional-quality outputs for personal, scientific, and commercial purposes under the FLUX [dev] Non-Commercial License.

  • API usage

    • cURL
    • Python
    • Typescript

    Endpoint:

    black-forest-labs/FLUX.2-dev

    curl -X POST "https://api.together.xyz/v1/images/generations" \
      -H "Authorization: Bearer $TOGETHER_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "model": "black-forest-labs/FLUX.2-dev",
        "prompt": "Draw an anime style version of this image.",
        "width": 1024,
        "height": 768,
        "steps": 28,
        "n": 1,
        "response_format": "url",
        "image_url": "https://huggingface.co/datasets/patrickvonplaten/random_img/resolve/main/yosemite.png"
      }'
    
    from together import Together
    
    client = Together()
    
    imageCompletion = client.images.generate(
        model="black-forest-labs/FLUX.2-dev",
        width=1024,
        height=768,
        steps=28,
        prompt="Draw an anime style version of this image.",
        image_url="https://huggingface.co/datasets/patrickvonplaten/random_img/resolve/main/yosemite.png",
    )
    
    print(imageCompletion.data[0].url)
    
    
    
    import Together from "together-ai";
    
    const together = new Together();
    
    async function main() {
      const response = await together.images.create({
        model: "black-forest-labs/FLUX.2-dev",
        width: 1024,
        height: 1024,
        steps: 28,
        prompt: "Draw an anime style version of this image.",
        image_url: "https://huggingface.co/datasets/patrickvonplaten/random_img/resolve/main/yosemite.png",
      });
    
      console.log(response.data[0].url);
    }
    
    main();
    
    
  • Model card

    Architecture Overview:
    • Guidance-distilled from FLUX.2 [pro]
    • Enhanced inference efficiency
    • Up to 4MP output resolution
    • Non-commercial license

    Model Characteristics:
    • Comparable quality to FLUX.2 [pro]
    • Maintained prompt adherence
    • Optimized for resource efficiency
    • Photorealistic detail preservation

    Performance Benefits:
    • Faster inference than standard models of equivalent size
    • Reduced computational requirements
    • Multi-reference support inherited from [pro]

Related models
  • Model provider
    Black Forest Labs
  • Type
    Image
  • Main use cases
    Image-to-Image
  • Deployment
    Serverless
    On-Demand Dedicated
    Monthly Reserved
  • Parameters
    32B
  • Context length
    32K characters
  • Price

    $0.0154 / image

  • Input modalities
    Image
  • Output modalities
    Image