# Flux 2 Max Image Editing > Production-grade **image editing** AI with **up to 4MP** output, multi-reference support, precise prompt adherence, and photorealistic detail for e-commerce, marketing, and pro workflows. (128 characters)[1][2][5] ## Overview - **Model ID**: `flux-2-max` - **Category**: image - **Provider**: bfl - **Status**: model_ready - **Screenshot**: `https://assets.modelslab.com/generations/446dca1b-8566-43e2-9316-ab700b7ebf15.png` ## API Information This model can be used via our HTTP API. See the API documentation and usage examples below. ### Endpoint - **URL**: `https://modelslab.com/api/v7/images/image-to-image` - **Method**: POST ### Parameters - **`init_image`** (required): Add your URLs in JPEG, PNG, You can add upto 10 Images - Type: array - **`prompt`** (required): The text prompt for the type of image you want to generate - Type: textarea - **`model_id`** (optional): Model ID - Type: text - **`height`** (required): Enter the height for the image you want to generate - Type: number (range: 512-2048) - **`width`** (optional): select the width for the image you want to generate - Type: number (range: 512-2048) ## Usage Examples ### cURL ```bash curl --request POST \ --url https://modelslab.com/api/v7/images/image-to-image \ --header "Content-Type: application/json" \ --data '{ "key": "YOUR_API_KEY", "model_id": "flux-2-max", "prompt": "Match a pose from a reference image", "height": "1024", "width": "1024" }' ``` ### Python ```python import requests response = requests.post( "https://modelslab.com/api/v7/images/image-to-image", headers={ "Content-Type": "application/json" }, json={ "key": "YOUR_API_KEY", "model_id": "flux-2-max", "prompt": "Match a pose from a reference image", "height": "1024", "width": "1024" } ) print(response.json()) ``` ### JavaScript ```javascript fetch("https://modelslab.com/api/v7/images/image-to-image", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ "key": "YOUR_API_KEY", "model_id": "flux-2-max", "prompt": "Match a pose from a reference image", "height": "1024", "width": "1024" }) }) .then(response => response.json()) .then(data => console.log(data)); ``` ## Links - [Model Playground](https://modelslab.com/models/flux2-max/flux-2-max) - [API Documentation](https://docs.modelslab.com) - [ModelsLab Platform](https://modelslab.com)