FLUX Kontext
Black Forest Labs has released FLUX Kontext with support on Together AI. These models allow you to generate and edit images through in-context image generation. Unlike existing text-to-image models, FLUX.1 Kontext allows you to prompt with both text and images, and seamlessly extract and modify visual concepts to produce new, coherent renderings. The Kontext family includes two models optimized for different use cases: Pro for balanced speed and quality, and Max for maximum image fidelity.Generating an image
Here’s how to use the new Kontext models:
Available models
FLUX Kontext offers different models for various needs:- FLUX.1-kontext-pro: Best balance of speed and quality (recommended).
- FLUX.1-kontext-max: Maximum image quality for production use.
Common use cases
- Style transfer: Transform photos into different art styles (watercolor, oil painting, etc.).
- Object modification: Change colors, add elements, or modify specific parts of an image.
- Scene transformation: Convert daytime to nighttime, change seasons, or alter environments.
- Character creation: Transform portraits into different styles or characters.
Key parameters
FLUX Kontext models support the following key parameters:model: Choose fromblack-forest-labs/FLUX.1-kontext-proorblack-forest-labs/FLUX.1-kontext-max.prompt: Text description of the transformation you want to apply.image_url: URL of the reference image to transform.aspect_ratio: Output aspect ratio (e.g., “1:1”, “16:9”, “9:16”, “4:3”, “3:2”). Alternatively, you can usewidthandheightfor precise pixel dimensions.steps: Number of diffusion steps (default: 28, higher values may improve quality).seed: Random seed for reproducible results.