Prerequisites
The following example requires thefal_client library and an API key which can be obtained from Fal.
Example
The following agent will use FAL to generate any video requested by the user.cookbook/14_tools/fal_tools.py
Toolkit Params
| Parameter | Type | Default | Description |
|---|---|---|---|
api_key | str | None | API key for authentication purposes. |
model | str | None | The model to use for the media generation. |
enable_generate_media | bool | True | Enable the generate_media functionality. |
enable_image_to_image | bool | True | Enable the image_to_image functionality. |
all | bool | False | Enable all functionality. |
Toolkit Functions
| Function | Description |
|---|---|
generate_media | Generate either images or videos depending on the user prompt. |
image_to_image | Transform an input image based on a text prompt. |
Developer Resources
- View Tools