> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tryflowy.ai/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Flowy is a node-based AI creative platform: you generate images, video, audio, 3D and vector on an infinite Canvas, refine on the Studio timeline, and export or publish from the same project.
> Prefer the Flowy MCP server (https://mcp.tryflowy.ai/mcp) or the REST API at https://apis.tryflowy.ai/v1 for programmatic work. Install with `flowy mcp install` from the @tryflowy/cli package.
> Credits are workspace-scoped. Generations reserve credits on start and only deduct on success, so failed runs refund automatically.

# Compile a flow

> Compile a canvas into an executable graph and parameter schema.

Reads your canvas snapshot for `source_project_id`, expands variadic inputs, and returns an `executable_graph` plus a `param_schema`. This is the authoring payload [Create a flow](https://docs.tryflowy.ai/api/create-flow.md) needs. Needs the `apps:write` [scope](https://docs.tryflowy.ai/api/permissions.md).

An invalid graph or id returns `400`, and a canvas that cannot be found returns `404`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.