Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| FAL_KEY | Yes | API key from fal.ai |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tasks | {
"list": {},
"cancel": {},
"requests": {
"tools": {
"call": {}
},
"prompts": {
"get": {}
},
"resources": {
"read": {}
}
}
} |
| tools | {
"listChanged": true
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| generate_image | Generate images from a text prompt using fal.ai. Common models:
Returns paths to saved images and metadata. |
| generate_with_reference | Generate images with a style/content reference image. Uses the reference_image feature of flux-general to guide generation toward a similar style or content as the reference. Args: reference_image_url: URL of the reference image for style guidance. reference_strength: How strongly to follow the reference (0.0-1.0). |
| generate_with_lora | Generate images with a LoRA model applied. Args: lora_url: URL to the LoRA safetensors file (e.g. from HuggingFace). lora_scale: Strength of the LoRA effect (0.0-2.0, default 1.0). |
| edit_image | Edit an existing image using natural language instructions (FLUX Kontext). Pass a reference image and describe the changes you want in the prompt. Great for iterating on generated images. Args: image_url: URL of the image to edit. prompt: Description of the desired changes. |
| raw_generate | Submit an arbitrary request to any fal.ai model endpoint. Use this for advanced configurations (ControlNet, IP-Adapter, multi-LoRA, custom parameters) that aren't covered by the other tools. Args: model: The fal.ai model endpoint ID (e.g. "fal-ai/flux-general"). body: The full JSON request body to send to the model. |
| list_outputs | List all images previously saved in the output directory. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |