TnsAI

LLM

Configure providers, route between models, cache responses, and track cost.

Pages

  • Providers — 30+ built-in LLM providers and how to add your own.
  • Routing — Pick the right model per request (size, cost, capability).
  • Caching — Prompt cache, response cache.
  • Cost Tracking — Per-agent and per-session cost accounting.
  • Observability — Capture every LLM call as a typed LLMCallLog event with prompt, response, usage, cost, and streaming timing.
  • Audio — Speech-to-text and text-to-speech.
  • Advanced — Request hooks, custom transports, rate limiting.

On this page