DEV Community

ToRun AI
ToRun AI

Posted on

Building an AI Orchestration Platform: How We Unified 10+ AI Providers

At ToRun AI, we're building an AI Orchestration Platform that lets teams access 100+ AI models from 10+ providers through a single interface.

The Problem

Every major AI provider has its own API, auth, pricing, and rate limits. For teams using multiple providers, this means multiple integrations, separate billing, and no unified routing.

Our Solution: A 9-Step Execution Pipeline

Every AI request in ToRun goes through:

  1. Request Validation - Input sanitization
  2. Tenant Isolation - Multi-tenant security
  3. Subscription Verification - Plan checks
  4. Budget Checking - Dual-source billing
  5. Rule Engine - Pre-prompt rules, PII detection
  6. Model Routing - Dynamic access control
  7. Provider Execution - Adapter pattern
  8. Response Streaming - Real-time via SignalR
  9. Cost Calculation - Token-level tracking

Tech Stack

  • .NET 10.0 on ABP.IO Framework
  • MongoDB + Redis
  • Angular frontend
  • Domain-Driven Design (23 entities, 6 bounded contexts)

Why It Matters

No vendor lock-in. Switch providers seamlessly.
Dynamic access. Model access calculated in real-time, not hardcoded.
Smart budgets. Subscription allowance + wallet system.

We're building in public. Follow us for more technical deep-dives!

torun.ai

Top comments (0)