fal
Implementation of the Fal AI API. There is no default interpreter because calls require credentials and network access.
Examples use mocked responses via mockInterpreter so each node kind remains runnable in docs.
import { fal, wrapFalSdk, createFalInterpreter } from "@mvfm/plugin-fal";
import { fal as falSdk } from "@fal-ai/client";
// 1. Configure the Fal SDK
falSdk.config({ credentials: process.env.FAL_KEY });
const client = wrapFalSdk(falSdk);
// 2. Build the interpreter
const falInterp = createFalInterpreter(client);
// 3. Merge and run
const app = mvfm(prelude, fal);
const baseInterp = defaults(app, { fal: falInterp });
await fold(baseInterp, prog);