YepAPI

Command Palette

Search for a command to run...

Black Forest LabsImage Generation/v1/media/queue

FLUX.2 Flex

FLUX.2 Flex from $0.13 per image — the tier between Pro and Max, on the same media endpoint.

The tunable FLUX.2 tier, sitting between Pro and Max on quality and cost. Same nine aspect ratios, reference-image editing, and PNG or JPEG output.

No credit card required. Takes 30 seconds.

2,400+

Developers

1.2M+

API calls served

100+

Endpoints

$0.01

Per call

Yep, that's it.

Try it live

Enter a prompt and generate an image with FLUX.2 Flex.

POST/v1/media/queue

Drop image or click to upload

For image-to-image editing

Response
Hit "Send Request" to see the response

Pricing

Per-image: from $0.13/image

Endpoint

/v1/media/queue

Strengths

Quality/cost middle ground

FLUX.2 Flex lands between Pro and Max, giving extra render quality when Pro falls short without paying Max rates on every image.

Consistent FLUX look

Shares the FLUX.2 aesthetic and prompt handling, so you can move a prompt across tiers and keep the same composition and style.

Reference-image editing

Edit or restyle an uploaded image rather than regenerating from a blank canvas, useful for iterating on an approved asset.

Nine aspect ratios

Renders 1:1 through 21:9 plus auto, covering social, web, and cinematic crops from one prompt.

Quick start

Copy this snippet and start making calls with FLUX.2 Flex.

// Step 1: Submit job
const res = await fetch('https://api.yepapi.com/v1/media/queue', {
  method: 'POST',
  headers: {
    'x-api-key': 'YOUR_API_KEY',
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "model": "black-forest-labs/flux.2-flex",
    "prompt": "A retro-futurist reading room carved into a cliff face, curved teak shelves, warm amber lamps, a storm breaking over the ocean through floor-to-ceiling glass, wide-angle architectural photograph",
    "options": {
      "aspectRatio": "1:1"
    }
  }),
});
const { data } = await res.json();
const jobId = data.jobId;

// Step 2: Poll for result
const status = await fetch(`https://api.yepapi.com/v1/media/status/${jobId}`, {
  headers: { 'x-api-key': 'YOUR_API_KEY' },
});
const { data: job } = await status.json();
// job.status: "pending" | "processing" | "completed" | "failed"
// job.result: { text?, image?, audio?, video? }

Why use FLUX.2 Flex through YepAPI?

One API key for all models — no separate accounts
No monthly minimums — pay per call
Switch models with one line of code
Simple REST API — works from any language
Unified billing across all providers
No rate limits for most use cases

FLUX.2 Flex API — the middle tier of FLUX.2

FLUX.2 Flex is the tunable member of Black Forest Labs' FLUX.2 lineup, positioned between the everyday Pro tier and the top-end Max tier. It keeps the same aspect ratios, editing support, and output formats while giving you extra headroom on demanding prompts.

Through YepAPI, Flex runs on the shared `/v1/media/queue` endpoint at $0.13 per image, billed from the same prepaid balance as every other model on the platform.

Start generating in 30 seconds

$5 free credit on signup. No credit card required. Pay per call.

What developers say

Switched from SerpAPI and cut our SERP costs by 80%. Same data quality, way simpler billing.

Marcus T.

SEO Platform Founder

One API key for AI models, SERP data, and web scraping. Saved us from managing 4 separate providers.

Priya S.

Full-Stack Developer

The $5 free credit let us prototype our entire rank tracking feature before committing. No other API does that.

Jake R.

Indie Hacker

Frequently asked questions

The tunable FLUX.2 tier, sitting between Pro and Max on quality and cost. Same nine aspect ratios, reference-image editing, and PNG or JPEG output.

Pricing for FLUX.2 Flex through YepAPI is based on usage. No monthly minimums — you only pay for what you use.

Sign up for a free API key, then send requests to the /v1/media/queue endpoint.

Ready to use FLUX.2 Flex?

$5 free credit on signup. No credit card required. Pay per call.

Explore more models