300 million tokens. $2.99 a month.See the subscription  

model apis · image generation

FLUX.2 Pro API

Run FLUX.2 Pro by Black Forest Labs through one OpenAI-compatible endpoint. Pay per use against your deeprelay balance. No instance to rent, no deployment to manage.

Available now

FLUX.2 Pro API pricing

Live catalog rates, billed per use against your deeprelay balance, no minimums. FLUX.2 Pro is priced per use rather than included in the $2.99-a-month flat plan.

TierRate
Serverless
Per image: $0.032

rates are read every few minutes from the live model catalog and metered per request

Call FLUX.2 Pro in one request

Any OpenAI SDK works: set the base URL to https://api.deeprelay.ai/v1 and use your deeprelay API key.

curl
curl https://api.deeprelay.ai/v1/images/generations \
  -H "Authorization: Bearer $DEEPRELAY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deeprelay/flux.2-pro",
    "prompt": "A watercolor painting of a data center at sunrise"
  }'
Python (OpenAI SDK)
from openai import OpenAI

client = OpenAI(
    base_url="https://api.deeprelay.ai/v1",
    api_key="YOUR_DEEPRELAY_API_KEY",
)

image = client.images.generate(
    model="deeprelay/flux.2-pro",
    prompt="A watercolor painting of a data center at sunrise",
)
print(image.data[0].url)

FLUX.2 Pro on deeprelay

Model iddeeprelay/flux.2-pro
ModalityImage generation
AuthorBlack Forest Labs
Context window
Streaming
Aliases
Flat planNot included: pay as you go

faq

FLUX.2 Pro API questions

How much does the FLUX.2 Pro API cost?

FLUX.2 Pro on deeprelay currently costs $0.032 (per image), billed against your deeprelay balance as you go. There are no minimums. It is priced per use rather than included in the $2.99-a-month flat plan, which covers a named set of models.

Is the FLUX.2 Pro API OpenAI-compatible?

Yes. Point any OpenAI SDK at https://api.deeprelay.ai/v1 with a deeprelay API key and request model "deeprelay/flux.2-pro". No proprietary client needed.

How does billing work?

Generation models bill per output (per image, or per second of video) at the listed rate, metered per request against your deeprelay balance.