Providers, Connections & Routing
AI decouples your application code from individual LLM vendors by routing every request through encrypted Providers, live-discovered Models, and semantic Model Tiers.
All 10 Supported ProviderDriver Drivers
Section titled “All 10 Supported ProviderDriver Drivers”| Driver | Typical Use Case |
|---|---|
openrouter |
Unified multi-model gateway across hundreds of cloud models under one billing pool. |
gemini |
Google Gemini text, multimodal vision, structured JSON, embeddings, and image generation. |
anthropic |
Claude models for nuanced editorial writing, long-context audits, and tool-using agents. |
openai |
GPT, reasoning, vision, embedding, and image models. |
deepseek |
Cost-efficient fast writing and reasoning models. |
mistral |
European-hosted text, structured output, and code models. |
xai |
xAI Grok models for general reasoning and drafting. |
ollama |
Local or private self-hosted inference for the private tier and zero-retention workloads. |
openai-compatible |
Any self-hosted or regional OpenAI-compatible gateway (validated via EndpointUrlValidator). |
deepl |
Dedicated neural machine translation engine for high-throughput ai:translate pipelines. |
API Key Pools & KeyStrategy
Section titled “API Key Pools & KeyStrategy”Each connection (ai-connections) accepts multiple API keys stored encrypted with SecretBox (enc:v1:) or referenced via $env:VAR_NAME:
failover: Uses the primary key until it hits a rate limit (429) or provider error, then fails over automatically to the next healthy key in the pool.round_robin: Distributes concurrent requests evenly across all active keys in the pool to multiply throughput during bulk translation or indexing jobs.
Live Model Discovery (ModelDiscoveryService)
Section titled “Live Model Discovery (ModelDiscoveryService)”No stale starter models are hardcoded. Click Fetch Live Models (/models) in Setup -> AI -> Models to pull each connected provider’s live model list, enable specific routes (connection::model-id), assign their default ModelTier, and toggle capability badges (Chat, JSON Schema, Stream, Translate, Vision, Image Gen, Embedding).
The 7 ModelTier Routes & Backup Chain
Section titled “The 7 ModelTier Routes & Backup Chain”ModelTier |
Purpose |
|---|---|
fast |
Quick inline rewrites, short summaries, form classification, and low-latency chat. |
balanced |
Default writing, editorial drafting, and structured block composition. |
reasoning |
Pre-publish quality audits, complex SEO analysis, and multi-step agent planning. |
vision |
Image analysis, accessible alt text, captions, and focal point detection. |
image |
Generating new visual assets inside the Media library or via generateImage(). |
embedding |
Converting pages and entries into semantic vectors for RAG retrieval. |
private |
Local ollama or zero-retention routes for sensitive data and strict compliance. |
If every key on a tier’s primary route fails, AI automatically steps through the Backup Route Chain (connection::model, one per line) before returning an error.