The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
Add docs as follow on to #18362 (#18388)
Matt Cowger9f4a4fd27105
diff --git a/docs/my-website/docs/providers/apertis.md b/docs/my-website/docs/providers/apertis.mdnew file mode 100644index 00000000000..967de8147e2--- /dev/null+++ b/docs/my-website/docs/providers/apertis.md@@ -0,0 +1,129 @@+# Apertis AI (Stima API)++## Overview++| Property | Details |+|-------|-------|+| Description | Apertis AI (formerly Stima API) is a unified API platform providing access to 430+ AI models through a single interface, with cost savings of up to 50%. |+| Provider Route on LiteLLM | `apertis/` |+| Link to Provider Doc | [Apertis AI Website ↗](https://api.stima.tech) |+| Base URL | `https://api.stima.tech/v1` |+| Supported Operations | [`/chat/completions`](#sample-usage) |++<br />++## What is Apertis AI?++Apertis AI is a unified API platform that lets developers:+- **Access 430+ AI Models**: All models through a single API+- **Save 50% on Costs**: Competitive pricing with significant discounts+- **Unified Billing**: Single bill for all model usage+- **Quick Setup**: Start with just $2 registration+- **GitHub Integration**: Link with your GitHub account++## Required Variables++```python showLineNumbers title="Environment Variables"+os.environ["STIMA_API_KEY"] = "" # your Apertis AI API key+```++Get your Apertis AI API key from [api.stima.tech](https://api.stima.tech).++## Usage - LiteLLM Python SDK++### Non-streaming++```python showLineNumbers title="Apertis AI Non-streaming Completion"+import os+import litellm+from litellm import completion++os.environ["STIMA_API_KEY"] = "" # your Apertis AI API key++messages = [{"content": "What is the capital of France?", "role": "user"}]++# Apertis AI call+response = completion(+ model="apertis/model-name", # Replace with actual model name+ messages=messages+)++print(response)+```++### Streaming++```python showLineNumbers title="Apertis AI Streaming Completion"+import os+import litellm+from litellm import completion++os.environ["STIMA_API_KEY"] = "" # your Apertis AI API key++messages = [{"content": "Write a short poem about AI", "role": "user"}]++# Apertis AI call with streaming+response = completion(+ model="apertis/model-name", # Replace with actual model name+ messages=messages,+ stream=True+)++for chunk in response:+ print(chunk)+```++## Usage - LiteLLM Proxy Server++### 1. Save key in your environment++```bash+export STIMA_API_KEY=""+```++### 2. Start the proxy++```yaml+model_list:+ - model_name: apertis-model+ litellm_params:+ model: apertis/model-name # Replace with actual model name+ api_key: os.environ/STIMA_API_KEY+```++## Supported OpenAI Parameters++Apertis AI supports all standard OpenAI-compatible parameters:++| Parameter | Type | Description |+|-----------|------|-------------|+| `messages` | array | **Required**. Array of message objects with 'role' and 'content' |+| `model` | string | **Required**. Model ID from 430+ available models |+| `stream` | boolean | Optional. Enable streaming responses |+| `temperature` | float | Optional. Sampling temperature |+| `top_p` | float | Optional. Nucleus sampling parameter |+| `max_tokens` | integer | Optional. Maximum tokens to generate |+| `frequency_penalty` | float | Optional. Penalize frequent tokens |+| `presence_penalty` | float | Optional. Penalize tokens based on presence |+| `stop` | string/array | Optional. Stop sequences |+| `tools` | array | Optional. List of available tools/functions |+| `tool_choice` | string/object | Optional. Control tool/function calling |++## Cost Benefits++Apertis AI offers significant cost advantages:+- **50% Cost Savings**: Save money compared to direct provider costs+- **Unified Billing**: Single invoice for all your AI model usage+- **Low Entry**: Start with just $2 registration++## Model Availability++With access to 430+ AI models, Apertis AI provides:+- Multiple providers through one API+- Latest model releases+- Various model types (text, image, video)++## Additional Resources++- [Apertis AI Website](https://api.stima.tech)+- [Apertis AI Enterprise](https://api.stima.tech/enterprise)diff --git a/docs/my-website/docs/providers/chutes.md b/docs/my-website/docs/providers/chutes.mdnew file mode 100644index 00000000000..e2b81837c34--- /dev/null+++ b/docs/my-website/docs/providers/chutes.md@@ -0,0 +1,172 @@+# Chutes++## Overview++| Property | Details |+|-------|-------|+| Description | Chutes is a cloud-native AI deployment platform that allows you to deploy, run, and scale LLM applications with OpenAI-compatible APIs using pre-built templates for popular frameworks like vLLM and SGLang. |+| Provider Route on LiteLLM | `chutes/` |+| Link to Provider Doc | [Chutes Website ↗](https://chutes.ai) |+| Base URL | `https://llm.chutes.ai/v1/` |+| Supported Operations | [`/chat/completions`](#sample-usage), Embeddings |++<br />++## What is Chutes?++Chutes is a powerful AI deployment and serving platform that provides:+- **Pre-built Templates**: Ready-to-use configurations for vLLM, SGLang, diffusion models, and embeddings+- **OpenAI-Compatible APIs**: Use standard OpenAI SDKs and clients+- **Multi-GPU Scaling**: Support for large models across multiple GPUs+- **Streaming Responses**: Real-time model outputs+- **Custom Configurations**: Override any parameter for your specific needs+- **Performance Optimization**: Pre-configured optimization settings++## Required Variables++```python showLineNumbers title="Environment Variables"+os.environ["CHUTES_API_KEY"] = "" # your Chutes API key+```++Get your Chutes API key from [chutes.ai](https://chutes.ai).++## Usage - LiteLLM Python SDK++### Non-streaming++```python showLineNumbers title="Chutes Non-streaming Completion"+import os+import litellm+from litellm import completion++os.environ["CHUTES_API_KEY"] = "" # your Chutes API key++messages = [{"content": "What is the capital of France?", "role": "user"}]++# Chutes call+response = completion(+ model="chutes/model-name", # Replace with actual model name+ messages=messages+)++print(response)+```++### Streaming++```python showLineNumbers title="Chutes Streaming Completion"+import os+import litellm+from litellm import completion++os.environ["CHUTES_API_KEY"] = "" # your Chutes API key++messages = [{"content": "Write a short poem about AI", "role": "user"}]++# Chutes call with streaming+response = completion(+ model="chutes/model-name", # Replace with actual model name+ messages=messages,+ stream=True+)++for chunk in response:+ print(chunk)+```++## Usage - LiteLLM Proxy Server++### 1. Save key in your environment++```bash+export CHUTES_API_KEY=""+```++### 2. Start the proxy++```yaml+model_list:+ - model_name: chutes-model+ litellm_params:+ model: chutes/model-name # Replace with actual model name+ api_key: os.environ/CHUTES_API_KEY+```++## Supported OpenAI Parameters++Chutes supports all standard OpenAI-compatible parameters:++| Parameter | Type | Description |+|-----------|------|-------------|+| `messages` | array | **Required**. Array of message objects with 'role' and 'content' |+| `model` | string | **Required**. Model ID or HuggingFace model identifier |+| `stream` | boolean | Optional. Enable streaming responses |+| `temperature` | float | Optional. Sampling temperature |+| `top_p` | float | Optional. Nucleus sampling parameter |+| `max_tokens` | integer | Optional. Maximum tokens to generate |+| `frequency_penalty` | float | Optional. Penalize frequent tokens |+| `presence_penalty` | float | Optional. Penalize tokens based on presence |+| `stop` | string/array | Optional. Stop sequences |+| `tools` | array | Optional. List of available tools/functions |+| `tool_choice` | string/object | Optional. Control tool/function calling |+| `response_format` | object | Optional. Response format specification |++## Support Frameworks++Chutes provides optimized templates for popular AI frameworks:++### vLLM (High-Performance LLM Serving)+- OpenAI-compatible endpoints+- Multi-GPU scaling support+- Advanced optimization settings+- Best for production workloads++### SGLang (Advanced LLM Serving)+- Structured generation capabilities+- Advanced features and controls+- Custom configuration options+- Best for complex use cases++### Diffusion Models (Image Generation)+- Pre-configured image generation templates+- Optimized settings for best results+- Support for popular diffusion models++### Embedding Models+- Text embedding templates+- Vector search optimization+- Support for popular embedding models++## Authentication++Chutes supports multiple authentication methods:+- API Key via `X-API-Key` header+- Bearer token via `Authorization` header++Example for LiteLLM (uses environment variable):+```python+os.environ["CHUTES_API_KEY"] = "your-api-key"+```++## Performance Optimization++Chutes offers hardware selection and optimization:+- **Small Models (7B-13B)**: 1 GPU with 24GB VRAM+- **Medium Models (30B-70B)**: 4 GPUs with 80GB VRAM each+- **Large Models (100B+)**: 8 GPUs with 140GB+ VRAM each++Engine optimization parameters available for fine-tuning performance.++## Deployment Options++Chutes provides flexible deployment:+- **Quick Setup**: Use pre-built templates for instant deployment+- **Custom Images**: Deploy with custom Docker images+- **Scaling**: Configure max instances and auto-scaling thresholds+- **Hardware**: Choose specific GPU types and configurations++## Additional Resources++- [Chutes Documentation](https://chutes.ai/docs)+- [Chutes Getting Started](https://chutes.ai/docs/getting-started/running-a-chute)+- [Chutes API Reference](https://chutes.ai/docs/sdk-reference)diff --git a/docs/my-website/docs/providers/nano-gpt.md b/docs/my-website/docs/providers/nano-gpt.mdnew file mode 100644index 00000000000..4e46c032c75--- /dev/null+++ b/docs/my-website/docs/providers/nano-gpt.md@@ -0,0 +1,170 @@+# NanoGPT++## Overview++| Property | Details |+|-------|-------|+| Description | NanoGPT is a pay-per-prompt and subscription based AI service providing instant access to over 200+ powerful AI models with no subscriptions or registration required. |+| Provider Route on LiteLLM | `nano-gpt/` |+| Link to Provider Doc | [NanoGPT Website ↗](https://nano-gpt.com) |+| Base URL | `https://nano-gpt.com/api/v1` |+| Supported Operations | [`/chat/completions`](#sample-usage), [`/completions`](#text-completion), [`/embeddings`](#embeddings) |++<br />++## What is NanoGPT?++NanoGPT is a flexible AI API service that offers:+- **Pay-Per-Prompt Pricing**: No subscriptions, pay only for what you use+- **200+ AI Models**: Access to text, image, and video generation models+- **No Registration Required**: Get started instantly+- **OpenAI-Compatible API**: Easy integration with existing code+- **Streaming Support**: Real-time response streaming+- **Tool Calling**: Support for function calling++## Required Variables++```python showLineNumbers title="Environment Variables"+os.environ["NANOGPT_API_KEY"] = "" # your NanoGPT API key+```++Get your NanoGPT API key from [nano-gpt.com](https://nano-gpt.com).++## Usage - LiteLLM Python SDK++### Non-streaming++```python showLineNumbers title="NanoGPT Non-streaming Completion"+import os+import litellm+from litellm import completion++os.environ["NANOGPT_API_KEY"] = "" # your NanoGPT API key++messages = [{"content": "What is the capital of France?", "role": "user"}]++# NanoGPT call+response = completion(+ model="nano-gpt/model-name", # Replace with actual model name+ messages=messages+)++print(response)+```++### Streaming++```python showLineNumbers title="NanoGPT Streaming Completion"+import os+import litellm+from litellm import completion++os.environ["NANOGPT_API_KEY"] = "" # your NanoGPT API key++messages = [{"content": "Write a short poem about AI", "role": "user"}]++# NanoGPT call with streaming+response = completion(+ model="nano-gpt/model-name", # Replace with actual model name+ messages=messages,+ stream=True+)++for chunk in response:+ print(chunk)+```++### Tool Calling++```python showLineNumbers title="NanoGPT Tool Calling"+import os+import litellm++os.environ["NANOGPT_API_KEY"] = ""++tools = [+ {+ "type": "function",+ "function": {+ "name": "get_weather",+ "description": "Get current weather",+ "parameters": {+ "type": "object",+ "properties": {+ "location": {"type": "string"}+ }+ }+ }+ }+]++response = litellm.completion(+ model="nano-gpt/model-name",+ messages=[{"role": "user", "content": "What's the weather in Paris?"}],+ tools=tools+)+```++## Usage - LiteLLM Proxy Server++### 1. Save key in your environment++```bash+export NANOGPT_API_KEY=""+```++### 2. Start the proxy++```yaml+model_list:+ - model_name: nano-gpt-model+ litellm_params:+ model: nano-gpt/model-name # Replace with actual model name+ api_key: os.environ/NANOGPT_API_KEY+```++## Supported OpenAI Parameters++NanoGPT supports all standard OpenAI-compatible parameters:++| Parameter | Type | Description |+|-----------|------|-------------|+| `messages` | array | **Required**. Array of message objects with 'role' and 'content' |+| `model` | string | **Required**. Model ID from 200+ available models |+| `stream` | boolean | Optional. Enable streaming responses |+| `temperature` | float | Optional. Sampling temperature |+| `top_p` | float | Optional. Nucleus sampling parameter |+| `max_tokens` | integer | Optional. Maximum tokens to generate |+| `frequency_penalty` | float | Optional. Penalize frequent tokens |+| `presence_penalty` | float | Optional. Penalize tokens based on presence |+| `stop` | string/array | Optional. Stop sequences |+| `n` | integer | Optional. Number of completions to generate |+| `tools` | array | Optional. List of available tools/functions |+| `tool_choice` | string/object | Optional. Control tool/function calling |+| `response_format` | object | Optional. Response format specification |+| `user` | string | Optional. User identifier |++## Model Categories++NanoGPT provides access to multiple model categories:+- **Text Generation**: 200+ LLMs for chat, completion, and analysis+- **Image Generation**: AI models for creating images+- **Video Generation**: AI models for video creation+- **Embedding Models**: Text embedding models for vector search++## Pricing Model++NanoGPT offers a flexible pricing structure:+- **Pay-Per-Prompt**: No subscription required+- **No Registration**: Get started immediately+- **Transparent Pricing**: Pay only for what you use++## API Documentation++For detailed API documentation, visit [docs.nano-gpt.com](https://docs.nano-gpt.com).++## Additional Resources++- [NanoGPT Website](https://nano-gpt.com)+- [NanoGPT API Documentation](https://nano-gpt.com/api)+- [NanoGPT Model List](https://docs.nano-gpt.com/api-reference/endpoint/models)diff --git a/docs/my-website/docs/providers/poe.md b/docs/my-website/docs/providers/poe.mdnew file mode 100644index 00000000000..ba4089ae6a4--- /dev/null+++ b/docs/my-website/docs/providers/poe.md@@ -0,0 +1,139 @@+# Poe++## Overview++| Property | Details |+|-------|-------|+| Description | Poe is Quora's AI platform that provides access to more than 100 models across text, image, video, and voice modalities through a developer-friendly API. |+| Provider Route on LiteLLM | `poe/` |+| Link to Provider Doc | [Poe Website ↗](https://poe.com) |+| Base URL | `https://api.poe.com/v1` |+| Supported Operations | [`/chat/completions`](#sample-usage) |++<br />++## What is Poe?++Poe is Quora's comprehensive AI platform that offers:+- **100+ Models**: Access to a wide variety of AI models+- **Multiple Modalities**: Text, image, video, and voice AI+- **Popular Models**: Including OpenAI's GPT series and Anthropic's Claude+- **Developer API**: Easy integration for applications+- **Extensive Reach**: Benefits from Quora's 400M monthly unique visitors++## Required Variables++```python showLineNumbers title="Environment Variables"+os.environ["POE_API_KEY"] = "" # your Poe API key+```++Get your Poe API key from the [Poe platform](https://poe.com).++## Usage - LiteLLM Python SDK++### Non-streaming++```python showLineNumbers title="Poe Non-streaming Completion"+import os+import litellm+from litellm import completion++os.environ["POE_API_KEY"] = "" # your Poe API key++messages = [{"content": "What is the capital of France?", "role": "user"}]++# Poe call+response = completion(+ model="poe/model-name", # Replace with actual model name+ messages=messages+)++print(response)+```++### Streaming++```python showLineNumbers title="Poe Streaming Completion"+import os+import litellm+from litellm import completion++os.environ["POE_API_KEY"] = "" # your Poe API key++messages = [{"content": "Write a short poem about AI", "role": "user"}]++# Poe call with streaming+response = completion(+ model="poe/model-name", # Replace with actual model name+ messages=messages,+ stream=True+)++for chunk in response:+ print(chunk)+```++## Usage - LiteLLM Proxy Server++### 1. Save key in your environment++```bash+export POE_API_KEY=""+```++### 2. Start the proxy++```yaml+model_list:+ - model_name: poe-model+ litellm_params:+ model: poe/model-name # Replace with actual model name+ api_key: os.environ/POE_API_KEY+```++## Supported OpenAI Parameters++Poe supports all standard OpenAI-compatible parameters:++| Parameter | Type | Description |+|-----------|------|-------------|+| `messages` | array | **Required**. Array of message objects with 'role' and 'content' |+| `model` | string | **Required**. Model ID from 100+ available models |+| `stream` | boolean | Optional. Enable streaming responses |+| `temperature` | float | Optional. Sampling temperature |+| `top_p` | float | Optional. Nucleus sampling parameter |+| `max_tokens` | integer | Optional. Maximum tokens to generate |+| `frequency_penalty` | float | Optional. Penalize frequent tokens |+| `presence_penalty` | float | Optional. Penalize tokens based on presence |+| `stop` | string/array | Optional. Stop sequences |+| `tools` | array | Optional. List of available tools/functions |+| `tool_choice` | string/object | Optional. Control tool/function calling |+| `response_format` | object | Optional. Response format specification |+| `user` | string | Optional. User identifier |++## Available Model Categories++Poe provides access to models across multiple providers:+- **OpenAI Models**: Including GPT-4, GPT-4 Turbo, GPT-3.5 Turbo+- **Anthropic Models**: Including Claude 3 Opus, Sonnet, Haiku+- **Other Popular Models**: Various provider models available+- **Multi-Modal**: Text, image, video, and voice models++## Platform Benefits++Using Poe through LiteLLM offers several advantages:+- **Unified Access**: Single API for many different models+- **Quora Integration**: Access to large user base and content ecosystem+- **Content Sharing**: Capabilities to share model outputs with followers+- **Content Distribution**: Best AI content distributed to all users+- **Model Discovery**: Efficient way to explore new AI models++## Developer Resources++Poe is actively building developer features and welcomes early access requests for API integration.++## Additional Resources++- [Poe Website](https://poe.com)+- [Poe AI Quora Space](https://poeai.quora.com)+- [Quora Blog Post about Poe](https://quorablog.quora.com/Poe)diff --git a/docs/my-website/docs/providers/synthetic.md b/docs/my-website/docs/providers/synthetic.mdnew file mode 100644index 00000000000..b3ba3d0a9e7--- /dev/null+++ b/docs/my-website/docs/providers/synthetic.md@@ -0,0 +1,119 @@+# Synthetic++## Overview++| Property | Details |+|-------|-------|+| Description | Synthetic runs open-source AI models in secure datacenters within the US and EU, with a focus on privacy. They never train on your data and auto-delete API data within 14 days. |+| Provider Route on LiteLLM | `synthetic/` |+| Link to Provider Doc | [Synthetic Website ↗](https://synthetic.new) |+| Base URL | `https://api.synthetic.new/openai/v1` |+| Supported Operations | [`/chat/completions`](#sample-usage) |++<br />++## What is Synthetic?++Synthetic is a privacy-focused AI platform that provides access to open-source LLMs with the following guarantees:+- **Privacy-First**: Data never used for training+- **Secure Hosting**: Models run in secure datacenters in US and EU+- **Auto-Deletion**: API data automatically deleted within 14 days+- **Open Source**: Runs open-source AI models++## Required Variables++```python showLineNumbers title="Environment Variables"+os.environ["SYNTHETIC_API_KEY"] = "" # your Synthetic API key+```++Get your Synthetic API key from [synthetic.new](https://synthetic.new).++## Usage - LiteLLM Python SDK++### Non-streaming++```python showLineNumbers title="Synthetic Non-streaming Completion"+import os+import litellm+from litellm import completion++os.environ["SYNTHETIC_API_KEY"] = "" # your Synthetic API key++messages = [{"content": "What is the capital of France?", "role": "user"}]++# Synthetic call+response = completion(+ model="synthetic/model-name", # Replace with actual model name+ messages=messages+)++print(response)+```++### Streaming++```python showLineNumbers title="Synthetic Streaming Completion"+import os+import litellm+from litellm import completion++os.environ["SYNTHETIC_API_KEY"] = "" # your Synthetic API key++messages = [{"content": "Write a short poem about AI", "role": "user"}]++# Synthetic call with streaming+response = completion(+ model="synthetic/model-name", # Replace with actual model name+ messages=messages,+ stream=True+)++for chunk in response:+ print(chunk)+```++## Usage - LiteLLM Proxy Server++### 1. Save key in your environment++```bash+export SYNTHETIC_API_KEY=""+```++### 2. Start the proxy++```yaml+model_list:+ - model_name: synthetic-model+ litellm_params:+ model: synthetic/model-name # Replace with actual model name+ api_key: os.environ/SYNTHETIC_API_KEY+```++## Supported OpenAI Parameters++Synthetic supports all standard OpenAI-compatible parameters:++| Parameter | Type | Description |+|-----------|------|-------------|+| `messages` | array | **Required**. Array of message objects with 'role' and 'content' |+| `model` | string | **Required**. Model ID |+| `stream` | boolean | Optional. Enable streaming responses |+| `temperature` | float | Optional. Sampling temperature |+| `top_p` | float | Optional. Nucleus sampling parameter |+| `max_tokens` | integer | Optional. Maximum tokens to generate |+| `frequency_penalty` | float | Optional. Penalize frequent tokens |+| `presence_penalty` | float | Optional. Penalize tokens based on presence |+| `stop` | string/array | Optional. Stop sequences |++## Privacy & Security++Synthetic provides enterprise-grade privacy protections:+- Data auto-deleted within 14 days+- No data used for model training+- Secure hosting in US and EU datacenters+- Compliance-friendly architecture++## Additional Resources++- [Synthetic Website](https://synthetic.new)diff --git a/docs/my-website/sidebars.js b/docs/my-website/sidebars.jsindex 2d3c9d8a650..cd25f293aca 100644--- a/docs/my-website/sidebars.js+++ b/docs/my-website/sidebars.js@@ -683,9 +683,11 @@ const sidebars = {"providers/aleph_alpha","providers/amazon_nova","providers/anyscale",+ "providers/apertis","providers/baseten","providers/bytez","providers/cerebras",+ "providers/chutes","providers/clarifai","providers/cloudflare_workers","providers/codestral",@@ -736,6 +738,7 @@ const sidebars = {"providers/morph","providers/nebius","providers/nlp_cloud",+ "providers/nano-gpt","providers/novita",{ type: "doc", id: "providers/nscale", label: "Nscale (EU Sovereign)" },{@@ -752,6 +755,7 @@ const sidebars = {"providers/ovhcloud","providers/perplexity","providers/petals",+ "providers/poe","providers/publicai","providers/predibase","providers/pydantic_ai_agent",@@ -768,6 +772,8 @@ const sidebars = {},"providers/sambanova","providers/sap",+ "providers/stability",+ "providers/synthetic","providers/snowflake","providers/togetherai","providers/topaz",