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
| Parameter | Type | Required | Default | Range | Description |
|---|---|---|---|---|---|
| prompt | string | Yes | - | The positive prompt for the generation. | |
| images | array | Yes | [] | 1 ~ 3 items | List of URLs of input images for editing. The maximum number of images is 3. |
| seed | integer | No | -1 | -1 ~ 2147483647 | The random seed to use for the generation. -1 means a random seed will be used. |
| enable_sync_mode | boolean | No | false | - | 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_output | boolean | No | false | - | 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
| Parameter | Type | Description |
|---|---|---|
| code | integer | HTTP status code (e.g., 200 for success) |
| message | string | Status message (e.g., “success”) |
| data.id | string | Unique identifier for the prediction, Task Id |
| data.model | string | Model ID used for the prediction |
| data.outputs | array | Array of URLs to the generated content (empty when status is not completed) |
| data.urls | object | Object containing related API endpoints |
| data.urls.get | string | URL to retrieve the prediction result |
| data.has_nsfw_contents | array | Array of boolean values indicating NSFW detection for each output |
| data.status | string | Status of the task: created, processing, completed, or failed |
| data.created_at | string | ISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”) |
| data.error | string | Error message (empty if no error occurred) |
| data.timings | object | Object containing timing details |
| data.timings.inference | integer | Inference time in milliseconds |