Image model API

FLUX Kontext Fast API

Ultra fast Flux Kontext image editing endpoint by Pruna AI. Edit an input image with a text instruction.

Model id
flux-kontext-fast
Takes
Text (optional) + Image (required)
Makes
Image
Endpoint
POST /api/v1/images/generations
Made by
Pruna AI
Mode
Synchronous

Call FLUX Kontext Fast

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

Model flux-kontext-fast

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-kontext-fast",
  "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 Kontext Fast's published price (1.2 J / image). You pay only for successful results, from your Joule balance.
  • 1 image1.2 Joules
  • 4 images4.8 Joules

Send requests to POST /api/v1/images/generations. FLUX Kontext Fast 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
guidancefloat3.50 – 10
num_inference_stepsinteger301 – 50
image_sizeinteger1024256 – 2048
output_qualityinteger801 – 100
aspect_ratioselect——
output_formatselect——
speed_modeselect——
FLUX Kontext Fast API Pricing | RentPrompts