Skip to main content
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

  • 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.

Key facts

Who is affected

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.
Before (retired, returns 404):
After:
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.

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:
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):
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 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 will be updated.