Image model API

FLUX 2 Pro API

Flux 2 Pro is an image generation and editing model by Black Forest Labs. It creates high-quality images from text prompts and can edit existing images using natural language instructions. The model handles complex text rendering, photorealistic details, and maintains consistent characters or styles across multiple reference images. High-quality image generation and editing with support for eight reference images

Model id
flux-2-pro
Takes
Text (required)
Makes
Image
Endpoint
POST /api/v1/images/generations
Made by
Black Forest Labs
Mode
Synchronous

Call FLUX 2 Pro

Base URL https://payload.rentprompts.com/api/v1. Replace the placeholder with your key.

Model flux-2-pro

POST /api/v1/images/generations

curl https://payload.rentprompts.com/api/v1/images/generations \
  -H "Authorization: Bearer rp_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "flux-2-pro",
  "prompt": "A lighthouse at dusk, watercolor",
  "n": 1
}'

Replace rp_live_YOUR_KEY with your key, ideally via the RENTPROMPTS_API_KEY environment variable. Keys are shown only once, so they are never filled in here. Get your API key →

What a typical call costs

Worked out from FLUX 2 Pro's published price (3.61 J / image). You pay only for successful results, from your Joule balance.
  • 1 image3.61 Joules
  • 4 images14.44 Joules

Send requests to POST /api/v1/images/generations. FLUX 2 Pro answers synchronously: the result comes back in the response to the same request.

Settings

Optional parameters this model accepts (pass them in settings on /v1/run, or as top-level fields where OpenAI defines them).
NameTypeDefaultRange / options
aspect_ratioselect——
output_formatselect——
FLUX 2 Pro API — Pricing & Code Examples | RentPrompts