YepAPI

Command Palette

Search for a command to run...

Black Forest LabsImage Generation/v1/media/queue

FLUX.2 Pro

Generate photorealistic images with FLUX.2 Pro from $0.07 per image — one REST call, no GPU to rent.

Black Forest Labs' flagship image model. Sharp photorealism, reliable text rendering, and strong prompt adherence across nine aspect ratios, with 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 Pro.

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.07/image

Endpoint

/v1/media/queue

Strengths

Flagship FLUX quality

FLUX.2 Pro is the standard-bearer of the FLUX.2 family, balancing photorealistic detail, clean composition, and prompt adherence in a single fast pass.

Accurate text in images

Renders legible signage, packaging copy, and UI text far more reliably than earlier diffusion models, which makes it practical for ad and product creative.

Reference-image editing

Pass an existing image to edit, restyle, or extend it instead of generating from scratch, keeping brand assets consistent across a set.

Nine aspect ratios

Covers 1:1 through 21:9 plus auto, so a single prompt can be re-rendered for feed posts, banners, and cinematic crops.

Quick start

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

// 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-pro",
    "prompt": "A weathered brass diving helmet resting on wet slate, seawater beading on the glass, cold north-facing window light, macro detail on the rivets, muted teal and copper palette",
    "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 Pro 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 Pro API — flagship image generation from $0.07

FLUX.2 Pro is Black Forest Labs' flagship text-to-image model, known for photorealistic detail, dependable text rendering, and tight prompt adherence. It supports nine aspect ratios from square to 21:9, accepts a reference image for editing, and returns PNG or JPEG.

Through YepAPI you call FLUX.2 Pro on the same `/v1/media/queue` endpoint as every other image and video model, with one key and per-image pricing from $0.07 — no self-hosting, no GPU provisioning, no separate account.

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

Black Forest Labs' flagship image model. Sharp photorealism, reliable text rendering, and strong prompt adherence across nine aspect ratios, with reference-image editing and PNG or JPEG output.

Pricing for FLUX.2 Pro 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 Pro?

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

Explore more models