Flux 2 Dev Edit

Flux 2 Dev Edit

Playground

Try it on WavespeedAI!

Image-to-image editing with FLUX.2 [dev] from Black Forest Labs. Precise modifications using natural language descriptions and hex color control.

Features

FLUX.2 [dev] — Image-to-Image Edit

A high-performance image-to-image editing model built on FLUX.2 [dev] from Black Forest Labs. Designed for precise, controllable, and high-fidelity transformations using natural language instructions and hex color control.

Perfect for teams that need fast, reliable, and production-quality edits without the heavy compute requirements of larger diffusion systems.


Key Features

• Precise natural language editing

Modify objects, colors, materials, lighting, and scene elements using detailed text instructions.

• Hex color control

Apply exact brand or design colors for product edits, UI elements, backgrounds, and style refinements.

• High-fidelity reconstruction

Maintains structural consistency while enhancing details, textures, lighting, and text clarity.

• Clean modification workflow

Ideal for:

  • Content replacement
  • Style and tone transformations
  • Color-accurate edits
  • Composition adjustments
  • Regeneration with preserved layout

• LoRA-compatible

Supports lightweight LoRA adapters for brand-specific styles, product identity, or domain-custom tuning.


Advantages

• Fast, efficient inference

Optimized architecture for rapid iteration and large-scale editing pipelines.

• Open-source foundation

Built on a transparent, community-driven model for easy integration and extension.

• Reproducible outputs

Deterministic seed behavior ensures consistent edit variations.

• Flexible export formats

Supports PNG or JPEG output, depending on workflow needs.


FLUX.2 [dev] Edit delivers precise, controllable, and high-fidelity image editing—perfect for production workflows, creative pipelines, and automated content systems.

Authentication

For authentication details, please refer to the Authentication Guide.

API Endpoints

Submit Task & Query Result


# Submit the task
curl --location --request POST "https://api.wavespeed.ai/api/v3/wavespeed-ai/flux-2-dev/edit" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}" \
--data-raw '{
    "seed": -1,
    "enable_sync_mode": false,
    "enable_base64_output": false
}'

# Get the result
curl --location --request GET "https://api.wavespeed.ai/api/v3/predictions/${requestId}/result" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}"

Parameters

Task Submission Parameters

Request Parameters

ParameterTypeRequiredDefaultRangeDescription
promptstringYes-The positive prompt for the generation.
imagesarrayYes[]1 ~ 3 itemsList of URLs of input images for editing. The maximum number of images is 3.
seedintegerNo-1-1 ~ 2147483647The random seed to use for the generation. -1 means a random seed will be used.
enable_sync_modebooleanNofalse-If set to true, the function will wait for the result to be generated and uploaded before returning the response. It allows you to get the result directly in the response. This property is only available through the API.
enable_base64_outputbooleanNofalse-If enabled, the output will be encoded into a BASE64 string instead of a URL. This property is only available through the API.

Response Parameters

ParameterTypeDescription
codeintegerHTTP status code (e.g., 200 for success)
messagestringStatus message (e.g., “success”)
data.idstringUnique identifier for the prediction, Task Id
data.modelstringModel ID used for the prediction
data.outputsarrayArray of URLs to the generated content (empty when status is not completed)
data.urlsobjectObject containing related API endpoints
data.urls.getstringURL to retrieve the prediction result
data.has_nsfw_contentsarrayArray of boolean values indicating NSFW detection for each output
data.statusstringStatus of the task: created, processing, completed, or failed
data.created_atstringISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”)
data.errorstringError message (empty if no error occurred)
data.timingsobjectObject containing timing details
data.timings.inferenceintegerInference time in milliseconds

Result Request Parameters

© 2025 WaveSpeedAI. All rights reserved.