/
ModelsSupportEnterpriseBlog
500+ AI Model API, All In One API.Just In CometAPI
Models API
Developer
Quick StartDocumentationAPI Dashboard
Resources
AI ModelsBlogEnterpriseChangelogAbout
2025 CometAPI. All right reserved.Privacy PolicyTerms of Service
Home/Models/Flux/flux-kontext-pro
F

flux-kontext-pro

Per Request:$0.048
Commercial Use
Overview
Features
Pricing
API

Technical Specifications of flux-kontext-pro

SpecificationDetails
Model IDflux-kontext-pro
Model familyFLUX.1 Kontext
ProviderBlack Forest Labs
ModalityImage generation and image editing
Input typesText prompt, input image, image URL or base64-encoded image
Output typeGenerated or edited image
Core capabilityIn-context image generation and editing
Typical use casesText-to-image creation, targeted image edits, style transfer, character-preserving scene changes, product-image refinement
Access patternAPI-based inference through CometAPI
Official endpoint familyBlack Forest Labs exposes FLUX Kontext Pro through its API as /v1/flux-kontext-pro for image creation and editing workflows
Commercial useSupported through hosted API access

What is flux-kontext-pro?

flux-kontext-pro is CometAPIโ€™s platform identifier for Black Forest Labsโ€™ FLUX.1 Kontext [pro], a production-grade image model designed to unify text-to-image generation and prompt-based image editing in one system. Instead of treating generation and editing as separate tools, it supports โ€œin-contextโ€ workflows where you can provide both instructions and visual context to create coherent new images or transform existing ones.

This model is built for users who need more than one-shot image generation. It is especially useful when you want to preserve subject identity, maintain visual consistency across iterations, or make targeted modifications to an existing image without rebuilding the whole scene from scratch. Black Forest Labs positions FLUX Kontext as a state-of-the-art system for precise, context-aware generation and editing, and its documentation specifically supports both text-only creation and image-guided editing flows.

On CometAPI, flux-kontext-pro lets developers call this capability through a unified API layer, which is useful if you want to standardize authentication, billing, and multi-model integration across applications. CometAPI lists this model as an available hosted option for image workflows. (cometapi.com)

Main features of flux-kontext-pro

  • Unified generation and editing: flux-kontext-pro can create images from text prompts and also edit existing images using text instructions, reducing the need to switch between separate generation and retouching pipelines.
  • In-context image understanding: The model uses the provided image as context, enabling changes that stay visually grounded in the source composition, subject, and scene.
  • Targeted prompt-based edits: It is well suited for practical edits such as removing objects, altering backgrounds, changing wardrobe or styling, and adapting a scene while preserving core visual identity.
  • Character and subject consistency: Black Forest Labs highlights Kontext for maintaining consistency across iterative generations, which is valuable for branded assets, recurring characters, and multi-image creative workflows.
  • Flexible image input handling: Official documentation supports supplying an input image through a URL or base64-encoded payload, which makes the model easier to integrate into both web apps and backend pipelines.
  • Production-ready hosted API: The model is available as a hosted service through Black Forest Labs and is also surfaced through CometAPI, making it practical for teams that want deployment simplicity over self-hosting.
  • Commercial creative workflows: The model is appropriate for marketing visuals, design iteration, product imagery, and other professional image workflows where fast revisions and controllable outputs matter. This is an inference based on the modelโ€™s documented editing and consistency strengths.

How to access and integrate flux-kontext-pro

Step 1: Sign Up for API Key

To get started, create an account on CometAPI and generate your API key from the dashboard. Once you have the key, store it securely and use it to authenticate every request you send to the flux-kontext-pro API. CometAPI provides a unified access layer for this model, so you can manage credentials, usage, and billing from one place. (cometapi.com)

Step 2: Send Requests to flux-kontext-pro API

After getting your API key, send requests to the flux-kontext-pro API using CometAPIโ€™s standard REST or SDK-compatible workflow. Include your prompt and, if needed, an input image reference such as a URL or base64 payload. This model is designed for both image creation and edit operations, so the same integration pattern can support greenfield generation and iterative refinement. Official Black Forest Labs documentation shows that the underlying model endpoint supports image editing and creation flows for FLUX Kontext Pro.

Step 3: Retrieve and Verify Results

Once the request completes, retrieve the generated image output from the API response and verify that the result matches your prompt, source image context, and quality requirements. In production, it is a good idea to validate dimensions, style consistency, edit accuracy, and any brand or product constraints before delivering assets downstream. For iterative workflows, you can reuse the output as the next input image and continue refining with additional prompts. This aligns with FLUX Kontextโ€™s documented in-context editing design.

Features for flux-kontext-pro

Explore the key features of flux-kontext-pro, designed to enhance performance and usability. Discover how these capabilities can benefit your projects and improve user experience.

Pricing for flux-kontext-pro

Explore competitive pricing for flux-kontext-pro, designed to fit various budgets and usage needs. Our flexible plans ensure you only pay for what you use, making it easy to scale as your requirements grow. Discover how flux-kontext-pro can enhance your projects while keeping costs manageable.
Comet Price (USD / M Tokens)Official Price (USD / M Tokens)Discount
Per Request:$0.048
Per Request:$0.06
-20%

Sample code and API for flux-kontext-pro

Access comprehensive sample code and API resources for flux-kontext-pro to streamline your integration process. Our detailed documentation provides step-by-step guidance, helping you leverage the full potential of flux-kontext-pro in your projects.

More Models