Provider slug:
fal-aiQuick Start
Add Provider in Model Catalog
- Go to Model Catalog → Add Provider
- Select fal.ai
- Enter your fal.ai API key
- Name your provider (e.g.,
fal-ai)
Model Catalog Setup
Complete setup options and configuration
Chat Completions
fal.ai provides LLM access via an OpenAI-compatible endpoint (powered by OpenRouter). Usechat.completions.create with the same client:
google/gemini-2.5-flash, anthropic/claude-sonnet-4, meta-llama/llama-4-maverick. Browse available models at fal.ai/models.
Image Generation
Image generation requests go toPOST /v1/images/generations. The model ID maps to a path on fal.run — for example, model="fal-ai/flux/dev" routes to https://fal.run/fal-ai/flux/dev.
Parameters
Portkey maps OpenAI-style parameters to fal’s API:
Size mapping:
fal-native size strings like
landscape_16_9 or portrait_16_9 can be passed directly.
Responses always return image URLs. response_format: "b64_json" is not supported.
Parameters outside the table above (
quality, style, guidance_scale, num_inference_steps, etc.) are not forwarded to fal.Supported Image Models
Next Steps
Configs
Add fallbacks, load balancing, and retries
Observability
Monitor usage and costs across models
Caching
Cache image generation results
Metadata
Tag requests with custom metadata
Portkey is now PRISMA AIRS AI Gateway. See it in action.
Contact Us

