Skip to content

Flux image API

Flux shares one endpoint with every other image model: POST https://revidapi.com/v1/images/generations. Only model changes. The full guide (every parameter, image-to-image, error codes) is in AI Image Generate.

Models and prices

Model Size Credits ≈ VND
flux-2-pro 1k 38 2.120đ
flux-2-pro 2k 63 3.515đ

Prices were read from the live system when this page was built; current prices are always at GET /v1/models. 1 credit = 55.8 VND. Valid sizes: 1k / 2k.

Try it

curl -X POST https://revidapi.com/v1/images/generations \
  -H "Authorization: Bearer $REVID_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "flux-2-pro", "prompt": "an iced coffee on a wooden table, product photo", "size": "1k"}'

Edit an existing picture: add "reference_images": ["https://.../photo.jpg"].

Result

This model returns the image immediately in data[].url; no polling. Failed jobs are refunded automatically.