Fal
Prerequisites
pip install -U fal_clientexport FAL_KEY=***Example
from bitca.agent import Agent
from bitca.model.openai import OpenAIChat
from bitca.tools.fal_tools import FalTools
fal_agent = Agent(
name="Fal Video Generator Agent",
model=OpenAIChat(id="gpt-4o"),
tools=[FalTools("fal-ai/hunyuan-video")],
description="You are an AI agent that can generate videos using the Fal API.",
instructions=[
"When the user asks you to create a video, use the `generate_media` tool to create the video.",
"Return the URL as raw to the user.",
"Don't convert video URL to markdown or anything else.",
],
markdown=True,
debug_mode=True,
show_tool_calls=True,
)
fal_agent.print_response("Generate video of balloon in the ocean")Toolkit Params
Parameter
Type
Default
Description
Toolkit Functions
Function
Description
Last updated