fal

FLUX.2 [dev] Flash AI Image Editing Model

Fast distilled version of Black Forest Labs' FLUX.2 [dev] optimized for speed and cost efficiency.

FLUX.2 [dev] Flash API OpenAI-compatible

Integrate FLUX.2 [dev] Flash via Lumenfall’s OpenAI-compatible API to programmatically generate high-resolution images and perform complex image editing. This endpoint provides low-latency access to fast-distilled text-to-image capabilities for real-time media applications.

Base URL
https://api.lumenfall.ai/openai/v1
Model
flux.2-dev-flash

Text to Image Generate

Create images from text descriptions

curl -X POST \
  https://api.lumenfall.ai/openai/v1/images/generations \
  -H "Authorization: Bearer $LUMENFALL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "flux.2-dev-flash",
    "prompt": "A serene mountain landscape at sunset",
    "size": "1024x1024"
  }'
# Response:
# { "created": 1234567890, "data": [{ "url": "https://...", "revised_prompt": "..." }] }

Image Editing Edit

Transform existing images with text instructions

curl -X POST \
  https://api.lumenfall.ai/openai/v1/images/edits \
  -H "Authorization: Bearer $LUMENFALL_API_KEY" \
  -F "model=flux.2-dev-flash" \
  -F "[email protected]" \
  -F "prompt=Add a starry night sky to this image" \
  -F "size=1024x1024"
# Response:
# { "created": 1234567890, "data": [{ "url": "https://...", "revised_prompt": "..." }] }