Quickstart: Flux Tools Models
Learn how to use the new Flux Tool models: Canny, Controlnet, and Remix
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)
import Together from "together-ai";
const together = new Together();
async function main() {
const response = await together.images.create({
model: "black-forest-labs/FLUX.1-depth",
width: 1024,
height: 1024,
steps: 28,
prompt: "give me a superhero",
// @ts-ignore
image_url: "https://github.com/nutlope.png",
});
// @ts-ignore
console.log(response.data[0].url);
}
main();
Check out all available Flux models here: https://docs.together.ai/docs/serverless-models#image-models
Updated about 19 hours ago