Skip to content

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.

Providers & API Key Pools manage encrypted multi-key pools with Failover or Round-Robin rotation and live connection status.
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.

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)”
Fetch Live Models (/models) queries each active provider dynamically so you only enable the exact models and capabilities your team needs.

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).

Routing & Governance maps each semantic ModelTier to a concrete connection::model route plus an ordered backup failover 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.

Next steps