🚀 Z-Image Turbo Image-to-Image is Live — Unlimited Generations for Premium Users

Try Now
Skip to main content
Flux Kontext Pro thumbnail

Black Forest Labs/Flux Kontext Pro

flux-kontext-pro
Flux Kontext ProLLMs.txt
Advanced image generation and editing model with 12B parameters, leveraging multimodal flow transformers for context-aware text-to-image synthesis and precise local edits, ensuring high-resolution outputs and character consistency.
API PlaygroundAPI Documentation

API Endpoint URL

Base URL for all API requests to this endpoint.

https://modelslab.com/api/v7/images/image-to-image

API Authentication

Authentication requires a valid API key included in the request. Generate and manage your API keys from your developer dashboard. Include the key in the key parameter for all API requests.

Integration Examples

Production-ready code samples for API integration

{
"init_image": "https://assets.modelslab.com/generations/197fdb87-3d94-4a3d-bf2b-6c1b2a73a623",
"prompt": "It's now snowing, everything is covered in snow",
"model_id": "flux-kontext-pro",
"aspect_ratio": "1:1",
"key": "YOUR_API_KEY"
}

SDKs

Official SDKs

Production-ready SDKs and client libraries for all major programming languages

API Parameters

Technical specifications for API request parameters.

Field NameParameterTechnical Description
Reference Imageinit_imagePlease upload the reference image you want to edit.
PromptpromptEnter the prompt for what change you wanted to make in the given image
model_idmodel_idModel to use for generation
Aspect Ratioaspect_ratioAspect ratio of the generated image