Skip to main content
fal.ai is a fast inference platform for image generation models (FLUX, Ideogram, Recraft, Nano Banana, and more) plus LLMs via OpenRouter. Portkey routes image generation requests to fal’s native API and chat completion requests through fal’s OpenAI-compatible path.
Provider slug: fal-ai

Quick Start

The model format is @{provider-slug}/{fal-model-id}. Since fal model IDs start with fal-ai/, the full path becomes @fal-ai/fal-ai/flux/schnell.

Add Provider in Model Catalog

  1. Go to Model Catalog → Add Provider
  2. Select fal.ai
  3. Enter your fal.ai API key
  4. 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). Use chat.completions.create with the same client:
LLM model IDs follow OpenRouter’s format — e.g., 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 to POST /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

fal.ai hosts 1000+ models. Any model on fal.ai/models that accepts a prompt input works with Portkey’s image generation route — use its endpoint ID as the model value.

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
Last modified on August 21, 2026