Black Forest Labs
FLUX.2 Pro API
High-quality image generation. Price is for a 1-megapixel (1024x1024) image; each extra megapixel adds about half the base price.
Pricing
| Usage | USD | PKR |
|---|---|---|
| Image per image | $0.039 | Rs 10.9 |
PKR prices are approximate and depend on the exchange rate on the day you top up.
Quick start
Create an API key in your dashboard, then call flux-2-pro:
Python (OpenAI SDK)
from openai import OpenAI
client = OpenAI(base_url="https://api.appsgrid.co/v1", api_key="ag_sk_...")
image = client.images.generate(
model="flux-2-pro",
prompt="A cozy cafe in Lahore at golden hour, photorealistic",
)
print(image.data[0].url)cURL
curl https://api.appsgrid.co/v1/images/generations \
-H "Authorization: Bearer $APPSGRID_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "flux-2-pro", "prompt": "A cozy cafe at golden hour"}'FAQ
- How much does the FLUX.2 Pro API cost?
- Image: $0.039 (Rs 10.9) per image. You are only charged for what you use.
- Can I pay for FLUX.2 Pro in Pakistani rupees?
- Yes. Top up your AppsGrid balance in PKR with a local card or bank account, or in USD with an international card. The same balance works for every model.
- Do I need a separate Black Forest Labs account?
- No. Your AppsGrid API key gives you access to FLUX.2 Pro and every other model in the catalog.