Skip to main content
Glama

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
FAL_KEYYesYour Fal.ai API key

Tools

Functions exposed to the LLM to take actions

NameDescription
list_models

Discover available Fal.ai models for image, video, and audio generation. Use 'task' parameter for intelligent task-based ranking (e.g., 'portrait photography'), or 'search' for simple name/description filtering.

recommend_model

Get AI-powered model recommendations for a specific task. Describe what you want to do (e.g., 'generate portrait photo', 'anime style illustration', 'product photography') and get the best-suited models ranked by relevance. Featured models by Fal.ai are prioritized.

get_pricing

Get pricing information for Fal.ai models. Returns cost per unit (image/video/second) in USD. Use this to check costs before generating content.

get_usage

Get usage and spending history for your Fal.ai workspace. Shows quantity, cost, and breakdown by model. Requires admin API key.

upload_file

Upload a local file to Fal.ai storage and get a URL. Use this to upload images, videos, or audio files that can then be used with other Fal.ai tools (e.g., image-to-video, audio transform).

generate_image

Generate images from text prompts. Use list_models with category='image' to discover available models.

generate_image_structured

Generate images with detailed structured prompts for precise control over composition, style, lighting, and subjects. Ideal for AI agents that need fine-grained control.

generate_image_from_image

Transform an existing image into a new image based on a prompt. Use for style transfer, editing, variations, and more. Use upload_file first if you have a local image.

remove_background

Remove the background from an image, creating a transparent PNG. Great for product photos, portraits, and creating composites.

upscale_image

Upscale an image to higher resolution while preserving quality. Use for enhancing low-resolution images.

edit_image

Edit an image using natural language instructions. Describe what changes you want and the AI will apply them.

inpaint_image

Edit specific regions of an image using a mask. White areas in the mask will be regenerated based on the prompt.

resize_image

Resize/reformat images for different platforms (like Canva Magic Resize). Uses AI outpainting to intelligently extend content for new aspect ratios. Note: 'crop' and 'letterbox' modes coming soon.

compose_images

Overlay one image on top of another (e.g., add watermark, logo). Uses PIL for precise positioning - no AI needed.

generate_video

Generate videos from text prompts (text-to-video) or from images (image-to-video). Use list_models with category='video' to discover available models.

generate_video_from_image

Animate an image into a video. The image serves as the starting frame and the prompt guides the animation. Use upload_file first if you have a local image.

generate_video_from_video

Transform an existing video using AI. Supports restyling (Lucy models) and motion transfer (Kling motion control). Use upload_file first if you have a local video.

generate_music

Generate music from text descriptions. Use list_models with category='audio' to discover available models.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/raveenb/fal-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server