aigw documentation
aigw is an OpenAI-compatible AI gateway. Point any OpenAI SDK at a single base URL, use a virtual key, and reach every model behind one contract - with per-key budgets, DLP redaction, and a full audit log. Run it EU-sovereign or self-host the stateless gateway in your own VPC.
Everything below is real today. If a sentence here doesn’t match what’s in the app, tell us at support@aigw.app.
Get started
New here? The Quickstart takes you from zero to your first completion in a few copy-paste lines.
The short version:
- Sign in at console.aigw.app - magic link, no password.
- Mint a virtual key. Give it a monthly budget and, optionally, an allow-list of models.
- Point your SDK at the gateway. Set
base_urltohttps://gateway.aigw.app/v1and use the virtual key asapi_key. - Call any model. Change the
modelstring to switch providers - your code doesn’t change.
What’s in the box
- Virtual keys & budgets - issue a key per team, project, or agent; cap spend in cents; restrict which models it can use.
- Providers & models - broker every provider behind one endpoint, or bring your own keys. Multi-provider failover and retries are automatic.
- Budgets, DLP & audit - the governance layer: real-time spend caps, PII redaction, and an append-only request log.
The endpoints
aigw speaks the OpenAI API. Today it serves:
POST /v1/chat/completions- chat, including streaming.POST /v1/embeddings- embeddings.GET /v1/models- the models your key may use.
OpenAI- and Anthropic-shaped providers are translated for you, so the same request reaches either with no code change.