Changelog

More image models, one API

MiniRouter and Image models, separated by a silver fold of light on black.

Use 26 image models from FLUX, Seedream, Muse, GPT Image, Recraft and Grok with one API key.

Choose your model

Model pages list prices and required settings.

Generate an image

Set to your funded key. Each request returns one image.

FLUX Kontext Pro · cURL
curl --fail-with-body --retry 0 --max-time 120 \
  https://api.minirouter.sh/v1/images/generations \
  -H "Authorization: Bearer $MINIROUTER_KEY" \
  -H 'Content-Type: application/json' \
  -D response.headers --output response.json \
  --data '{
    "model": "bfl/flux-kontext-pro",
    "prompt": "A solid blue circle centered on a plain white background. No text.",
    "n": 1
  }'

Save the image and request ID.

Save the image and request ID
python3 -c 'import base64,json; r=json.load(open("response.json")); open("image.png","wb").write(base64.b64decode(r["data"][0]["b64_json"]))'
awk 'tolower($1) == "x-minirouter-request-id:" { print $2 }' response.headers

Make an edit

Use or a PNG, JPEG or WebP up to 1,048,576 pixels (1024 × 1024) and 8 MiB. FLUX Kontext Pro does not accept masks.

FLUX Kontext Pro edit · cURL
curl --fail-with-body --retry 0 --max-time 120 \
  https://api.minirouter.sh/v1/images/edits \
  -H "Authorization: Bearer $MINIROUTER_KEY" \
  -D edit.headers --output edit.json \
  -F model=bfl/flux-kontext-pro \
  -F 'prompt=Make the blue circle green. Keep the white background and composition.' \
  -F n=1 \
  -F image=@image.png

The edited image is base64 in . Use the model-page examples for Flare and Sunburst.

Capped billing

Your hold is twice the estimated cost, including our fee. Pay the provider’s actual cost plus the fee, capped at that hold. Unused funds return to your balance.

Billing can finish after the image arrives. Check Activity or before retrying an uncertain request. Keep automatic retries disabled.

See what else shipped.