Flux 2 Models (2026): Pro vs Flex, Pricing and API Code
Unicorn API Team · · 11 min read
The Flux 2 models are Black Forest Labs’ second-generation image generators, released in late November 2025. They split into hosted tiers (Pro, Flex, Max) and downloadable open weights (Dev, Klein). Picking the right one is mostly a question of three things: how much detail you need, whether you are generating or editing, and whether you want to run a GPU yourself. This guide covers each member of the family, what every image costs, complete API code, and the mistakes that waste credits.
What are the Flux 2 models?
Flux is a family of text-to-image models. A text-to-image model takes a written description, called a prompt, and produces a matching picture. Like most modern image generators, Flux is built on diffusion: the model starts from random noise and removes it step by step until an image matching the prompt remains. Many Flux 2 models also do image-to-image work, which means you hand them an existing picture plus instructions and get back an edited or restyled version.
The second generation focused on photorealism, believable lighting, stronger prompt following and multi-reference input. A reference image is a picture you supply so the model can copy a product, a face or a style into a new composition, instead of guessing from text alone. Output goes up to about 4 megapixels on the largest settings.
Here is the Flux 2 models list as most people encounter it:
- Flux 2 Pro: the general-purpose hosted model. Photoreal detail, strong prompt following, 1K or 2K output and up to 8 reference images. This is the one most production pipelines start with.
- Flux 2 Flex: the precision tier, positioned for fine detail, legible typography and production editing. It comes as a text-to-image version and an image-to-image (edit) version.
- Flux 2 Max: the top hosted tier on Black Forest Labs’ own platform, aimed at the highest-quality finals.
- Flux 2 Dev: a large open-weights checkpoint you can download, run in ComfyUI or Diffusers, and fine-tune.
- Flux 2 Klein: a compact open-weights model built to run on more modest hardware. The 9B version is what people mean when they search “Flux 2 Klein 9B”.
“1K” and “2K” describe output size: roughly one thousand or two thousand pixels along the long edge, depending on the aspect ratio you choose. 2K is what you want for print, hero banners and anything that will be cropped. 1K is fine for social posts, thumbnails and drafts.
On Unicorn API you can call three of the Flux 2 models today: Flux 2 Pro, Flux 2 Flex Text To Image and Flux 2 Flex Image To Image, all with the same API key and the same credit balance as every other image, video, audio and chat model in the model catalog.
Flux 2 Pro vs Flex: which one should you use?
Pro and Flex look similar on paper, since both produce photoreal images at 1K or 2K. The difference is what they are tuned for and what they cost. Pro is the fast default. Flex trades speed and price for control over small things: lettering on packaging, thin lines, fabric texture, the exact pixels you asked it to keep during an edit.
| Flux 2 Pro | Flux 2 Flex Text To Image | Flux 2 Flex Image To Image | |
|---|---|---|---|
| Main job | General generation, consistent subjects | Detail-heavy and typography-heavy generation | Editing existing images |
| Image inputs | Up to 8 reference images (ref_images) | None | Source images (input_urls) |
| Resolutions | 1K, 2K | 1K, 2K | 1K, 2K |
| Aspect ratios | 16:9, 1:1, 9:16, 21:9, 4:3 | Set via aspect_ratio | Set via aspect_ratio |
| Several images per request | Yes, field n | No, one per request | No, one per request |
| Safety filter toggle | No | nsfw_checker | nsfw_checker |
| Price on Unicorn API | 5 credits (1K), 7 (2K) | 14 credits (1K), 24 (2K) | 14 credits (1K), 24 (2K) |
A simple rule works for most teams: start every job on Pro. Move a job to Flex only when Pro keeps missing something specific, such as a misspelled word on a label or a logo edge that goes soft. Flex costs about 3x as much at 1K, so it should earn its place.
When Pro is the right call
- You need many variations quickly, for A/B tests, mood boards or catalog fill.
- You want the same product or character across scenes. The 8 reference slots are the feature that matters here.
- Text in the image is short or absent.
When Flex is worth the extra credits
- The image carries real typography: packaging, posters, signage, UI mockups.
- You are editing a photo you already own and want everything outside the change left alone.
- The image is a final deliverable at 2K and small defects will be visible.

What do Flux 2 models cost per image?
Unicorn API prices everything in credits. Monthly plans give credits at $0.01 each: Starter is $25, Creator $50, Studio $100 and Pro $200 per month. Top-up credits cost $0.015 each and never expire, which suits bursty projects. Prices for all three hosted Flux 2 models are per output image, rounded up to whole credits.
| Model and resolution | Credits per image | Cost on a plan | Cost with top-ups | Images from Starter ($25) |
|---|---|---|---|---|
| Flux 2 Pro, 1K | 5 | $0.05 | $0.075 | 500 |
| Flux 2 Pro, 2K | 7 | $0.07 | $0.105 | 357 |
| Flux 2 Flex (either version), 1K | 14 | $0.14 | $0.21 | 178 |
| Flux 2 Flex (either version), 2K | 24 | $0.24 | $0.36 | 104 |
Two details catch people out. First, Pro’s price is multiplied by n: asking for four 2K images in one request costs 28 credits. Second, if you leave resolution unset on Pro, it is billed at the 2K rate of 7 credits, so set "resolution": "1K" explicitly when drafts are all you need. Flex defaults to the 1K price when the resolution is anything other than 2K.
You never have to guess. Send the same model and input to POST /v1/models/price and you get the exact credit cost before anything runs. The request format is in the API documentation, and the pricing page shows current plans.
How to run Flux 2 Pro and Flex through an API
Media models on Unicorn API run as jobs. You submit a job with POST /v1/jobs, then poll GET /v1/jobs/{id} until its status is "succeeded", and read the image URL from outputs[0].url. The flow is identical for all the Flux 2 models; only the model id and input fields change.
Create a key on the API keys page and export it as UNICORN_API_KEY. If you want to compare prompts by eye first, the image playground runs the same models in the browser.
Submit a job with curl
curl -X POST https://api.unicornapi.net/v1/jobs \
-H "Authorization: Bearer $UNICORN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "flux-2-pro",
"input": {
"prompt": "A red fox resting in a snowy forest at dawn, soft light, highly detailed",
"resolution": "2K",
"aspect_ratio": "16:9"
}
}'
The response contains the job id. Poll it with GET https://api.unicornapi.net/v1/jobs/{id} using the same header.
A complete Python helper
This script submits a job, polls until it finishes and returns every output URL. It works for Pro and both Flex models.
import os
import time
import requests
API = "https://api.unicornapi.net"
HEADERS = {"Authorization": f"Bearer {os.environ['UNICORN_API_KEY']}"}
def run_job(model, input_data, poll_seconds=2, timeout_seconds=300):
resp = requests.post(
f"{API}/v1/jobs",
headers=HEADERS,
json={"model": model, "input": input_data},
timeout=30,
)
resp.raise_for_status()
job = resp.json()
deadline = time.time() + timeout_seconds
while job["status"] != "succeeded":
if job["status"] == "failed":
raise RuntimeError(f"Job {job['id']} failed: {job}")
if time.time() > deadline:
raise TimeoutError(f"Job {job['id']} still {job['status']}")
time.sleep(poll_seconds)
resp = requests.get(f"{API}/v1/jobs/{job['id']}", headers=HEADERS, timeout=30)
resp.raise_for_status()
job = resp.json()
return [output["url"] for output in job["outputs"]]
# Flux 2 Pro: four 1K drafts in one request (4 x 5 = 20 credits)
drafts = run_job("flux-2-pro", {
"prompt": "A red fox resting in a snowy forest at dawn, soft light, highly detailed",
"resolution": "1K",
"aspect_ratio": "4:3",
"n": 4,
})
print("Pro drafts:", drafts)
# Flux 2 Flex Text To Image: one 2K final with typography (24 credits)
final = run_job("flux-2-flex-text-to-image", {
"prompt": "Minimal poster of a red fox in snow, the words WINTER TRAILS in clean serif type at the top",
"resolution": "2K",
"aspect_ratio": "1:1",
})
print("Flex final:", final[0])
If you work inside Cursor, Claude Code or another coding agent, you can skip the helper and let the agent call these models directly over MCP; setup is on the agents page.
Worked example: one product photo, a full campaign set
Here is a realistic job that shows how the Flux 2 models divide the work. You sell a glass water bottle. You have one clean studio photo on white. You need six lifestyle images for a launch and one hero banner where the label text must be perfect.
Step 1: generate lifestyle scenes with Pro and reference images
Pass the studio photo (and, if you have them, a back view and a close-up of the label) as reference images, so Pro keeps the bottle’s shape and colour while changing everything around it.
scenes = run_job("flux-2-pro", {
"prompt": "The glass water bottle from the reference images on a wooden cafe table "
"next to a laptop, morning window light, shallow depth of field, photoreal",
"ref_images": [
"https://example.com/bottle-front.png",
"https://example.com/bottle-back.png",
"https://example.com/bottle-label.png"
],
"resolution": "1K",
"aspect_ratio": "4:3",
"n": 3,
})
Run that twice with two different settings (a cafe and a hiking trail, say) and you have six 1K candidates for 30 credits, or $0.30 on a plan. Pick the best two and rerun them at 2K for another 14 credits.
Step 2: fix the hero image with Flex Image To Image
The banner is where small text matters. Take the strongest Pro result and send it to Flex Image To Image with a narrow instruction:
hero = run_job("flux-2-flex-image-to-image", {
"prompt": "Keep the scene unchanged. Make the bottle label read AQUA CLEAR in crisp "
"white sans-serif letters, sharp edges, no other changes",
"input_urls": ["https://example.com/best-pro-scene.png"],
"resolution": "2K",
"aspect_ratio": "16:9",
})
That costs 24 credits. The total for the whole set: 30 for drafts, 14 for two 2K Pro finals, 24 for the Flex hero, so 68 credits, which is $0.68 on a monthly plan. Doing every step on Flex would have cost several times more for no visible gain on the lifestyle shots. That is the pattern worth copying: volume on Pro, precision on Flex, and only where the eye will land.
Flux 2 Dev, Klein and downloading the open weights
A big reason people search “Flux 2 models download” is that part of the family is open. Flux 2 Dev and Flux 2 Klein publish their weights, the trained numbers that make up the model, so you can run them on your own GPU, load them into ComfyUI or Diffusers, and fine-tune them with LoRAs. A LoRA is a small add-on file trained on your own images that teaches the base model a style, product or person without retraining the whole thing.
Dev is the large checkpoint: closest in quality to the hosted tiers, but it needs a serious GPU with plenty of memory. Klein is the compact option for consumer cards and faster local iteration, with some loss of detail compared with Dev and Pro. Both come with licences that set rules on commercial use, so read them before shipping images from either in a paid product.
Pro, Flex and Max have no downloadable weights. You reach them only through an API.
Self-hosting vs calling an API
| Factor | Self-host Dev or Klein | Call Pro or Flex via API |
|---|---|---|
| Upfront work | GPU, drivers, model files, a serving stack | An API key |
| Custom styles | Full fine-tuning and LoRA control | Reference images and prompts |
| Cost shape | Fixed hardware cost, cheap at high steady volume | Pay per image, zero when idle |
| Quality ceiling | Below the hosted Pro and Flex tiers | The hosted tiers |
| Licensing | Check each checkpoint’s licence | Covered by the API terms |
Many teams do both: prototype a custom style on Dev locally, then serve production traffic from Pro, where reference images often get close enough to a LoRA’s consistency without any training.
How Flux 2 compares with GPT Image and Nano Banana
The Flux 2 models are not the only strong option, and because Unicorn API uses one key for everything, switching is a one-line change to the model field. Here is how the hosted Flux 2 tiers sit next to the other image models in the catalog.
| Model | Credits per image | Max resolution | Reference images | Stands out for |
|---|---|---|---|---|
| Flux 2 Pro | 5 (1K), 7 (2K) | 2K | Up to 8 | Photoreal detail at a low price |
| Flux 2 Flex | 14 (1K), 24 (2K) | 2K | Input images for edits | Fine detail, typography, edits |
| Nano Banana 2 Lite | 4 | 1K | Up to 10 | Cheapest fast images and edits |
| GPT Image 1.5 | 3 (low), 4 (medium), 22 (high) | Not specified by resolution | Up to 4 | Legible text, transparent backgrounds |
| GPT Image 2.5 Flare | 6 (1K), 10 (2K), 16 (4K) | 4K | Up to 16 | Fast everyday work at up to 4K |
| GPT Image 2.5 Sunburst | 6 (1K), 10 (2K), 16 (4K) | 4K | Up to 16 | Polished output, tighter control, slower |
Some practical takeaways:
- For photoreal volume at 2K, Flux 2 Pro at 7 credits is cheaper than the GPT Image 2.5 variants at 10.
- For 4K output, the GPT Image 2.5 models are the option here; the hosted Flux 2 tiers stop at 2K.
- For a transparent background (a cut-out logo or sticker), GPT Image 1.5 has a
backgroundoption that Flux 2 does not. - For the lowest cost per draft, Nano Banana 2 Lite at 4 credits or GPT Image 1.5 on low quality at 3 credits beat Flux 2 Pro.
- For heavy typography, test Flux 2 Flex against GPT Image 2.5 Sunburst on your real prompts. Both target this job, and the cheaper winner depends on the image.
The honest answer to “which is best” is to run the same five prompts through two or three models and look. At these prices, a comparison round costs well under a dollar.
Common mistakes with Flux 2 models
- Using Flex for everything. Flex is about 3x the price of Pro at 1K. Most lifestyle, food and landscape images look the same on both. Save Flex for text, fine detail and edits.
- Forgetting to set resolution on Pro. An unset resolution bills at the 2K rate. Drafts should say
"resolution": "1K". - Underestimating
n.n: 8at 2K is 56 credits in one call. Check the price endpoint before batch jobs. - Weak reference images. Busy backgrounds, harsh shadows and partial crops in your references leak into every output. Clean, evenly lit shots from two or three angles work better than eight messy ones.
- Vague edit prompts. With Flex Image To Image, say what must stay the same as well as what changes (“keep the scene unchanged, only replace the label text”). Otherwise the model may “improve” parts you liked.
- Prompt stuffing. Flux 2 follows plain, specific sentences well. A long list of style keywords copied from older models tends to muddy results rather than sharpen them.
- Assuming an open checkpoint is free for commercial use. Dev and Klein have licences. Read them before shipping.
- Polling too fast. Checking the job every few hundred milliseconds wastes requests. Every couple of seconds is plenty for image jobs.
Get those right and the Flux 2 models give you predictable, photoreal images at a price you can calculate before you press run. Start with Pro, reach for Flex when the detail demands it, and keep the open weights for the custom-style work only self-hosting can do.
Frequently asked questions
What are the Flux 2 models?
Flux 2 is the second generation of image models from Black Forest Labs, released in late November 2025. The family includes Pro (fast, photoreal, up to 8 reference images), Flex (finer detail and typography, with text-to-image and image-to-image versions), Max (the top hosted tier), and the open-weights Dev and Klein checkpoints you can download and run on your own GPUs.
What is the difference between Flux 2 Pro and Flux 2 Flex?
Pro is the general-purpose workhorse: quick, photoreal, strong prompt following, batching with the n field and up to 8 reference images. Flex is tuned for fine detail, legible typography and controlled edits, with a dedicated image-to-image endpoint. On Unicorn API, Pro costs 5 credits at 1K and 7 at 2K, while Flex costs 14 and 24, so Flex is worth it only when Pro misses the detail.
Can I download the Flux 2 models?
Only some of them. Flux 2 Dev and Flux 2 Klein are published as open weights, so you can download and run them locally or in ComfyUI, subject to their licences. Pro, Flex and Max are hosted-only: you reach them through an API. Check the licence of any open checkpoint before using its output in a commercial product.
Is Flux 2 Klein available on Unicorn API?
Not at the moment. Unicorn API currently serves Flux 2 Pro, Flux 2 Flex Text To Image and Flux 2 Flex Image To Image. Klein is a compact open-weights model aimed at local hardware. If you want a cheap, fast hosted option today, Nano Banana 2 Lite at 4 credits per image or Flux 2 Pro at 5 credits per 1K image fill that role. The model catalog lists current options.
How much does Flux 2 Pro cost per image?
On Unicorn API, Flux 2 Pro costs 5 credits per image at 1K and 7 credits at 2K, multiplied by n when you request several images. On a monthly plan credits are $0.01 each, so that is $0.05 or $0.07 per image. Top-up credits cost $0.015 each and never expire. You can get the exact price before running any request.
Can Flux 2 edit existing images?
Yes. Flux 2 Flex Image To Image takes one or more input image URLs plus a prompt and returns an edited version, which suits retouching, restyling and text changes. Flux 2 Pro also accepts up to 8 reference images through ref_images, which is better for keeping a product, character or style consistent across new compositions rather than editing a single image.