The orchestration layer
How one request becomes the right model running on the right capacity, with a price and a result you can trust.
Purpose
The orchestration layer sits between a customer request and the models that fulfil it. It turns an intent such as "read this paragraph in Hausa" into a validated, priced, scheduled and observable job.
The path of a request
- Authenticate. The key is checked and its scopes, rate limit and spend cap are read. Live
- Check the capability. The registry confirms that the language and feature are open. If they are not, the request is refused with a plain explanation rather than answered with filler. Live
- Quote and reserve. The price is computed in credits and reserved against the product wallet. Live
- Route. A model and a place to run it are chosen. See model routing and fallback.
- Run as a job. Work executes in background workers and publishes progress events. See the job pipeline. Live
- Settle. Credits are captured on success and released on failure, and usage is recorded.
Control without redeploying
Prices, plan gates, routing policy, retention and model availability are database settings that an administrator can change. They are not constants in the code. Live This is what allows the platform to react to a supplier outage or a price change within minutes.
Design commitments
- Clients never block on heavy work.
- No provider names appear in customer-facing fields; catalogue entries carry our own display names.
- Errors are structured (RFC 9457 problem details) with a stable code and a message key, so clients can render them in any language.
See the diagram of the whole platform on the Architecture page.
Statements and their status
Each labelled statement in this article, with what it rests on.
- Live The API accepts a bearer token or an API key in the X-API-Key header and answers unauthenticated or invalid-key calls with 401. Evidence: a live endpoint, checked 2026-12-01.
- Live Long work runs as background jobs with status, events and cancel endpoints. Evidence: a live endpoint, checked 2026-12-01.
- Live When a job fails or is cancelled, the credits reserved for it are released. Evidence: a production metric, checked 2026-12-01.
- Live A capability that is not available is closed: the API refuses with capability_closed instead of returning placeholder output; the public list shows the reason per capability. Evidence: source documentation, checked 2026-12-01.
- Live The model and voice catalogue is managed by admins at runtime, not hard-coded. Evidence: a live endpoint, checked 2026-12-01.
- Live A versioned OpenAPI 3.1 contract describes the media API. Evidence: source documentation, checked 2026-12-01.