Black Forest Labs
Generate images with Flux at OpenAI-compatible speed.
FLUX.1 [pro], [dev], [schnell] — open-weight image models from Black Forest Labs, the team behind Stable Diffusion. Faster and arguably sharper than DALL·E 3.
Latest models as of 2026-05-23
See all models →flux-2-pro flagship Black Forest Labs' current top image model. Photorealism and prompt adherence beat DALL·E 3 in blind tests.
flux-2-dev balanced Open-weight Dev variant. Prototype with the same model you'd later self-host.
flux-2-schnell fast Distilled fast variant. Sub-2-second image generation for instant-feedback UIs.
Why use JJAPI for this API
OpenAI-compatible images endpoint
Same /v1/images/generations endpoint as DALL·E — change one string to switch generators.
Sharper than DALL·E 3
Flux 1.1 Pro consistently wins blind tests for photorealism and prompt adherence.
Sub-2-second generation
Flux Schnell distilled model returns finished images in under 2 seconds for instant-feedback UIs.
Open-weight option
Flux Dev is open-weight (non-commercial) so you can prototype with the same model you'll later self-host.
from openai import OpenAI
client = OpenAI(
base_url="https://api.jjapi.net/v1",
api_key="sk-jjapi-...",
)
r = client.chat.completions.create(
model="flux-2-pro", # current as of 2026-05-23
messages=[{"role": "user", "content": "Hi"}],
)
print(r.choices[0].message.content) Frequently asked
Is Flux as good as Midjourney?
For photorealism and adherence to written prompts, blind tests favor Flux 1.1 Pro. For aesthetic styling, Midjourney still has the edge.
Can I use Flux output commercially?
Flux Pro is licensed for commercial use through the API. Flux Dev is non-commercial only.
What aspect ratios are supported?
Common ratios from 9:21 to 21:9 are supported via the `aspect_ratio` parameter. Custom widths/heights also work in 16-pixel increments.