Skip to main content

Flux 2 Dev - Image Editor

Open-weight text-based image editing model by Black Forest Labs. Uses a 32B parameter architecture to apply natural language instructions to existing images with fine control over inference steps and guidance.

Endpoint

Request Headers

FieldValue
API-KEY<api-key>
Content-Typeapplication/json

Parameters

ParameterTypeRequiredDescription
typestringYesMust be IMAGE_EDITOR
modelstringYesMust be black-forest-labs/flux-2-dev
promptObjectobjectYesConfiguration object containing all editing parameters

Prompt Object Parameters

ParameterTypeRequiredDescriptionDefault
imageUrlstringYesAsset path of the image to edit (from Asset API)-
promptstringYesText description of the desired edit-
aspect_ratiostringNoOutput aspect ratio (1:1, 16:9, 9:16, 3:2, 2:3, 4:5, 5:4)match_input_image
output_formatstringNoOutput file format (webp, jpg, png)webp
output_qualitynumberNoOutput image quality (0-100)80
num_inference_stepsnumberNoNumber of denoising steps (1-50)28
guidancenumberNoPrompt adherence scale (0-10)3
prompt_strengthnumberNoHow strongly to apply edits (0-1); lower = more conservative0.8
go_fastbooleanNoEnable speed-optimized generationfalse
megapixelsstringNoOutput resolution in megapixels (0.25, 1)1
disable_safety_checkerbooleanNoDisable built-in safety filteringfalse
seednumberNoRandom seed for reproducibilityRandom

Code Examples

curl -X POST "https://api.1min.ai/api/features" \
-H "API-KEY: <api-key>" \
-H "Content-Type: application/json" \
-d '{
"type": "IMAGE_EDITOR",
"model": "black-forest-labs/flux-2-dev",
"promptObject": {
"imageUrl": "development/images/2025_12_04_18_10_29_882_cat.png",
"prompt": "Make it look like a watercolor painting with soft pastel tones",
"num_inference_steps": 28,
"guidance": 3.5,
"prompt_strength": 0.75,
"output_format": "webp",
"output_quality": 85
}
}'

Interactive Playground

API Playground

https://api.1min.ai/api/features
Asset path of the source image to edit
Describe the edit you want to apply
Number of denoising steps (1-50)
Prompt adherence scale (0-10)
How strongly to apply edits (0-1); lower = more conservative
Output image quality (0-100)
Random seed for reproducibility

Generated cURL Command:

curl -X POST "https://api.1min.ai/api/features" \
-H "API-KEY: <your-api-key>" \
-H "Content-Type: application/json" \
-d '{
"type": "IMAGE_EDITOR",
"model": "black-forest-labs/flux-2-dev",
"promptObject": {
"imageUrl": "development/images/2025_12_04_18_10_29_882_cat.png",
"prompt": "Make it look like a watercolor painting with soft pastel tones",
"num_inference_steps": 28,
"guidance": 3.5,
"prompt_strength": 0.75,
"output_format": "webp",
"output_quality": 85
}
}'

Response Format

{
"aiRecord": {
"uuid": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
"model": "black-forest-labs/flux-2-dev",
"type": "IMAGE_EDITOR",
"status": "SUCCESS",
"createdAt": "2026-03-27T10:00:00.000Z",
"aiRecordDetail": {
"promptObject": {
"imageUrl": "development/images/2025_12_04_18_10_29_882_cat.png",
"prompt": "Make it look like a watercolor painting with soft pastel tones",
"num_inference_steps": 28,
"guidance": 3.5,
"prompt_strength": 0.75,
"output_format": "webp",
"output_quality": 85
},
"resultObject": [
"development/images/2026_03_27_10_00_02_001_edited.webp"
]
},
"temporaryUrl": "https://s3.us-east-1.amazonaws.com/asset.1min.ai/development/images/2026_03_27_10_00_02_001_edited.webp?..."
}
}

Use Cases

  • Style Transfer: Apply artistic styles to photos
  • Scene Enhancement: Add atmosphere, lighting, or mood changes
  • Custom Pipelines: Open-weight model for fine-tuned editing workflows
  • Prototype Editing: Rapid iteration with adjustable step count