Skip to main content
In Production 2026 ia

High-Performance Rust LLM Gateway

Role: Architect & Sole Developer
~7,650 Lines of idiomatic async Rust across 40 endpoints
Dual API Native protocol compatibility with OpenAI and Anthropic formats
Production Powering operational messaging, summaries and transcription tools
21 tests Unit tests (models, quotas, admin, queue, Stripe)

Challenge

Provide centralized, low-latency access to AI models, through an API compatible with the OpenAI and Anthropic formats, for critical transcription and automation workflows without heavy infrastructure overhead or exposing private credentials.

What it solves

  • Unified high-performance gateway: Compiled Rust backend (Axum, Tokio, SQLx) with protocol parity for industry specs, real-time SSE token streaming, and media support.
  • Virtual models and commercial controls: Model abstraction pairing virtual keys with immutable system prompts, SvelteKit administration dashboard, and Stripe billing integration (prepaid wallets, usage-based metering, and recurring plans).

What it avoids in production

  • Budget overruns: Strict Redis rate limiters and token quotas preventing runaway execution or unauthorized traffic spikes.
  • Cascading outages: Priority queues and circuit breakers isolating AI model failures without crashing the ingress layer.
Architecture Deep Dives

Engineering Notes & Systems Design

Technical trade-offs, performance benchmarks, and lessons learned building mission-critical software.