OyeFilmy Logo
personFreeUpgrade
bolt0cr
U

Image generation API

Flux

Black Forest Labs FLUX.1 and FLUX.2 family — open and proprietary image generation models including Pro, Flex, Klein, Kontext, and LoRA variants.

Provider: Black Forest Labs14 models

Available models

Model keyDisplay nameCapabilityAtlas Cloud slug
flux_2_pro_t2iFLUX.2 Pro T2Itext-to-imageblack-forest-labs/flux-2-pro/text-to-image
flux_2_pro_editFLUX.2 Pro Editeditblack-forest-labs/flux-2-pro/edit
flux_2_flex_t2iFLUX.2 Flex T2Itext-to-imageblack-forest-labs/flux-2-flex/text-to-image
flux_2_flex_editFLUX.2 Flex Editeditblack-forest-labs/flux-2-flex/edit
flux_maxFLUX.2 Maxtext-to-imageblack-forest-labs/flux-2-pro/text-to-image
flux_proFLUX.2 Protext-to-imageblack-forest-labs/flux-2-pro/text-to-image
flux_flexFLUX.2 Flextext-to-imageblack-forest-labs/flux-2-flex/text-to-image
flux_kleinFLUX.2 Kleintext-to-imageblack-forest-labs/flux-schnell
flux_schnellFLUX Schnelltext-to-imageblack-forest-labs/flux-schnell
flux_devFLUX.1 Devtext-to-imageblack-forest-labs/flux-dev
flux_kont_maxFLUX Kontext Maxtext-to-imageblack-forest-labs/flux-kontext-dev
flux_kont_proFLUX Kontext Protext-to-imageblack-forest-labs/flux-kontext-dev
flux_dev_loraFLUX Dev LoRAtext-to-image + lorablack-forest-labs/flux-dev-lora
flux_kontext_dev_loraFLUX Kontext Dev LoRAtext-to-image + lorablack-forest-labs/flux-kontext-dev-lora

Endpoint

POST /api/generate

Request body

ParameterTypeRequiredDescription
modelKeystringOne of the model keys listed above
promptstringText description of the image to generate
inputUrlstringInput image URL (for edit/i2i models)
aspectRatiostring"1:1", "16:9", "9:16", etc.
imageQualitystring"Low", "Medium", "High"
styleRefstring | string[]Style reference image URL(s)
charRefstring | string[]Character reference image URL(s)
brandIdstringBrand DNA ID for brand-consistent generation

Code example

curl -X POST https://api.oyefilmy.com/api/generate \
  -H "Authorization: Bearer of_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "modelKey": "flux_2_pro_t2i",
    "prompt": "An astronaut riding a horse on Mars, photorealistic, cinematic lighting, 8K resolution"
  }'

Response

{
  "success": true,
  "predictionId": "pred_abc123...",
  "status": "processing",
  "model": "black-forest-labs/flux-2-pro/text-to-image",
  "creditCost": 5
}

FLUX.2 Pro is best for photorealistic results. Flux Schnell is the fastest option (~2s). Kontext models excel at consistent character generation. LoRA variants allow custom fine-tuning.

Related