The fal provider (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/phpaisdk/fal/llms.txt
Use this file to discover all available pages before exploring further.
aisdk/fal) brings fal.ai models into the PHP AI SDK ecosystem. With a single Composer package you can generate images, synthesize speech, transcribe audio, and produce AI video — all through a consistent, type-safe PHP API aligned with @ai-sdk/fal.
Installation
Add the package via Composer and set your API key in under a minute.
Quickstart
Generate your first image, speech clip, or video in a few lines of PHP.
Configuration
Customize the base URL, headers, and poll timeouts to fit your environment.
Model Reference
Explore image, speech, transcription, and video model details and options.
What you can build
Image Generation
Generate images from text prompts using models like
fal-ai/flux/schnell. Control size, aspect ratio, seed, and count.Text-to-Speech
Synthesize natural speech with models such as
fal-ai/minimax/speech-02-hd. Returns raw audio bytes ready to stream or save.Audio Transcription
Transcribe audio files or URLs to text. Supports both remote URLs and data URIs for inline audio.
Video Generation
Queue async video generation jobs via
queue.fal.run with configurable polling intervals and timeouts.Quick look
quickstart.php
Language and embedding modalities are not implemented for fal in this package and will throw a
NoSuchModelException if called.