Skip to content
Search docs

Understand the application and Runtime boundary

FastAPI owns domain objects. ComfyUI runs inference. Direct calls in Runtime tutorials validate the environment. Product clients work through FastAPI.

WebProduct client in P2
FastAPIApplication Backend
RuntimeComfyUI / YuE2

The product Web app connects only to FastAPI. The Runtime Adapter translates native execution events into application Job states. Clients do not depend on ComfyUI node or prompt ids.

ObjectMeaning
ProjectOrganizes a song, cover, or music experiment.
AssetAn actual file that can be referenced independently.
ScoreA music representation that can be inspected and edited.
JobOne trackable transcription or generation request.
CandidateA result that can be heard and inspected, but is not saved yet.
VersionA meaningful creative change explicitly saved by its creator.

Runtime output is validated and imported before it becomes an application-owned Asset. A Candidate becomes a Version only when the creator explicitly saves it.

FastAPI and ComfyUI use independent uv projects, environments, and locks. Normal API and documentation builds do not load GPU models.

For your first real result, start with environment preparation. If Runtime is ready, open the transcription guide.

Source version: 1ce3268Page source: docs/learn/architecture.en.md