Skip to content

FLUX.2 [pro]

By black-forest-labsImageblack-forest-labs/flux.2-pro

Call this model

Generate an image with this model. The response carries a signed link to the file, valid for one hour.

curl https://api.getlykia.com/v1/images/generations \
  -H "Authorization: Bearer $LYKIA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "black-forest-labs/flux.2-pro",
    "prompt": "A lighthouse on a cliff at dawn, watercolor"
  }'
Read the guide

Capabilities

Operations
Generate, Edit
Custom size (pixels)
4,194,304
Images per request
1
Reference images
8
Seed
Supported
Output formats
jpeg, png, webp

A value the model doesn't support is rejected with an error that names the parameter; it is never dropped silently.

Pricing

Pricing
VariantPrice
first output megapixel$0.03per megapixel
each additional output megapixel$0.015per megapixel
each input megapixel$0.015per megapixel

List prices in USD for the variant you request. The highest possible cost is set aside before the request runs, and you are charged for the units the provider reports. Failed and cancelled jobs are free unless the provider charged for the rejection.

See pricing

Connection

Lykia connects to this model directly through Black Forest Labs. Requests are sent with the key for that provider that you add to your project.

Only with your own provider key

This model's provider isn't sold on Lykia credits. Add the provider's API key to your project and you can call the model through Lykia; the provider bills you for the usage. The price shown is the provider's list price.

Dates

Released or added
Nov 23, 2026