Providers
Registry
Edge provider selection (supabase/functions/_shared/providers/registry.ts):
| Env | Provider |
|---|---|
GENERATION_PROVIDER=fal | fal.ai |
GENERATION_PROVIDER=muapi | MuAPI (when MUAPI_API_KEY is set) |
GENERATION_PROVIDER=mock | Local simulation |
FAL_API_KEY set (auto) | fal |
replicate / custom are stubs that route to mock until implemented — do not use in production.
fal.ai
- Queue mode with
generation-webhookcallback URL GENERATION_WEBHOOK_SECRETrequired in production- Output URLs validated against allow-list (SSRF protection)
Adding a provider
- Implement
GenerationProviderinsupabase/functions/_shared/providers/ - Register in
registry.ts - Add catalog entries in
libs/generation-core - Run
npm run catalog:sync
UI and features stay unchanged — they only pass logical modelId and parameters.
See ADR docs/adr/0005-generation-multi-provider.md in the monorepo.
Last updated on