AI Gateway
One endpoint for every provider, model, and environment.
Nirmos gives teams one platform to access any model, route requests, reduce costs, build agents, and observe every interaction.
production / gateway
Gateway overview
Requests
1.84M
+12.4%Success rate
99.98%
+0.03%P50 latency
384 ms
-8.1%Cost
$2,418
-14.2%Request volume
Provider routing
Live requests
Built to work across your AI stack.
Core platform
Compose gateway, data, and orchestration primitives without stitching together separate control planes.
One endpoint for every provider, model, and environment.
Route by policy and fail over automatically.
Reuse equivalent responses and lower inference cost.
Build durable execution paths with tools, memory, and approvals.
Trace latency, tokens, errors, and spend.
Manage collections, embeddings, and retrieval.
AI Gateway
Integrate once, then use the right provider for every request without rewriting application code.
const response = await nirmos.chat.create({
model: 'auto',
messages: [{ role: 'user', content: prompt }],
routing: { strategy: 'balanced' },
stream: true
});auto
claude-sonnet-4
Observability and reliability
Trace requests across providers, compare model performance, diagnose failures, and attribute cost to the right project or customer.
Developer experience
Use familiar SDK patterns locally, then ship the same configuration to production with typed, environment-aware tooling.
Explore documentationTyped clients for the frameworks and runtimes you already use.
Issue a key, change one base URL, and send your first request.
Keep credentials and routing policy isolated by environment.
Develop locally with the same request contract used in production.
$ pnpm add @nirmos/ai
$ nirmos init --environment production
✓ Gateway configured at /v1Deploy with confidence
Start with one gateway endpoint. Add routing, workflows, and observability as your application grows.