🎉 New Year Sale: Get 20% OFF on all plans — Use code NEWYEAR2026.

Upgrade now
Flux.2 Dev Image To Image (Image Editing) thumbnail

ModelsLab/Flux.2 Dev Image To Image (Image Editing)

flux-2-dev
Flux.2 Dev Image To Image (Image Editing)Free for Premium UsersLLMs.txt
This model allows you to supply an input image along with a text prompt that describes the modifications you want, and it will generate an updated version that reflects your requested changes.
API PlaygroundAPI Documentation

API Endpoint URL

Base URL for all API requests to this endpoint.

https://modelslab.com/api/v6/images/img2img

API Authentication

Authentication requires a valid API key included in the request. Generate and manage your API keys from your developer dashboard. Include the key in the key parameter for all API requests.

Integration Examples

Production-ready code samples for API integration

{
"init_image": [
"https://assets.modelslab.com/generations/17f652cd-daa5-46d2-9cfe-32807c2eee91.jpg",
"https://assets.modelslab.com/generations/0f442b21-a321-4b56-aa8b-5fa2dc1d27b1.jpg",
"https://assets.modelslab.com/generations/eae018b0-37ff-47ac-a389-d445bbdd0e82.",
"https://assets.modelslab.com/generations/dbc23b19-16c0-475e-9ccb-1ca5ce82d881.jpg"
],
"prompt": "A dog from image 1 wearing a cowboy hat from image 2, wearing a t-shirt from image 3, and riding on a skateboard from image 4.",
"width": "1024",
"height": "1024",
"model_id": "flux-2-dev",
"key": "YOUR_API_KEY"
}

SDKs

Official SDKs

Production-ready SDKs and client libraries for all major programming languages

API Parameters

Technical specifications for API request parameters.

Field NameParameterTechnical Description
Init Imageinit_imageAdd your URLs in JPEG, PNG, You can add upto 4 Images
PromptpromptThe text prompt for the type of image you want to generate
WidthwidthWidth of the generated image in pixels. Max: 1024.
HeightheightHeight of the generated image in pixels. Max: 1024.
model_idmodel_idModel to use for generation