Saltar al contenido
FlowAPI

Modelos / Imagen / FLUX.2 Pro

FLUX.2 Pro API

Desde · por imagen
$0.038
1MP
$0.038

FLUX.2 Pro costs $0.038 per image on FlowAPI (1MP); you call it with model id black-forest-labs/flux-2-pro through one REST endpoint or the MCP server, and failed jobs are refunded in full.

id del modeloblack-forest-labs/flux-2-proBlack Forest LabsImagenEn vivo
Precios de FLUX.2 Pro, en USD (en vivo desde la lista de precios)
EspecificaciónPrecio (USD)UnidadPrueba de $0.5
1MP$0.038por imagenSí

Parameters

Parameter Values Default Note
resolution 1MP 1MP Selects the price row.
n 1–4 1 Images per request; price × n.

Input modes (input.type): text, image. See image generation for references and roles.

Code

cURL

bash
curl https://useflowapi.com/v1/generations \
  -H "Authorization: Bearer $FLOWAPI_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: flux-2-pro-1" \
  -d '{"model":"black-forest-labs/flux-2-pro","input":{"type":"text","prompt":"A red bicycle leaning on a brick wall"},"parameters":{"resolution":"1MP","n":1}}'

TypeScript (fetch, Node 18+)

ts
const res = await fetch('https://useflowapi.com/v1/generations', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.FLOWAPI_KEY}`,
    'Content-Type': 'application/json',
    'Idempotency-Key': 'flux-2-pro-1',
  },
  body: JSON.stringify({
    "model": "black-forest-labs/flux-2-pro",
    "input": {
      "type": "text",
      "prompt": "A red bicycle leaning on a brick wall"
    },
    "parameters": {
      "resolution": "1MP",
      "n": 1
    }
  }),
});
const job = await res.json();
console.log(job.id, job.status, job.price.amount);

Python (requests)

python
import os, requests

res = requests.post(
    "https://useflowapi.com/v1/generations",
    headers={
        "Authorization": f"Bearer {os.environ['FLOWAPI_KEY']}",
        "Idempotency-Key": "flux-2-pro-1",
    },
    json={
      "model": "black-forest-labs/flux-2-pro",
      "input": {
        "type": "text",
        "prompt": "A red bicycle leaning on a brick wall"
      },
      "parameters": {
        "resolution": "1MP",
        "n": 1
      }
    },
)
job = res.json()
print(job["id"], job["status"], job["price"]["amount"])

Check the price first with POST /v1/quotes (same body, never charges). Then poll GET /v1/jobs/{id} (async jobs).

Use it from an AI agent

Add the FlowAPI MCP server to Claude, Cursor or any MCP client and ask for a image with black-forest-labs/flux-2-pro.

About this page

FLUX.2 Pro is made by Black Forest Labs. FlowAPI is an independent API service and is not affiliated with or endorsed by Black Forest Labs. Prices on this page are read from FlowAPI's live price table.

Preguntas frecuentes

How much does the FLUX.2 Pro API cost?
FLUX.2 Pro costs $0.038 per image at 1MP on FlowAPI.
Is FlowAPI the official FLUX.2 Pro API?
No. FlowAPI is an independent API service, not affiliated with Black Forest Labs, that runs FLUX.2 Pro for you at a flat price.
Are failed FLUX.2 Pro jobs refunded?
Yes. A failed, timed-out or cancelled job is refunded in full automatically.
How many FLUX.2 Pro images can one request make?
One request makes 1 to 4 images (parameters.n), priced at $0.038 each at 1MP.