> ## Documentation Index
> Fetch the complete documentation index at: https://docs.laozhang.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# FLUX.2 and Kontext retired: move to FLUX 3

> flux-2-pro, flux-2-flex, flux-2-max, flux-kontext-pro and flux-kontext-max now return 404. Switch to FLUX 3 on the same endpoint from $0.048 per 1K image.

On December 3, 2026, LaoZhang API retired the three FLUX.2 models and, later that day, the two FLUX.1 Kontext models. Move to FLUX 3, launched the same day: the endpoint, API key, and JSON request stay the same. Pick the new model name below and send an aspect ratio instead of width and height.

* **Published**: December 3, 2026
* **Last checked**: December 3, 2026
* **Updated**: later on December 3, 2026, to add the retirement of the two FLUX.1 Kontext models
* **Status**: Retired; replaced by FLUX 3. LaoZhang API no longer offers any FLUX.1 or FLUX.2 model, only the eight `flux-3-image*` models

## Which model to use instead

| Old model | New model | Price per image |
| - | - | - |
| `flux-2-pro` | `flux-3-image` (1K) | \$0.048 |
| `flux-2-flex` | `flux-3-image` (1K) or `flux-3-image-2k` | \$0.048 or \$0.10 |
| `flux-2-max` | `flux-3-image-2k` or `flux-3-image-4k` | \$0.10 or \$0.607 |
| `flux-kontext-pro` | `flux-3-image` (1K) | \$0.048 |
| `flux-kontext-max` | `flux-3-image` (1K), or `flux-3-image-2k` for higher resolution | \$0.048 or \$0.10 |

* If your FLUX.2 output was about 1 MP (for example 1024×1024), use 1K; for about 4 MP (for example 2048×2048), use 2K.
* For batch jobs, drafts, and fast, low-cost edits, `flux-3-image-klein` costs \$0.009 per 1K image and returns in about 10 seconds.
* Kontext already used `aspect_ratio`, so changing the model name is enough. For edits, send the source image as `input_image` (or several in `images`) and the instruction as `prompt`.
* Edits cost the same as generations, and reference images are free. All eight FLUX 3 model IDs and prices are in the [FLUX 3 API guide](https://docs.laozhang.ai/en/api-capabilities/flux-3-image.md#models-and-prices).

## Key facts

| Item | Details |
| - | - |
| Retired models | `flux-2-pro`, `flux-2-flex`, `flux-2-max`; `flux-kontext-pro`, `flux-kontext-max` (later the same day) |
| Retired on | December 3, 2026 |
| What you see | HTTP 404; the error names the replacement and its price, and the call isn't billed |
| Replacement | FLUX 3: `flux-3-image`, `flux-3-image-klein`, and their `-1.5k`, `-2k`, `-4k` versions |
| Endpoint | Unchanged: `POST /v1/images/generations` with a JSON body |
| Not affected | FLUX 3 and other image models |

## Who is affected

| Scope | Details |
| - | - |
| Affected | Generation and edit requests with `model` set to one of the three FLUX.2 IDs or to FLUX.1 Kontext (`flux-kontext-pro`, `flux-kontext-max`) |
| Not affected | FLUX 3 and other image models |

## How to migrate

**1. Change the model name**

Set `model` to the FLUX 3 ID from the table. The model name sets the resolution, so you don't need `resolution`.

**2. Replace pixel sizes with an aspect ratio**

* Drop `width` and `height` and send `aspect_ratio` instead; 1792×1024, for example, becomes `"aspect_ratio": "16:9"`
* `size` accepts only `1024x1024`, `1536x1024`, and `1024x1536`; any other size returns 400

**3. Keep your reference images**

`prompt` and `input_image` work as before. For several references, put them in the `images` array, up to 10.

**4. Check the result and the charge**

Result URLs expire after about an hour, so download each image right away. After switching, confirm the model name and charge in your [call logs](https://api.laozhang.ai/log).

Before (retired, returns 404):

```bash theme={null}
curl --fail-with-body "https://api.laozhang.ai/v1/images/generations" \
  -H "Authorization: Bearer $LAOZHANG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "flux-2-pro",
    "prompt": "A ruby red retro robot riding a yellow skateboard in front of a turquoise glass greenhouse, clean product illustration style",
    "width": 1792,
    "height": 1024
  }'
```

After:

```bash theme={null}
export LAOZHANG_API_KEY="YOUR_LAOZHANG_API_KEY"

curl --fail-with-body --max-time 300 "https://api.laozhang.ai/v1/images/generations" \
  -H "Authorization: Bearer $LAOZHANG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "flux-3-image",
    "prompt": "A ruby red retro robot riding a yellow skateboard in front of a turquoise glass greenhouse, clean product illustration style",
    "aspect_ratio": "16:9"
  }' \
  -o flux3-generation.json
```

On success, `data[0].url` points to a 1360×768 image. A 1K FLUX 3 Image generation takes about 25–32 seconds, so give the client a timeout of about 300 seconds. The save script, edits, and multi-image composition are in the [FLUX 3 API guide](https://docs.laozhang.ai/en/api-capabilities/flux-3-image.md).

## FAQ

### What does a call to flux-2-pro return now?

HTTP 404. The call isn't billed and isn't routed to another model. For `flux-2-pro` the error reads:

```text theme={null}
The model flux-2-pro has been retired and is no longer available. Switch to flux-3-image ($0.048, 1K) on the same endpoint. FLUX 3 takes the resolution from the model name and aspect_ratio instead of width/height; prompt and input_image work as before.
```

`flux-2-flex` and `flux-2-max` return the same message with the replacements from the table.

### Can I still use flux-kontext-pro and flux-kontext-max?

No. Both were still available when this page was first published, but later on December 3 the two FLUX.1 Kontext models were retired as well. Calls return HTTP 404 and aren't billed. The error reads as follows (`flux-kontext-max` differs only in the model name):

```text theme={null}
The model flux-kontext-pro has been retired and is no longer available. Switch to flux-3-image ($0.048, 1K) on the same endpoint: send the source image as input_image (or images, up to 10) with your edit instruction as prompt; set aspect_ratio instead of width/height.
```

To switch:

* Set `model` to `flux-3-image` (1K, \$0.048); use `flux-3-image-2k` (\$0.10) for higher resolution or `flux-3-image-klein` (\$0.009) for fast, low-cost edits
* Send the source image as `input_image` (or up to 10 in `images`) and the edit instruction as `prompt`
* Keep sending `aspect_ratio`

The original Kontext request format stays in [legacy FLUX Kontext compatibility](https://docs.laozhang.ai/en/api-capabilities/flux-image-generation.md#legacy-compatibility-flux-kontext) for reference.

### What do I change in my code?

Usually three things:

* Set `model` to a FLUX 3 name that includes the resolution tier
* Replace `width` and `height` with `aspect_ratio`
* Put multiple reference images in the `images` array

The endpoint, API key, `prompt`, and `input_image` stay the same. You still download the result from `data[0].url`, which now stays valid for about an hour instead of about 10 minutes.

### What happens if I still send width and height?

FLUX 3 doesn't accept them: the request returns 400 with a hint to use `aspect_ratio`, and it isn't billed.

`size` accepts only `1024x1024`, `1536x1024`, or `1024x1536`.

### Why was FLUX.2 retired?

FLUX.2 and the older FLUX.1 Kontext have been replaced by FLUX 3, the newer generation, which runs on the same endpoint and supports up to 4K output and up to 10 reference images.

### Will FLUX.2 come back?

There's no plan to bring back FLUX.2 or FLUX.1 Kontext. If that changes, this page and the [announcement index](https://docs.laozhang.ai/en/changelog.md) will be updated.

## Sources and related docs

* **LaoZhang API**: the retired status and error text are based on live calls on December 3, 2026; current models and prices are in the [model catalog](https://docs.laozhang.ai/en/models.md)
* **Related docs**: [FLUX 3 API guide](https://docs.laozhang.ai/en/api-capabilities/flux-3-image.md), [FLUX 3 launch announcement](https://docs.laozhang.ai/en/announcements/flux-3-image-2026-12.md), [FLUX.2 API: image generation](https://docs.laozhang.ai/en/api-capabilities/flux-image-generation.md), [Retired models and replacements](https://docs.laozhang.ai/en/models/retired.md)
* **Black Forest Labs**: [FLUX pricing](https://bfl.ai/pricing)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.