Integrations · fal.ai
Guild agents submit inference jobs to fal.ai model endpoints, track their progress, and cancel them when no longer needed. Guild injects the fal.ai API key server-side so agent code never sees it. Credential policies let you restrict which operations each agent or workspace can perform, and every request passes through Guild’s audit trail.
Book a demo
See how teams govern agents that use fal.ai.
Talk to sales
Get access to Guild, then connect fal.ai to your first agent.
What the fal.ai integration exposes
The integration provides tools that cover the full request lifecycle on fal.ai endpoints. An agent can submit a request to any endpoint, check its status, retrieve the completed result by request ID, and cancel a request that is still running. Tools use thefal_ prefix and are imported from the guildai~fal package.
How it works
1
Connect your fal.ai credential
In Guild, go to Access & setup > Credentials, click Connect, select fal, and paste your key into API Key. Guild stores the key and adds it as
Authorization: Key <key> on every request.2
Scope the credential
By default the credential serves every workspace the account owns. Use Credentials to scope it to one workspace, one member, or a single agent.
3
Add the tools to your agent
Import
FalTools from @guildai-services/guildai~fal and spread it into your agent’s tools object. Use pick() to include only the tools your agent needs.Why fal.ai access needs governing
fal.ai endpoints accept requests that consume compute and can produce or cancel running jobs. Without controls, any agent with access to the credential can submit requests to any endpoint or cancel jobs it did not start. Credential policies let you write ALLOW and DENY rules that Guild’s credential proxy enforces before any request leaves Guild. You can restrict rules to specific agents, specific workspaces, or both, all on a single connected credential. Guild injects the API key server-side through its credential proxy, so agent code never handles the secret directly. Policies are evaluated inside the proxy; an agent cannot bypass them. Requests that no rule allows are denied by default once you remove the auto-created allow-all policy. This keeps blast radius small if an agent behaves unexpectedly.About the fal.ai integration
This integration lets agents run inference jobs on fal.ai model endpoints and manage their lifecycle. Agents can submit requests, poll for status, fetch completed results, and cancel requests that are no longer needed. The integration isguildai~fal.
Authentication
- Type: API key
- Header: Guild sends the key as
Authorization: Key <key>
Setup
1
Connect fal.ai
In Guild, go to Access & setup > Credentials, click Connect, select fal, and paste the key into API Key.
Usage
Selecting specific tools
Tools are named with thefal_ prefix. Use pick() to include only what your agent needs.
Tools
Tools in the latest published version ofguildai~fal:
Frequently asked questions
Can I use different fal.ai keys for different workspaces?
Can I use different fal.ai keys for different workspaces?
Yes. Connect an account-level credential for the default case, then connect a separate workspace-scoped credential for any workspace that needs a different key. Guild picks the most specific credential in scope when an agent makes a call. See Credentials for the full resolution order.
Can an agent cancel a request it did not submit?
Can an agent cancel a request it did not submit?
The
fal_put_by_endpoint_id_requests_by_request_id_cancel tool cancels any request by endpoint ID and request ID, not only ones the calling agent submitted. Use a credential policy with a DENY rule on that operation to prevent agents from cancelling requests they should not touch.Does the fal.ai integration support webhook events?
Does the fal.ai integration support webhook events?
No. The catalog entry for
guildai~fal lists no webhook events, so the integration does not deliver event-driven triggers from fal.ai into Guild.How do I limit an agent to only reading results without submitting new requests?
How do I limit an agent to only reading results without submitting new requests?
Write a credential policy that ALLOWs
fal_get_by_endpoint_id_requests_by_request_id and fal_get_by_endpoint_id_requests_by_request_id_status, and DENYs fal_post_by_endpoint_id and fal_put_by_endpoint_id_requests_by_request_id_cancel. Scope the rule to the specific agent. Guild’s proxy enforces it before any request reaches fal.ai. See Credential policies.Put a governed agent on fal.ai this week
Book a demo
See how teams govern agents that use fal.ai.
Talk to sales
Get access to Guild, then connect fal.ai to your first agent.