---
sidebar_position: 1
---

import Terminal from '@site/src/components/Terminal';

# Overview

Otoroshi LLM Extension is a set of Otoroshi plugins and resources to interact with LLMs, let's discover it!

**Connect, setup, secure and seamlessly manage LLM models using a Universal/OpenAI compatible API**

### LLM Gateway

  - [**Unified interface**](/docs/llm-gateway/philosophy): Simplify interactions and minimize integration hassles with a single, consistent API across all providers
  - [**50+ LLM providers**](/docs/llm-gateway/providers): Connect to OpenAI, Anthropic, Mistral, Gemini, Azure, Ollama, and many more with a unified configuration
  - [**Load balancing**](/docs/llm-gateway/resilience): Ensure optimal performance by distributing workloads across multiple providers
  - [**Fallbacks**](/docs/llm-gateway/resilience#provider-fallback): Automatically switch LLMs during failures to deliver uninterrupted and accurate performance
  - [**Automatic retries**](/docs/llm-gateway/resilience): LLM APIs often have inexplicable failures. Rescue a substantial number of your requests with built-in automatic retries
  - [**Key vault**](/docs/llm-gateway/secrets): Securely store your LLM API keys in Otoroshi vault or any other secret vault supported by Otoroshi
  - [**Fine grained authorizations**](/docs/llm-gateway/secure-provider): Constrain model usage based on user identity, apikey, consumer metadata, request details, and more

### Cost optimization

  - [**Cost tracking**](/docs/cost-optimizations/cost-tracking): Track per-model costs in real time with automatic pricing from LiteLLM
  - [**Budgets**](/docs/cost-optimizations/budgets): Set spending limits per provider with configurable durations, scopes, and alert modes
  - [**Token quotas**](/docs/cost-optimizations/quotas): Manage LLM token rate limits per consumer and per time window to optimise costs
  - [**Simple cache**](/docs/cost-optimizations/simple-cache): Exact-match caching based on SHA-512 hashing to avoid duplicate LLM calls, with optional Redis backend for cluster-wide sharing
  - [**Semantic cache**](/docs/cost-optimizations/semantic-cache): Speed up repeated queries using embedding-based similarity matching, with optional custom embedding models and Redis Stack backend

### Observability and reporting

  - [**Observability**](/docs/llm-gateway/observability-reporting): Every LLM request is audited with details about the consumer, the LLM provider, and usage
  - [**Reporting**](/docs/reporting/): Export audit events using multiple methods for dashboards and analytics
  - [**Ecological impacts**](/docs/reporting/ecological): Track the environmental footprint of your LLM usage with electricity mix zones and impact metrics

### Guardrails

  - [**Guardrails**](/docs/guardrails/overview): Validate prompts and responses to prevent sensitive data leakage, prompt injection, toxic language, bias, gibberish content, and more with 20+ built-in validation rules

### Prompt engineering

  - [**Prompt engineering**](/docs/prompt-engineering/overview): Enhance your experience by providing contextual information to your prompts, storing them in a library for reusability, and using prompt templates for increased efficiency

### Function calling

  - [**Function calling (tool calls)**](/docs/function-calling/overview): Extend LLM capabilities with tool calling using 5 backend kinds: QuickJS (JavaScript), WASM plugins, HTTP endpoints, Workflows, and Routes

### MCP (Model Context Protocol)

  - [**MCP**](/docs/mcp/overview): Connect to external MCP servers for tools, resources, and prompts, and expose your own MCP servers via HTTP, SSE, or WebSocket

### Embeddings

  - [**Embeddings models**](/docs/embeddings/overview): Compute text embeddings with an OpenAI-compatible API, supporting 16+ providers including a local AllMiniLM L6 V2 model
  - [**Embedding stores**](/docs/embeddings/overview#embedding-stores): Store and search embedding vectors with 9 backends: local, ChromaDB, Elasticsearch, OpenSearch, Qdrant, Weaviate, Pinecone, Redis Stack, and PostgreSQL (pgvector)

### Multi-modal models

  - [**Audio models**](/docs/audio-gen/introduction): Text-to-speech, speech-to-text, and audio translation capabilities
  - [**Image models**](/docs/image-gen/intro): Image generation and editing with multiple providers
  - [**Video models**](/docs/video-gen/intro): Video generation capabilities
  - [**OCR models**](/docs/ocr/introduction): Text extraction from images and PDF documents (AlphaEdge, Mistral)

### Moderation

  - [**Moderation models**](/docs/moderation/overview): Content moderation with dedicated models and plugins to filter inappropriate content

### Workflows and AI Agents

  - [**Workflows**](/docs/workflows/overview): Build complex multi-step AI pipelines with 17+ built-in functions for LLM calls, audio, image/video generation, embeddings, vector stores, memory, guardrails, and more
  - [**AI Agents**](/docs/agents/overview): Build agentic workflows with tool calling, agent handoffs, persistent memory, LLM-based routing, MCP integration, document conversion (Kreuzberg), and autonomous persistent KV memory backed by Redis or PostgreSQL

### HTTP + LLM Plugins

  - [**HTTP + LLM Plugins**](/docs/http-plugins/http-request-body-modifier): Use LLMs to modify HTTP request/response bodies, validate requests, generate responses, and more
  - [**Content to Markdown**](/docs/http-plugins/content-to-markdown): Convert documents (PDF, DOCX, HTML, images) to markdown using Kreuzberg — available as an HTTP plugin, workflow function, and agent built-in tool (requires Java 25)

## Supported LLM providers

All supported LLM providers are listed [here](/docs/llm-gateway/providers)

* Anthropic
* Azure OpenAI
* Azure AI Foundry
* Cloud Temple 🇫🇷 🇪🇺
* Cloudflare
* Cohere
* Deepseek
* Gemini
* Groq
* Huggingface 🇫🇷 🇪🇺
* Mistral 🇫🇷 🇪🇺
* Ollama (Local Models)
* OpenAI
* OVH AI Endpoints 🇫🇷 🇪🇺
* Scaleway 🇫🇷 🇪🇺
* X.ai

And 37 more including Abliteration, AI/ML API, Apertis, AssemblyAI, Cerebras, Chutes, CometAPI, CompactifAI, DeepInfra, Empower, Featherless AI, Fireworks AI, Friendli AI, Galadriel, GMI, Helicone, Hyperbolic, Lambda AI, LlamaGate, Meta Llama API, Minimax, Morph, Nano GPT, Nebius AI Studio, Novita AI, Nscale, Nvidia NIM, OpenRouter, Perplexity, Poe, SambaNova, Sarvam, Synthetic, Together AI, Venice AI, Xiaomi Mimo, Z.AI

## MCP Servers

[MCP Servers](/docs/mcp/overview)

## Cost Optimization

[Cost optimization](/docs/category/-cost-optimization)

## Ecological impacts

[Ecological impacts](/docs/reporting/ecological)

## Introduction video

<iframe width="956" height="538" src="https://www.youtube.com/embed/M8sA9xuE3gs?si=nSB80iS1Et9Q3eIT" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
