Unified AI Gateway & Deterministic Edge Routing
Route, cache, and observe LLM completions across 14+ inference providers with a single SDK drop-in. Built in Rust for sub-12ms proxy overhead.
import { Oral12Gateway } from '@oral12/edge-sdk'; export const gateway = new Oral12Gateway({ endpoint: 'https://edge.oral12.studio/v1', semanticCache: { enabled: true, similarityThreshold: 0.94, ttlSeconds: 86400 }, fallbackChain: [ 'anthropic/claude-3-7-sonnet', 'openai/gpt-4o', 'groq/llama-3.3-70b' ], piiRedaction: 'strict' }); // Execute with automatic failover <11ms overhead const res = await gateway.chat.create({ messages: [{ role: 'user', content: prompt }] });