AI pipelines
Model calls are ordinary steps inside platform code, never a separate service. Every call in the backend goes through one metering module that holds credits before the call and settles actual usage after it; a gate fails the build if backend code reaches a provider any other way. The transcription worker is the one exception: it calls its providers directly, and its speech-to-text usage is recorded when the result comes back.
Use the AI & Perf lens to pick out the model steps; everything else is deterministic code.
Media to searchable transcript
Media to searchable transcript: 12 nodes and 11 connections at L2 Containers.
- Uploader (actor)
- Finalize upload (service)
- video.transcribe job (stream)
- Extract audio (service)
- Speech to text (model)
- Classify and correct (model)
- Bunny Stream (external)
- Persist transcript (service)
- Embed segments (model)
- Suggest actions (model)
- Segment embeddings (store)
- Transcript search (service)
- Uploader connects to Finalize upload (sync)
- Finalize upload connects to video.transcribe job (async, On media ready)
- video.transcribe job connects to Extract audio (async, POST /transcribe)
- Extract audio connects to Speech to text (sync)
- Speech to text connects to Classify and correct (sync)
- Classify and correct connects to Bunny Stream (sync, SRT)
- Classify and correct connects to Persist transcript (feedback, Callback)
- Persist transcript connects to Embed segments (async)
- Persist transcript connects to Suggest actions (async)
- Embed segments connects to Segment embeddings (sync)
- Segment embeddings connects to Transcript search (sync)
Assistant chat
One assistant turn: 8 nodes and 10 connections at L2 Containers.
- Reader (actor)
- Prepare the turn (service)
- Hold credits (service)
- Assistant model (model)
- Retrieval tools (service)
- Thread store (store)
- Settle usage (service)
- Moderation (stream)
- Reader connects to Prepare the turn (sync, POST /api/ai-chat)
- Prepare the turn connects to Hold credits (sync)
- Hold credits connects to Assistant model (sync)
- Assistant model connects to Retrieval tools (sync, Tool calls)
- Retrieval tools connects to Assistant model (feedback, Results)
- Assistant model connects to Reader (stream, Text deltas)
- Assistant model connects to Thread store (sync, Complete turn)
- Assistant model connects to Settle usage (sync)
- Prepare the turn connects to Moderation (async, Input)
- Thread store connects to Moderation (async, Output)
Prompt to HTML app
Generating an HTML app: 6 nodes and 5 connections at L2 Containers.
- Maker (actor)
- Enqueue run (service)
- Grounding (service)
- Generate (model)
- App version (store)
- Sandboxed frame (service)
- Maker connects to Enqueue run (sync, Prompt)
- Enqueue run connects to Grounding (async)
- Grounding connects to Generate (sync)
- Generate connects to App version (sync, Write)
- App version connects to Sandboxed frame (sync, postMessage)