Image generation

fal.ai Flux, OpenAI DALL-E 3, Stability AI SD3 - via your own keys.

Endpoint

POST /v2/image/generate - synchronous, returns CDN URLs immediately.

Providers & models

  • fal.ai - fal-ai/flux/schnell (T1 $0.003) · fal-ai/flux/dev (T2 $0.025) · fal-ai/flux-pro (T3 $0.05) · fal-ai/flux-pro/v1.1 (T3 $0.04)
  • OpenAI - dall-e-3 (T2 $0.04) · dall-e-3-hd (T3 $0.08)
  • Stability AI - sd3-medium (T2 $0.035) · sd3-large (T3 $0.065) · sd3-large-turbo (T2 $0.04)

Cache

Responses are cached in Redis for 24 hours only when `seed` is set. Random generation (no seed) is never cached. Cache key: SHA-256 of {prompt, provider, model, aspect, width, height, seed, negative_prompt}.

{
  "prompt": "string (required)",
  "provider": "fal | openai | stability",
  "model": "string - optional, uses tier default if omitted",
  "aspect": "square | portrait | landscape | wide | tall",
  "width": 1024,
  "height": 1024,
  "num_images": 1,
  "seed": 42,
  "negative_prompt": "string",
  "steps": 28
}