Flux Tools

Black Forest labs released FLUX Tools with support on Together AI These models enable you to iterate on existing images with image → image and image + text → prompt, which unlocks lots of exciting use cases for AI developers. Three new FLUX Tools image generation models from BFL now available on Together AI: Canny for precise composition control, Depth for accurate spatial relationships, and Redux for instant image variations.

Generating an image

To use one of these models, see the code below
from together import Together

client = Together()

imageCompletion = client.images.generate(
    model="black-forest-labs/FLUX.1-depth",
    width=1024,
    height=768,
    steps=28,
    prompt="show me this picture as a superhero",
    image_url="https://github.com/nutlope.png",
)

print(imageCompletion.data[0].url)
Check out all available Flux models here: https://docs.together.ai/docs/serverless-models#image-models