Models / Black Forest Labs
Image

FLUX.2 [pro]

Advanced production-grade image generation with multi-reference editing

About model

Production-Grade Visual AI:
FLUX.2 [pro] delivers photorealistic image generation and editing up to 4MP resolution with exceptional detail accuracy in hands, faces, fabrics, and small objects. Support for up to 8 reference images via API enables unprecedented character and product consistency across creative workflows.

  • API usage

    • cURL
    • Python
    • Typescript

    Endpoint:

    black-forest-labs/FLUX.2-pro

    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-pro",
        "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-pro",
        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-pro",
        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:
    • Next-generation image model with enhanced multi-reference support
    • Up to 4MP output resolution capability
    • 32K prompt token capacity for detailed creative direction

    Multi-Reference System:
    • API: Up to 8 reference images (9 MP total input)
    • Playground: Up to 10 reference images
    • Advanced character, product & style consistency

    Performance Characteristics:
    • Photorealistic rendering with professional-grade detail
    • Hex-code color accuracy for brand guidelines
    • Enhanced prompt following and world knowledge
    • Improved text rendering for typography and UI mockups

Related models
  • Model provider
    Black Forest Labs
  • Type
    Image
  • Main use cases
    Image Generation
  • Deployment
    Serverless
  • Context length
    32K prompt tokens
  • Price

    $0.03 / image

  • Input modalities
    Text
    Image
  • Output modalities
    Image