How It Works
- Your app sends requests to the Muxx Gateway instead of directly to the provider
- The gateway forwards requests to the appropriate provider
- Responses are logged and returned to your app
- View everything in the Muxx dashboard
Key Features
Request Logging
Every request and response is logged with full payloads, token counts, and timing.
Response Caching
Cache identical requests to reduce latency and costs.
Rate Limiting
Protect your budget with requests-per-minute limits.
Cost Tracking
Real-time cost calculation for every request.
Supported Endpoints
The gateway supports OpenAI-compatible and Anthropic-compatible endpoints:| Provider | Endpoint | Gateway URL |
|---|---|---|
| OpenAI | /v1/chat/completions | https://gateway.muxx.dev/v1/chat/completions |
| Anthropic | /v1/messages | https://gateway.muxx.dev/v1/messages |
When to Use Gateway
The gateway is ideal when you want:- Zero code changes - Just update the base URL
- Caching - Reduce costs and latency for repeated queries
- Rate limiting - Protect against runaway costs
- Quick integration - Get logging in minutes
Next Steps
Gateway Setup
Configure the gateway for your application