Models / Black Forest Labs
Image

FLUX.1 [schnell]

Fastest available endpoint for the SOTA open-source image generation model by Black Forest Labs.

About model

FLUX.1 by Black Forest Labs is optimized for speed and local development use. It offers open-weights under Apache 2.0 license, making it suitable for developers needing fast performance.

Quickstart guides
  • API usage

    • cURL
    • Python
    • Typescript

    Endpoint:

    black-forest-labs/FLUX.1-schnell

    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.1-schnell",
        "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.1-schnell",
        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.1-schnell",
        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();
    
    
Related models
  • Model provider
    Black Forest Labs
  • Type
    Image
  • Main use cases
    Image Generation
  • Deployment
    Serverless
    Monthly Reserved
  • Parameters
    12B
  • Price

    $0.0027 / MP

  • Input modalities
    Text
  • Output modalities
    Image