All models

flux-kontext-pro

Black Forest LabsImage
Get your API key
flux-kontext-pro

Edit existing images with text, balancing local changes and overall consistency

flux-kontext-pro is the image generation and editing model for Black Forest Labs FLUX.1 Kontext [pro], focused on context-aware modifications to existing images. It can create new images from text and perform editing instructions based on an original image, making it suitable for adjusting product displays, character assets, and design drafts. On this platform, generation, editing, and result retrieval can all be completed through the same image API.

Black Forest LabsModel brand
ImageModel type
Generation · EditingCreation modes
STANDARD APIs · QUICK SETUP

Bring this model into your workflow

Submit requests to the public API at api.acedata.cloud using the documented parameters, then use the results in your application.

API host
api.acedata.cloud
model
flux-kontext-pro
Get your API key

Input parameters and result formats vary by service. Use the public API for this model and follow its guide for generation, task retrieval and editing operations.

Specifications and API Features

Creation modes
Text-to-image generation; editing an original image with text instructions
Editing input
image_url image link and prompt editing instruction
Aspect ratio control
size uses image aspect ratios, such as 1:1, 16:9, and 9:16
Result delivery
JSON image result list, with images retrieved via image_url
Quantity control
count is used for generation tasks, not editing tasks
Task processing
Supports asynchronous task queries and completion callbacks

The above are this platform's API specifications; the native capabilities of FLUX.1 Kontext [pro] and the control options available through the API should be understood separately.

Core Capabilities

Express edit intent around the original image

When editing, there is no need to describe the entire image from scratch. Instead, provide the original image and specify the object, attribute, or area you want to change. For example, adjust an object's color, add accessories to a person, or modify a specified element in the image. Its focus is on making changes based on image context while maintaining consistency with the original composition and unmodified content.

Connected generation and editing

The same model provides both text-to-image generation and image editing. You can first create a draft using descriptions of the scene, subject, lighting, and aspect ratio, then use the selected result as editing input to continue making modification requests. This workflow is suitable for first establishing a visual direction and then progressively refining details, rather than regenerating the entire image each time.

Adapted for backend image tasks

Results are delivered as image links, making them convenient for business systems to display, download, or send into subsequent review workflows. When backend processing is needed, you can use asynchronous task queries or configure completion callbacks. Applications can associate task identifiers with asset records, separating submission, waiting, and result reception without requiring users to remain on the submission page.

Use Cases

Product Showcase Image Adjustments

Provide an existing product showcase image, specify the colors, scene elements, or decorations that need adjustment, and clearly state the product subject and composition you want to preserve. The output can be used to compare different presentation options and help designers select a direction. When packaging text, trademarks, and product structure are involved, check each item before adoption to avoid mistaking generated changes for physical product details.

Local Edits to Character Assets

Based on existing photos or character design images, request specific changes such as adding accessories or adjusting clothing elements to obtain modified candidate assets. Compared with describing a character from scratch and generating it again, the original image provides clear visual context. Suitable for avatar design, event visuals, and character draft adjustments, but facial features and key identifying characteristics still require manual review.

Design Draft Iteration

First generate a concept image, then successively modify objects, color schemes, or scene details in the selected draft to create options that are easy to review. Save the input image, instructions, and results at each step to clearly show the modification process. The output is suitable as a visual proposal and reference for subsequent production, rather than directly replacing design files that require precise layers, dimensions, or structure.

How to Choose This Model

For Modifying Existing Images, Consider Kontext First

When the task is to preserve the main content of an image while changing only some elements, Kontext Pro's context editing is better suited to the need. If you simply want to explore entirely new compositions from text, you can also use its generation mode; distinguish between “creating a new image” and “modifying an existing image” when choosing, and compare results using actual assets rather than relying only on model names.

Use Differently from Max and dev

Kontext Pro is suitable as a starting point for everyday context editing; when facing complex editing requirements, include Kontext Max in the comparison and evaluate detail performance using the same original image and instructions. Kontext [dev] is another open-weight version; do not directly apply its local deployment methods, parameters, or license to Pro, and do not treat FLUX 2's capabilities as features of this model.

Get started

Define visual goals and elements to preserve

For text-to-image, clearly specify the subject, materials, lighting, and aspect ratio; for modifying an existing image, prepare image_url and clearly describe what to change and preserve.

Call this model's image operations

Submit model=flux-kontext-pro, action=generate, prompt, and size=16:9 to /flux/images; when editing images, select edit and provide the image URL, while count is only used for generation.

Evaluate based on image results

Save the returned image_url; for asynchronous tasks, query using task_id or configure callback_url. Compare key elements before and after modification, then use the finished image in subsequent design work.

Trial suggestion: local recoloring of a product display image

Input and goal

Keep the chair outline, camera angle, and background from the original image, changing only the seat color from gray to dark green while keeping the shadows and ambient light harmonious.

Acceptance and next steps

Compare against the original image to inspect the chair legs, edges, and background; save the result after each round, and in the next round request only additional changes rather than treating editing as lossless cutout extraction.

Usage limitations

  • Maintaining overall consistency is the goal of editing; it does not mean unmodified areas remain pixel-for-pixel identical. When there are strict requirements for faces, product outlines, logos, or small text, compare the key areas before and after editing; instructions involving multiple changes should be split into separate steps, with results confirmed at each step.
  • Aspect ratio is controlled through image proportions; do not specify output using pixel dimensions such as 1024x1024. Both generation and editing should include size; editing also requires an accessible image_url. Do not treat the generation task's count as a feature for batch-editing multiple original images at once.
  • Editing uses the original image together with text instructions and should not be assumed to include masks, multi-image compositing, or precise layer operations. Output images are suitable for further selection and processing; if strict layout, editable vector structure, or fixed pixel positions are required, use dedicated design tools.

Frequently Asked Questions

Can flux-kontext-pro generate images using only text?

Yes. Use the generate operation, submit a prompt and image aspect ratio size, and explicitly specify model as flux-kontext-pro. The prompt can describe the subject, scene, composition, and lighting; if the goal is to modify existing material, use edit instead and provide the original image link.

How should I write editing instructions for Kontext Pro?

First identify the object to modify, then describe the desired change, and add what needs to be preserved. For example, “Change the bottle body to dark blue, while keeping the cap, label, and background composition.” Try to avoid requesting multiple vague changes at once; complex tasks can be split into consecutive steps, checking the result after each step before continuing.

Can I specify the image size using 1024x1024?

This model uses image aspect ratios to control the canvas, so enter ratios such as 1:1, 16:9, or 9:16 in size rather than pixel dimensions. Ratios are used to express square, landscape, or portrait compositions, and should not be understood as a commitment to a fixed output pixel size.

Can I edit multiple original images at once?

The editing input here is the original image specified by image_url, and count is not used for editing tasks. When processing multiple assets, submit editing tasks separately and manage their results individually. Generation tasks can use count to request multiple candidates, but this is not the same feature as multi-original-image editing or multi-image reference.

Can I send the result from the previous round back for further editing?

You can use the image link returned from the previous round as the image_url for the next round, then submit a new edit instruction to make step-by-step changes. It is recommended to keep the original image and the results from each round for easy rollback and comparison; with consecutive edits, you should still check changes to the subject, text, and composition, and not assume that all other content will be completely preserved in every round.