Overview
How it works
1
Authenticate
3
Route to a provider
4
Meter and bill
| Handled for you | Left unchanged |
|---|---|
| Key validation and provider auth | Request body schema (per SDK format) |
| Model access checks | Response body schema |
| Provider selection and fallback | Streaming event sequence |
| Metering and credit deduction | Model behavior and outputs |
Authentication
The three accepted key locations, and what a 401 actually means.
Model discovery
List what a project key may call before you hard-code a model id.
Provider routing
How a pool is ordered, and when the Gateway fails over to the next provider.
How credits work
What gets metered, and what happens when a project balance runs out.