---
agent:
  instructions: "Use this search API to find relevant content across this site with keywords or natural-language queries, instead of crawling individual pages. Results are returned in Markdown."
  endpoint: "https://modelslab.com/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://developers.cloudflare.com/ai-search/how-to/search-for-agents/"
title: Flux 3.1 Image Edit API – Pricing & Playground | ModelsLab
description: Flux 3.1 Image Edit API by BFL: edit images with the FLUX 3.1 API on ModelsLab. From $0.0375 per generation. API & playground on ModelsLab.
url: https://modelslab.com/models/bfl/flux-3.1-i2i.md
canonical: https://modelslab.com/models/bfl/flux-3.1-i2i
type: product
component: Playground/Endpoint/Index
generated_at: 2026-12-05T02:09:46.975627Z
---

[![Flux 3.1 Image Edit thumbnail](https://assets.modelslab.ai/api-logos/01KMSWRE3S4D4TNYGY3EB8G5SX.avif)](https://modelslab.com/models/bfl)Flux 3.1 Image Edit
---

[by BFL](https://modelslab.com/models/bfl)Edit images with FLUX 3.1 by Black Forest Labs. Describe the change, combine up to 10 reference images, and place or move objects with bounding boxes. Output up to 4K in fast or quality mode via the ModelsLab API and Playground.

`flux-3.1-i2i`

Closed Source Model [LLMs.txt](https://modelslab.com/models/bfl/flux-3.1-i2i/llms.txt)

[API Playground](/models/bfl/flux-3.1-i2i)API DocumentationVibe CodeRelated ModelsDeveloper SupportModel Specs

Input
---

Images 

Add Images

 orAdd URL

File preview

File preview

Prompt 

The girl in image 1 and the dog in image 2 together in the same frame, in a living room, sofa in the background

Resolution 

Aspect Ratio 

Mode 

Layout 

 Add region

Add a region to add, move or remove an object at an exact position.

Advanced Settings Customize your input with more control.

Quality mode: 1K will cost $0.0375, 1.5K $0.0525, 2K $0.075, 2.5K $0.1624, 3.5K $0.2539 and 4K $0.35 per image

Login to Generate

Output
---

Sample

![Generated Content](https://assets.modelslab.ai/generations/adf119a1-2698-4ec2-a10c-d91deb4f08c7.webp)

Looking for something different?
---

Models that trade off differently against the one you are viewing

### Better quality

Newer flagship models that generally produce stronger results.

![Gemini 2.5 Flash (nano banana) API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/2fda7bb1-ecb1-4ab4-a15b-6f2ad7ba715d.webp)

[Google](/models/google)

 [Gemini 2.5 Flash (nano banana)](/models/google/nano-banana)Closed Source Model

![Nano Banana Pro API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/5ee72f26-dfa9-4d26-a546-7d496ef71be7.webp)

[Google](/models/google)

 [Nano Banana Pro](/models/google/nano-banana-pro?config=nano-banana-pro-image-edit)Closed Source Model

![Seedream 5.0 Lite Image Edit API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/70af0fa2-f20f-4a47-b8c3-71f66f6252a0.webp)

[BytePlus](/models/byteplus)

 [Seedream 5.0 Lite Image Edit](/models/byteplus/seedream-5-lite-i2i)Closed Source Model

![Qwen 2.1 Realtime Image Editing API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/e2efce38-e35b-476a-b06e-569fcfeaeb96.webp)

[ModelsLab](/models/modelslab) Popular

 [Qwen 2.1 Realtime Image Editing](/models/modelslab/qwen-image-2.1)Open Source Model

![Seedream 5.0 Pro Image To Image  API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/04adba18-4012-4a7f-b9c5-8836516c6d4b.webp)

[BytePlus](/models/byteplus)

 [Seedream 5.0 Pro Image To Image](/models/byteplus/seedream-5.0-pro-i2i)Closed Source Model

![GPT-Image-2.5 Sunburst - Image Edit API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/0c77e077-10c8-4df2-94d5-14888d79fa42.webp)

[OpenAI](/models/openai)

 [GPT-Image-2.5 Sunburst - Image Edit](/models/openai/gpt-image-2.5-sunburst-i2i)Closed Source Model

### Faster Generation

Built for speed when you are iterating on a prompt.

![Wan 2.7 Image Edit API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/eb0785a4-e281-44c1-9c1e-7a9c6a07d6e2.webp)

[Alibaba](/models/alibaba_cloud)

 [Wan 2.7 Image Edit](/models/alibaba_cloud/wan-2.7-i2i)

### Lower cost per run

Open-source models we host, unlimited on the $149/month plan.

![Qwen 2.1 Image to Image API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/ce79a8b6-2542-4a03-8c8a-a913ad4bd986.png)

[ModelsLab](/models/modelslab)

 [Qwen 2.1 Image to Image](/models/modelslab/qwen-edit-2.1)Open Source Model

![FLUX 3 Klein Image Editing API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/fe788aab-1042-49b2-a024-b714a528aa41.webp)

[ModelsLab](/models/modelslab)

 [FLUX 3 Klein Image Editing](/models/modelslab/flux-3-klein)Open Source Model

![Fibo-2 Image Editing API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/d581c12a-257f-4b80-97e2-cd118edf824c.png)

[ModelsLab](/models/modelslab)

 [Fibo-2 Image Editing](/models/modelslab/fibo-2)Open Source Model

![Ming-Image 0.2 Image Editing API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/2d5d924c-b8ea-4820-bde1-ea0e45fd3848.png)

[ModelsLab](/models/modelslab)

 [Ming-Image 0.2 Image Editing](/models/modelslab/ming-image-0.2-design)Open Source Model

![Flux 3 Image Edit API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/ad09924a-f521-41aa-bb20-aa8830923038.webp)

[BFL](/models/bfl)

 [Flux 3 Image Edit](/models/bfl/flux-3-image-i2i)Closed Source Model

![Ideogram 4.5 Precise Image Edit API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/d355d5ff-3128-498b-bc58-c6d860e50e7f.webp)

[ModelsLab](/models/ideogram)

 [Ideogram 4.5 Precise Image Edit](/models/modelslab/ideogram-4-5-i2i)Closed Source Model

Related Models
---

Discover similar models you might be interested in

 [View all Image Models](https://modelslab.com/models?feature=imagen)

![Flux API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/b445e176-1565-48ec-b0f4-816bd42e3ce5.webp)

[ModelsLab](/models/modelslab) Popular

 [Flux](/models/modelslab/flux)Open Source Model

![SDXL Headshot API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/9f56a804-6b85-4bbc-92e3-eeb3454c24e0.webp)

[ModelsLab](/models/modelslab)

 [SDXL Headshot](/models/modelslab/sdxl_headshot)Open Source Model

![Ming-Image 0.2 Image Editing API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/2d5d924c-b8ea-4820-bde1-ea0e45fd3848.png)

[ModelsLab](/models/modelslab)

 [Ming-Image 0.2 Image Editing](/models/modelslab/ming-image-0.2-design)Open Source Model

![Ideogram 4.5 Text To Image API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/f61c4859-f5a8-4507-a67b-0c412d6691e2.webp)

[Ideogram](/models/ideogram)

 [Ideogram 4.5 Text To Image](/models/ideogram/ideogram-4-5-t2i)Closed Source Model

![Ultra Resolution API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/3ff3733f-ef3b-4b2c-a939-45c0ed3f9dca.webp)

[ModelsLab](/models/modelslab)

 [Ultra Resolution](/models/modelslab/ultra_resolution)Open Source Model

![Qwen Image 2.0 Pro Text To Image API](https://images.modelslab.sh/?Image=https://assets.modelslab.ai/generations/816d5dd6-dc85-4968-b31a-22127a65971d.webp)

[Alibaba Cloud](/models/alibaba_cloud)

 [Qwen Image 2.0 Pro Text To Image](/models/alibaba_cloud/qwen-image-2.0-pro-t2i)Closed Source Model

View all 17 related models

About Flux 3.1 Image Edit
---

Flux 3.1 Image Edit is a text to image AI model by BFL, available on ModelsLab through the API and the playground above. API access comes with Open Source Unlimited at $149/month, and open-source models are unlimited on the $149/month plan.

### Flux 3.1 Image Edit facts

ProviderBFL

PriceFrom $0.0375 per generation

Added to ModelsLabDecember 4, 2026

Model IDflux-3.1-i2i

### Key Features

- High-resolution AI image generation from text prompts
- Negative prompt support for precise control
- Multiple output formats and aspect ratios
- Adjustable inference steps and guidance scale
- Batch generation support via API

### Quick Start

Integrate Flux 3.1 Image Edit into your application with a single API call. Get your API key from the [pricing page](https://modelslab.com/pricing) to get started.

PythonJavaScriptcURLPHP

```
<div>import requests</div>
<div>import json</div>
<div>
</div>
<div>url = "https://modelslab.com/api/v7/images/image-to-image"</div>
<div>
</div>
<div>headers = {</div>
<div>    "Content-Type": "application/json"</div>
<div>}</div>
<div>
</div>
<div>data = {</div>
<div>        "model_id": "flux-3.1-i2i",</div>
<div>        "prompt": "The girl in image 1 and the dog in image 2 together in the same frame, in a living room, sofa in the background",</div>
<div>        "key": "YOUR_API_KEY"</div>
<div>    }</div>
<div>
</div>
<div>try:</div>
<div>    response = requests.post(url, headers=headers, json=data)</div>
<div>    response.raise_for_status()  # Raises an HTTPError for bad responses (4XX or 5XX)</div>
<div>    result = response.json()</div>
<div>    print("API Response:")</div>
<div>    print(json.dumps(result, indent=2))</div>
<div>except requests.exceptions.HTTPError as http_err:</div>
<div>    print(f"HTTP error occurred: {http_err} - {response.text}")</div>
<div>except Exception as err:</div>
<div>    print(f"Other error occurred: {err}")</div>
```

const requestBody = {

 "model_id": "flux-3.1-i2i",

 "prompt": "The girl in image 1 and the dog in image 2 together in the same frame, in a living room, sofa in the background",

 "key": "YOUR_API_KEY"

 };

async function makeApiRequest() {

 try {

 const response = await fetch(endpointUrl, {

 method: 'POST',

 headers: {

 'Content-Type': 'application/json',

 },

 body: JSON.stringify(requestBody)

 });

 if (!response.ok) {

 let errorResult;

 try {

 errorResult = await response.json();

 } catch (e) {

 errorResult = { error: { message: await response.text() } };

 }

 throw new Error(`API Error (${response.status}): ${errorResult.error?.message || response.statusText || 'Unknown error'}`);

 }

 const result = await response.json();

 console.log('API Response:', result);

 return result;

 } catch (error) {

 console.error('Error making API request:', error.message);

 throw error;

 }

}

makeApiRequest();

 -H "Content-Type: application/json" \

 -d '{

 "model_id": "flux-3.1-i2i",

 "prompt": "The girl in image 1 and the dog in image 2 together in the same frame, in a living room, sofa in the background",

 "key": "YOUR_API_KEY"

}'

$url = 'https://modelslab.com/api/v7/images/image-to-image';

$headers = [

 'Content-Type: application/json'

];

$data = [

 'model_id' => 'flux-3.1-i2i',

 'prompt' => 'The girl in image 1 and the dog in image 2 together in the same frame, in a living room, sofa in the background',

 'key' => 'YOUR_API_KEY',

];

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, $url);

curl_setopt($ch, CURLOPT_POST, true);

curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));

curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);

curl_setopt($ch, CURLOPT_TIMEOUT, 30);

$response = curl_exec($ch);

$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);

$curlError = curl_error($ch);

if ($curlError) {

 echo 'Curl error: ' . $curlError;

} else {

 echo "HTTP Status Code: " . $httpCode . "\n";

 $result = json_decode($response, true);

 if (json_last_error() !== JSON_ERROR_NONE) {

 echo "Error decoding JSON: " . json_last_error_msg() . "\n";

 echo "Raw response: " . $response . "\n";

 } else {

 echo "API Response:\n";

 print_r($result);

 }

}

?>

### Pricing

Flux 3.1 Image Edit API costs $0.037 per generation, scaled by your settings. Open Source Unlimited is $149/month, and open-source models are unlimited on the $149/month plan. [View pricing plans](https://modelslab.com/pricing)

### Use Cases

- Product photography and e-commerce visuals
- Marketing and social media content creation
- Concept art and design prototyping
- Custom illustrations and artwork

### More from BFL

- [Flux Kontext Pro API](/models/bfl/flux-kontext-pro)
- [Flux 2 Pro Text To Image API](/models/bfl/flux-2-pro)
- [Flux 2 Max Image Editing API](/models/bfl/flux-2-max)
- [Flux Pro 1.1 Ultra Text To Image API](/models/bfl/flux-pro-1.1-ultra)
- [Flux 3 Text To Image API](/models/bfl/flux-3-image-t2i)
- [Flux Pro 1.1 Text To Image API](/models/bfl/flux-pro-1.1)

[All BFL models](/models/bfl)

[Flux API](/flux-api) [Browse Image Models](https://modelslab.com/models?feature=imagen) [View Pricing](https://modelslab.com/pricing)

Flux 3.1 Image Edit FAQ
---

### What is Flux 3.1 Image Edit?

Flux 3.1 Image Edit is a text to image AI model by BFL, available on ModelsLab through the API and the playground above.

### How do I use the Flux 3.1 Image Edit API?

You can integrate Flux 3.1 Image Edit into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "flux-3.1-i2i" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### How much does Flux 3.1 Image Edit cost?

Flux 3.1 Image Edit costs from $0.0375 per generation. The Open Source Unlimited plan is $149/month and includes unlimited generation on open-source models.

### What is the Flux 3.1 Image Edit model ID?

The model ID for Flux 3.1 Image Edit is "flux-3.1-i2i". Use this ID in your API requests to specify this model.

### Do I need a paid plan to use Flux 3.1 Image Edit?

Yes. ModelsLab is subscription-based with no free tier. The $149/month Open Source Unlimited plan includes unlimited generation across open-source models; premium third-party models are billed per call from your wallet.

---

*This markdown version is optimized for AI agents and LLMs.*

**Links:**
- [Website](https://modelslab.com)
- [API Documentation](https://docs.modelslab.com)
- [Blog](https://modelslab.com/blog)

---
*Generated by ModelsLab - 2026-12-05*