
Black Forest Labs/Flux Kontext Pro
flux-kontext-proFlux 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 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 Name | Parameter | Technical Description |
|---|---|---|
| Reference Image | init_image | Please upload the reference image you want to edit. |
| Prompt | prompt | Enter the prompt for what change you wanted to make in the given image |
| model_id | model_id | Model to use for generation |
| Aspect Ratio | aspect_ratio | Aspect ratio of the generated image |