FLUX 2 Pro API
FLUX 2 Pro is the photoreal workhorse of the Flux family. On OpenLux it is metered at $0.021 per request, on the same key and the same OpenAI-compatible endpoint you already use for every other model.
Pay-as-you-go rate
$0.021 / request
Billed in USD, metered per request with real-time cost in the console.
Access
One OpenLux key and the OpenAI-compatible endpoint: set base_url to https://openlux.lol/v1 and pass flux-2-pro as the model.
Get started
Create a key in the console, then follow the five-minute docs for streaming, tools and error codes.
What FLUX 2 Pro delivers
FLUX 2 Pro targets images that have to look real: product photography, campaign visuals, architectural renders and material studies where lighting and texture carry the shot. It accepts reference images as well as text prompts, so an existing photo can be edited, extended or restyled instead of regenerated from nothing.
Because it runs behind the OpenLux endpoint, adopting FLUX 2 Pro is a model-field change rather than a pipeline rewrite. Teams already sending prompts to other image models in the catalogue can run the same prompt across FLUX 2 Pro, gpt-image-2-c and the Gemini image tiers, then keep whichever output wins on their own traffic.
At $0.021 per request it sits between the Gemini 3.1 Flash image tier ($0.0122) and the Gemini 3 Pro image preview ($0.0243). There is no volume commitment and no seat licence: every request is metered and its cost appears in the console as it happens.
Call FLUX 2 Pro in minutes
Every OpenLux model speaks the OpenAI protocol. Reuse your existing SDKs and replace two values: the base URL and the API key.
cURL
curl https://openlux.lol/v1/chat/completions \
-H "Authorization: Bearer $OPENLUX_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "flux-2-pro",
"messages": [{"role": "user", "content": "A photoreal studio shot of a matte ceramic bottle on a warm white background, soft side light, subtle shadow."}]
}'Python (OpenAI SDK)
from openai import OpenAI
client = OpenAI(
api_key="sk-openlux-...",
base_url="https://openlux.lol/v1",
)
resp = client.chat.completions.create(
model="flux-2-pro",
messages=[{"role": "user", "content": "A photoreal studio shot of a matte ceramic bottle on a warm white background, soft side light, subtle shadow."}],
)
print(resp.choices[0].message.content)Node.js (OpenAI SDK)
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.OPENLUX_API_KEY,
baseURL: "https://openlux.lol/v1",
});
const resp = await client.chat.completions.create({
model: "flux-2-pro",
messages: [{ role: "user", content: "A photoreal studio shot of a matte ceramic bottle on a warm white background, soft side light, subtle shadow." }],
});
console.log(resp.choices[0].message.content);Where FLUX 2 Pro fits
Photoreal rendering
Strong material and lighting fidelity for product shots, packshots and editorial visuals that need to pass as real photography.
Image editing
Pass a reference image with your prompt to edit, extend or restyle it instead of generating from scratch.
Prompt adherence
Holds composition, camera angle and props from a detailed prompt, which keeps batch output visually consistent.
One-call billing
Every generation is a single metered request at $0.021, so image cost stays predictable per asset in the console.
E-commerce imagery
Generate and edit product photos, lifestyle scenes and background variations at a cost per asset that works for large catalogues.
Marketing creative
Produce campaign key visuals and ad variants in the same pipeline that already talks to the OpenLux API.
Design iteration
Use reference images to keep a brand look consistent while exploring composition, colour and lighting options quickly.
How flux-2-pro is priced on OpenLux
FLUX 2 Pro is metered pay as you go at $0.021 / request. There is no subscription requirement for API access: top up a balance, call the model, and see the cost of every request in the console.
| Model | Provider | Rate | Discount |
|---|---|---|---|
| flux-2-pro (this model) | Flux | $0.021 / request | — |
| gemini-3-pro-image-preview | $0.0243 / request | -91% | |
| gpt-image-2-c | OpenAI | $0.00882 / request | -93% |
| gemini-3.1-flash-image-preview | $0.0122 / request | -92% |
Rates follow official provider pricing and are shown in USD. See the full model catalogue and pricing plans for credit allowances.
FLUX 2 Pro questions
How much does FLUX 2 Pro cost on OpenLux?
The pay-as-you-go rate is $0.021 per request. There is no subscription and no minimum spend — you top up a balance and every generation is metered, with real-time cost in the console.
How do I call FLUX 2 Pro?
Create an API key in the console, then send the model name flux-2-pro with your prompt to https://openlux.lol/v1 using the OpenAI-compatible request format.
Does FLUX 2 Pro support image editing?
Yes. It accepts reference images alongside the prompt, so you can edit, extend or restyle an existing picture rather than generating everything from text.
FLUX 2 Pro or the Gemini image models — which should I use?
FLUX 2 Pro leans photoreal and precise; the Gemini image previews lean creative and mixed image/text work at a lower per-request rate. Both are on the same endpoint and the same key, so testing the same prompt across them costs very little.
Start calling FLUX 2 Pro today
Create an OpenLux key and send your first request in minutes. Compare FLUX 2 Pro with the rest of the catalogue on the same endpoint and the same bill.