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 three models optimized for different use cases: Pro for balanced speed and quality, Max for maximum image fidelity, and Dev for development and experimentation.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
- FLUX.1-kontext-dev: Development model for testing
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-pro,black-forest-labs/FLUX.1-kontext-max, orblack-forest-labs/FLUX.1-kontext-devprompt: Text description of the transformation you want to applyimage_url: URL of the reference image to transformaspect_ratio: Output aspect ratio (e.g., “1:1”, “16:9”, “9:16”, “4:3”, “3:2”) - alternatively, you can usewidthandheightfor precise pixel dimensionssteps: Number of diffusion steps (default: 28, higher values may improve quality)seed: Random seed for reproducible results