Skip to content

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]

perf(proxy): lazy-load provider passthrough routes (#40691)

devin-ai-integration[bot]729ea6b8325d
diff --git a/litellm/proxy/_lazy_features.py b/litellm/proxy/_lazy_features.py
index 50e0a961a49..1d1b736c9fc 100644
--- a/litellm/proxy/_lazy_features.py
+++ b/litellm/proxy/_lazy_features.py
@@ -8,11 +8,13 @@ omits each feature's routes until the feature is warmed.
import asyncio
import importlib
-from collections.abc import Callable
+from collections.abc import Callable, Mapping, Sequence
from collections.abc import Set as AbstractSet
from dataclasses import dataclass, field
+from types import MappingProxyType
from typing import TYPE_CHECKING, Final
+from starlette.routing import BaseRoute, Match
from starlette.types import Receive, Scope, Send
from litellm._logging import verbose_proxy_logger
@@ -185,6 +187,31 @@ LAZY_FEATURES: Final[tuple[LazyFeature, ...]] = (
module_path="litellm.proxy.management_endpoints.config_override_endpoints",
path_prefixes=("/config_overrides",),
),
+ LazyFeature(
+ name="llm_passthrough",
+ module_path="litellm.proxy.pass_through_endpoints.llm_passthrough_endpoints",
+ path_prefixes=(
+ "/anthropic/",
+ "/assemblyai/",
+ "/azure/",
+ "/azure_ai/",
+ "/bedrock/",
+ "/cohere/",
+ "/comprehendmedical",
+ "/cursor/",
+ "/eu.assemblyai/",
+ "/gemini/",
+ "/gigachat/",
+ "/milvus/",
+ "/mistral/",
+ "/openai/",
+ "/openai_passthrough/",
+ "/vertex-ai/",
+ "/vertex_ai/",
+ "/vllm/",
+ "/watsonx/",
+ ),
+ ),
LazyFeature(
name="realtime",
module_path="litellm.proxy.realtime_endpoints.endpoints",
@@ -308,14 +335,64 @@ class LazyFeatureMiddleware:
if root_path and path.startswith(root_path + "/"):
path = path[len(root_path) :] # rebind-ok: local strip after the boundary check above
for feat in self._features:
- if feat.module_path in self._loaded:
+ if feat.module_path in self._loaded or not feat.matches(path):
+ continue
+ if _eager_route_wins(self._fastapi_app, feat, scope):
continue
- if feat.matches(path):
- await _force_load(self._fastapi_app, feat)
+ await _force_load(self._fastapi_app, feat, self._features)
await self.app(scope, receive, send)
-async def _force_load(app: "FastAPI", feat: LazyFeature) -> bool:
+def _lazy_slots(app: "FastAPI") -> Mapping[str, int]:
+ return app.state.lazy_slots if hasattr(app.state, "lazy_slots") else MappingProxyType({})
+
+
+def reserve_lazy_slot(app: "FastAPI", name: str, features: tuple[LazyFeature, ...] = LAZY_FEATURES) -> None:
+ """Record the table position the feature's router used to be included at, so its
+ routes are spliced back in there once it loads and keep the same precedence."""
+ feat: Final = next(f for f in features if f.name == name)
+ app.state.lazy_slots = MappingProxyType({**_lazy_slots(app), feat.module_path: len(app.router.routes)})
+
+
+def _eager_route_wins(app: "FastAPI", feat: LazyFeature, scope: Scope) -> bool:
+ """Routes ahead of a feature's reserved slot beat its routes in Starlette's scan,
+ so a request one of them fully matches never needs the feature loaded."""
+ slot: Final = _lazy_slots(app).get(feat.module_path)
+ if slot is None:
+ return False
+ return any(route.matches(scope)[0] is Match.FULL for route in app.router.routes[:slot])
+
+
+def _in_registry_order(
+ routes: Sequence[BaseRoute],
+ lazy_routes: Mapping[str, tuple[BaseRoute, ...]],
+ features: tuple[LazyFeature, ...],
+ slots: Mapping[str, int],
+) -> tuple[BaseRoute, ...]:
+ """Lazy routers land in registry order, not first-request order, so overlapping
+ paths (/openai/{endpoint:path} vs /openai/v1/realtime/calls) resolve the same
+ way no matter which feature a deployment happens to hit first. Features with a
+ reserved slot go back where they were eagerly included; the rest follow every
+ eager route."""
+ rank: Final = MappingProxyType({f.module_path: i for i, f in enumerate(features)})
+ modules: Final = tuple(sorted(lazy_routes, key=lambda m: rank.get(m, len(rank))))
+ lazy_ids: Final = frozenset(id(route) for module_path in modules for route in lazy_routes[module_path])
+ eager: Final = tuple(route for route in routes if id(route) not in lazy_ids)
+
+ def slot_of(module_path: str) -> int:
+ return min(slots.get(module_path, len(eager)), len(eager))
+
+ return tuple(
+ route
+ for index in range(len(eager) + 1)
+ for route in (
+ *(r for module_path in modules if slot_of(module_path) == index for r in lazy_routes[module_path]),
+ *eager[index : index + 1],
+ )
+ )
+
+
+async def _force_load(app: "FastAPI", feat: LazyFeature, features: tuple[LazyFeature, ...] = LAZY_FEATURES) -> bool:
"""Import + register a lazy feature exactly once per (app, module).
Shared by the middleware and the /lazy/warm endpoint."""
if not hasattr(app.state, "lazy_loaded"):
@@ -330,7 +407,18 @@ async def _force_load(app: "FastAPI", feat: LazyFeature) -> bool:
# mutates app.router.routes, so it stays on the loop thread.
loop: Final = asyncio.get_running_loop()
module: Final = await loop.run_in_executor(None, importlib.import_module, feat.module_path)
+ before: Final = len(app.router.routes)
feat.register_fn(app, module)
+ previous: Final[Mapping[str, tuple[BaseRoute, ...]]] = (
+ app.state.lazy_routes if hasattr(app.state, "lazy_routes") else MappingProxyType({})
+ )
+ lazy_routes: Final[Mapping[str, tuple[BaseRoute, ...]]] = MappingProxyType(
+ {**previous, feat.module_path: tuple(app.router.routes[before:])}
+ )
+ app.state.lazy_routes = lazy_routes # rebind-ok: the app owns the record of which routes each feature added
+ app.router.routes[:] = _in_registry_order( # rebind-ok: the app owns its route table
+ app.router.routes, lazy_routes, features, _lazy_slots(app)
+ )
app.state.lazy_loaded.add(feat.module_path)
app.openapi_schema = None
verbose_proxy_logger.info(
diff --git a/litellm/proxy/_lazy_openapi_snapshot.json b/litellm/proxy/_lazy_openapi_snapshot.json
index f0af17ab818..53af85baac6 100644
--- a/litellm/proxy/_lazy_openapi_snapshot.json
+++ b/litellm/proxy/_lazy_openapi_snapshot.json
@@ -4335,7 +4335,7 @@
"/anthropic/{endpoint}": {
"delete": {
"description": "[Docs](https://docs.litellm.ai/docs/pass_through/anthropic_completion)",
- "operationId": "anthropic_proxy_route_anthropic__endpoint__delete",
+ "operationId": "anthropic_proxy_route_anthropic__endpoint__delete_2",
"parameters": [
{
"in": "path",
@@ -4379,7 +4379,7 @@
},
"get": {
"description": "[Docs](https://docs.litellm.ai/docs/pass_through/anthropic_completion)",
- "operationId": "anthropic_proxy_route_anthropic__endpoint__get",
+ "operationId": "anthropic_proxy_route_anthropic__endpoint__get_2",
"parameters": [
{
"in": "path",
@@ -4423,7 +4423,7 @@
},
"patch": {
"description": "[Docs](https://docs.litellm.ai/docs/pass_through/anthropic_completion)",
- "operationId": "anthropic_proxy_route_anthropic__endpoint__patch",
+ "operationId": "anthropic_proxy_route_anthropic__endpoint__patch_2",
"parameters": [
{
"in": "path",
@@ -4467,7 +4467,7 @@
},
"post": {
"description": "[Docs](https://docs.litellm.ai/docs/pass_through/anthropic_completion)",
- "operationId": "anthropic_proxy_route_anthropic__endpoint__post",
+ "operationId": "anthropic_proxy_route_anthropic__endpoint__post_2",
"parameters": [
{
"in": "path",
@@ -4511,7 +4511,7 @@
},
"put": {
"description": "[Docs](https://docs.litellm.ai/docs/pass_through/anthropic_completion)",
- "operationId": "anthropic_proxy_route_anthropic__endpoint__put",
+ "operationId": "anthropic_proxy_route_anthropic__endpoint__put_2",
"parameters": [
{
"in": "path",
@@ -15368,22 +15368,5009 @@
"APIKeyHeader": []
}
],
- "summary": "Delete Jwt Key Mapping",
+ "summary": "Delete Jwt Key Mapping",
+ "tags": [
+ "jwt_mappings"
+ ]
+ }
+ },
+ "/jwt/key/mapping/info": {
+ "get": {
+ "operationId": "info_jwt_key_mapping_jwt_key_mapping_info_get",
+ "parameters": [
+ {
+ "in": "query",
+ "name": "id",
+ "required": true,
+ "schema": {
+ "title": "Id",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/JWTKeyMappingResponse"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Info Jwt Key Mapping",
+ "tags": [
+ "jwt_mappings"
+ ]
+ }
+ },
+ "/jwt/key/mapping/list": {
+ "get": {
+ "operationId": "list_jwt_key_mappings_jwt_key_mapping_list_get",
+ "parameters": [
+ {
+ "description": "Page number",
+ "in": "query",
+ "name": "page",
+ "required": false,
+ "schema": {
+ "default": 1,
+ "description": "Page number",
+ "minimum": 1,
+ "title": "Page",
+ "type": "integer"
+ }
+ },
+ {
+ "description": "Page size",
+ "in": "query",
+ "name": "size",
+ "required": false,
+ "schema": {
+ "default": 50,
+ "description": "Page size",
+ "maximum": 100,
+ "minimum": 1,
+ "title": "Size",
+ "type": "integer"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "List Jwt Key Mappings",
+ "tags": [
+ "jwt_mappings"
+ ]
+ }
+ },
+ "/jwt/key/mapping/new": {
+ "post": {
+ "operationId": "create_jwt_key_mapping_jwt_key_mapping_new_post",
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/CreateJWTKeyMappingRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/JWTKeyMappingResponse"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Create Jwt Key Mapping",
+ "tags": [
+ "jwt_mappings"
+ ]
+ }
+ },
+ "/jwt/key/mapping/update": {
+ "post": {
+ "operationId": "update_jwt_key_mapping_jwt_key_mapping_update_post",
+ "requestBody": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/UpdateJWTKeyMappingRequest"
+ }
+ }
+ },
+ "required": true
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/JWTKeyMappingResponse"
+ }
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Update Jwt Key Mapping",
+ "tags": [
+ "jwt_mappings"
+ ]
+ }
+ }
+ }
+ },
+ "langfuse_passthrough": {
+ "components": {
+ "schemas": {
+ "HTTPValidationError": {
+ "properties": {
+ "detail": {
+ "items": {
+ "$ref": "#/components/schemas/ValidationError"
+ },
+ "title": "Detail",
+ "type": "array"
+ }
+ },
+ "title": "HTTPValidationError",
+ "type": "object"
+ },
+ "ValidationError": {
+ "properties": {
+ "ctx": {
+ "title": "Context",
+ "type": "object"
+ },
+ "input": {
+ "title": "Input"
+ },
+ "loc": {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "integer"
+ }
+ ]
+ },
+ "title": "Location",
+ "type": "array"
+ },
+ "msg": {
+ "title": "Message",
+ "type": "string"
+ },
+ "type": {
+ "title": "Error Type",
+ "type": "string"
+ }
+ },
+ "required": [
+ "loc",
+ "msg",
+ "type"
+ ],
+ "title": "ValidationError",
+ "type": "object"
+ }
+ }
+ },
+ "paths": {
+ "/langfuse/{endpoint}": {
+ "delete": {
+ "description": "Call Langfuse via LiteLLM proxy. Works with Langfuse SDK.\n\n[Docs](https://docs.litellm.ai/docs/pass_through/langfuse)",
+ "operationId": "langfuse_proxy_route_langfuse__endpoint__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Langfuse Proxy Route",
+ "tags": [
+ "langfuse_passthrough"
+ ]
+ },
+ "get": {
+ "description": "Call Langfuse via LiteLLM proxy. Works with Langfuse SDK.\n\n[Docs](https://docs.litellm.ai/docs/pass_through/langfuse)",
+ "operationId": "langfuse_proxy_route_langfuse__endpoint__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Langfuse Proxy Route",
+ "tags": [
+ "langfuse_passthrough"
+ ]
+ },
+ "patch": {
+ "description": "Call Langfuse via LiteLLM proxy. Works with Langfuse SDK.\n\n[Docs](https://docs.litellm.ai/docs/pass_through/langfuse)",
+ "operationId": "langfuse_proxy_route_langfuse__endpoint__patch",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Langfuse Proxy Route",
+ "tags": [
+ "langfuse_passthrough"
+ ]
+ },
+ "post": {
+ "description": "Call Langfuse via LiteLLM proxy. Works with Langfuse SDK.\n\n[Docs](https://docs.litellm.ai/docs/pass_through/langfuse)",
+ "operationId": "langfuse_proxy_route_langfuse__endpoint__post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Langfuse Proxy Route",
+ "tags": [
+ "langfuse_passthrough"
+ ]
+ },
+ "put": {
+ "description": "Call Langfuse via LiteLLM proxy. Works with Langfuse SDK.\n\n[Docs](https://docs.litellm.ai/docs/pass_through/langfuse)",
+ "operationId": "langfuse_proxy_route_langfuse__endpoint__put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Langfuse Proxy Route",
+ "tags": [
+ "langfuse_passthrough"
+ ]
+ }
+ }
+ }
+ },
+ "llm_passthrough": {
+ "components": {
+ "schemas": {
+ "Body_image_edit_api_openai_deployments__model__images_edits_post": {
+ "properties": {
+ "image": {
+ "anyOf": [
+ {
+ "items": {
+ "contentMediaType": "application/octet-stream",
+ "type": "string"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Image"
+ },
+ "image[]": {
+ "anyOf": [
+ {
+ "items": {
+ "contentMediaType": "application/octet-stream",
+ "type": "string"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Image[]"
+ },
+ "mask": {
+ "anyOf": [
+ {
+ "items": {
+ "contentMediaType": "application/octet-stream",
+ "type": "string"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Mask"
+ },
+ "mask[]": {
+ "anyOf": [
+ {
+ "items": {
+ "contentMediaType": "application/octet-stream",
+ "type": "string"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Mask[]"
+ }
+ },
+ "title": "Body_image_edit_api_openai_deployments__model__images_edits_post",
+ "type": "object"
+ },
+ "ErrorResponse": {
+ "properties": {
+ "detail": {
+ "additionalProperties": true,
+ "example": {
+ "error": {
+ "code": "error_code",
+ "message": "Error message",
+ "param": "error_param",
+ "type": "error_type"
+ }
+ },
+ "title": "Detail",
+ "type": "object"
+ }
+ },
+ "required": [
+ "detail"
+ ],
+ "title": "ErrorResponse",
+ "type": "object"
+ },
+ "HTTPValidationError": {
+ "properties": {
+ "detail": {
+ "items": {
+ "$ref": "#/components/schemas/ValidationError"
+ },
+ "title": "Detail",
+ "type": "array"
+ }
+ },
+ "title": "HTTPValidationError",
+ "type": "object"
+ },
+ "RealtimeClientSecretResponse": {
+ "description": "Response from POST /v1/realtime/client_secrets.\n\nBoth the top-level `value` and `session.client_secret.value`\nwill contain the encrypted token instead of the raw ephemeral key.\nThe `session` field is kept as a raw dict so unknown fields pass through.",
+ "properties": {
+ "expires_at": {
+ "anyOf": [
+ {
+ "type": "integer"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Expires At"
+ },
+ "session": {
+ "anyOf": [
+ {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Session"
+ },
+ "value": {
+ "title": "Value",
+ "type": "string"
+ }
+ },
+ "required": [
+ "value"
+ ],
+ "title": "RealtimeClientSecretResponse",
+ "type": "object"
+ },
+ "RealtimeTranscriptionSessionResponse": {
+ "additionalProperties": true,
+ "description": "Response from POST /v1/realtime/transcription_sessions.\n\n`client_secret.value` contains the encrypted token instead of the raw\nephemeral key. Unknown fields pass through unchanged.",
+ "properties": {
+ "client_secret": {
+ "anyOf": [
+ {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Client Secret"
+ }
+ },
+ "title": "RealtimeTranscriptionSessionResponse",
+ "type": "object"
+ },
+ "ValidationError": {
+ "properties": {
+ "ctx": {
+ "title": "Context",
+ "type": "object"
+ },
+ "input": {
+ "title": "Input"
+ },
+ "loc": {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "integer"
+ }
+ ]
+ },
+ "title": "Location",
+ "type": "array"
+ },
+ "msg": {
+ "title": "Message",
+ "type": "string"
+ },
+ "type": {
+ "title": "Error Type",
+ "type": "string"
+ }
+ },
+ "required": [
+ "loc",
+ "msg",
+ "type"
+ ],
+ "title": "ValidationError",
+ "type": "object"
+ }
+ }
+ },
+ "paths": {
+ "/anthropic/{endpoint}": {
+ "delete": {
+ "description": "[Docs](https://docs.litellm.ai/docs/pass_through/anthropic_completion)",
+ "operationId": "anthropic_proxy_route_anthropic__endpoint__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Anthropic Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "get": {
+ "description": "[Docs](https://docs.litellm.ai/docs/pass_through/anthropic_completion)",
+ "operationId": "anthropic_proxy_route_anthropic__endpoint__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Anthropic Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "patch": {
+ "description": "[Docs](https://docs.litellm.ai/docs/pass_through/anthropic_completion)",
+ "operationId": "anthropic_proxy_route_anthropic__endpoint__patch",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Anthropic Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "post": {
+ "description": "[Docs](https://docs.litellm.ai/docs/pass_through/anthropic_completion)",
+ "operationId": "anthropic_proxy_route_anthropic__endpoint__post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Anthropic Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "put": {
+ "description": "[Docs](https://docs.litellm.ai/docs/pass_through/anthropic_completion)",
+ "operationId": "anthropic_proxy_route_anthropic__endpoint__put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Anthropic Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ }
+ },
+ "/assemblyai/{endpoint}": {
+ "delete": {
+ "operationId": "assemblyai_proxy_route_assemblyai__endpoint__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Assemblyai Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "get": {
+ "operationId": "assemblyai_proxy_route_assemblyai__endpoint__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Assemblyai Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "patch": {
+ "operationId": "assemblyai_proxy_route_assemblyai__endpoint__patch",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Assemblyai Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "post": {
+ "operationId": "assemblyai_proxy_route_assemblyai__endpoint__post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Assemblyai Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "put": {
+ "operationId": "assemblyai_proxy_route_assemblyai__endpoint__put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Assemblyai Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ }
+ },
+ "/azure/{endpoint}": {
+ "delete": {
+ "description": "Call any azure endpoint using the proxy.\n\nJust use `{PROXY_BASE_URL}/azure/{endpoint:path}`\n\nChecks if the deployment id in the url is a litellm model name. If so, it will route using the llm_router.allm_passthrough_route.",
+ "operationId": "azure_proxy_route_azure__endpoint__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Azure Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "get": {
+ "description": "Call any azure endpoint using the proxy.\n\nJust use `{PROXY_BASE_URL}/azure/{endpoint:path}`\n\nChecks if the deployment id in the url is a litellm model name. If so, it will route using the llm_router.allm_passthrough_route.",
+ "operationId": "azure_proxy_route_azure__endpoint__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Azure Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "patch": {
+ "description": "Call any azure endpoint using the proxy.\n\nJust use `{PROXY_BASE_URL}/azure/{endpoint:path}`\n\nChecks if the deployment id in the url is a litellm model name. If so, it will route using the llm_router.allm_passthrough_route.",
+ "operationId": "azure_proxy_route_azure__endpoint__patch",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Azure Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "post": {
+ "description": "Call any azure endpoint using the proxy.\n\nJust use `{PROXY_BASE_URL}/azure/{endpoint:path}`\n\nChecks if the deployment id in the url is a litellm model name. If so, it will route using the llm_router.allm_passthrough_route.",
+ "operationId": "azure_proxy_route_azure__endpoint__post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Azure Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "put": {
+ "description": "Call any azure endpoint using the proxy.\n\nJust use `{PROXY_BASE_URL}/azure/{endpoint:path}`\n\nChecks if the deployment id in the url is a litellm model name. If so, it will route using the llm_router.allm_passthrough_route.",
+ "operationId": "azure_proxy_route_azure__endpoint__put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Azure Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ }
+ },
+ "/azure_ai/{endpoint}": {
+ "delete": {
+ "description": "Call any azure endpoint using the proxy.\n\nJust use `{PROXY_BASE_URL}/azure/{endpoint:path}`\n\nChecks if the deployment id in the url is a litellm model name. If so, it will route using the llm_router.allm_passthrough_route.",
+ "operationId": "azure_proxy_route_azure_ai__endpoint__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Azure Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "get": {
+ "description": "Call any azure endpoint using the proxy.\n\nJust use `{PROXY_BASE_URL}/azure/{endpoint:path}`\n\nChecks if the deployment id in the url is a litellm model name. If so, it will route using the llm_router.allm_passthrough_route.",
+ "operationId": "azure_proxy_route_azure_ai__endpoint__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Azure Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "patch": {
+ "description": "Call any azure endpoint using the proxy.\n\nJust use `{PROXY_BASE_URL}/azure/{endpoint:path}`\n\nChecks if the deployment id in the url is a litellm model name. If so, it will route using the llm_router.allm_passthrough_route.",
+ "operationId": "azure_proxy_route_azure_ai__endpoint__patch",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Azure Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "post": {
+ "description": "Call any azure endpoint using the proxy.\n\nJust use `{PROXY_BASE_URL}/azure/{endpoint:path}`\n\nChecks if the deployment id in the url is a litellm model name. If so, it will route using the llm_router.allm_passthrough_route.",
+ "operationId": "azure_proxy_route_azure_ai__endpoint__post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Azure Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "put": {
+ "description": "Call any azure endpoint using the proxy.\n\nJust use `{PROXY_BASE_URL}/azure/{endpoint:path}`\n\nChecks if the deployment id in the url is a litellm model name. If so, it will route using the llm_router.allm_passthrough_route.",
+ "operationId": "azure_proxy_route_azure_ai__endpoint__put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Azure Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ }
+ },
+ "/bedrock/{endpoint}": {
+ "delete": {
+ "description": "This is the v1 passthrough for Bedrock.\nV2 is handled by the `/bedrock/v2` endpoint.\n[Docs](https://docs.litellm.ai/docs/pass_through/bedrock)",
+ "operationId": "bedrock_proxy_route_bedrock__endpoint__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Bedrock Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "get": {
+ "description": "This is the v1 passthrough for Bedrock.\nV2 is handled by the `/bedrock/v2` endpoint.\n[Docs](https://docs.litellm.ai/docs/pass_through/bedrock)",
+ "operationId": "bedrock_proxy_route_bedrock__endpoint__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Bedrock Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "patch": {
+ "description": "This is the v1 passthrough for Bedrock.\nV2 is handled by the `/bedrock/v2` endpoint.\n[Docs](https://docs.litellm.ai/docs/pass_through/bedrock)",
+ "operationId": "bedrock_proxy_route_bedrock__endpoint__patch",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Bedrock Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "post": {
+ "description": "This is the v1 passthrough for Bedrock.\nV2 is handled by the `/bedrock/v2` endpoint.\n[Docs](https://docs.litellm.ai/docs/pass_through/bedrock)",
+ "operationId": "bedrock_proxy_route_bedrock__endpoint__post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Bedrock Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "put": {
+ "description": "This is the v1 passthrough for Bedrock.\nV2 is handled by the `/bedrock/v2` endpoint.\n[Docs](https://docs.litellm.ai/docs/pass_through/bedrock)",
+ "operationId": "bedrock_proxy_route_bedrock__endpoint__put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Bedrock Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ }
+ },
+ "/cohere/{endpoint}": {
+ "delete": {
+ "description": "[Docs](https://docs.litellm.ai/docs/pass_through/cohere)",
+ "operationId": "cohere_proxy_route_cohere__endpoint__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Cohere Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "get": {
+ "description": "[Docs](https://docs.litellm.ai/docs/pass_through/cohere)",
+ "operationId": "cohere_proxy_route_cohere__endpoint__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Cohere Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "patch": {
+ "description": "[Docs](https://docs.litellm.ai/docs/pass_through/cohere)",
+ "operationId": "cohere_proxy_route_cohere__endpoint__patch",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Cohere Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "post": {
+ "description": "[Docs](https://docs.litellm.ai/docs/pass_through/cohere)",
+ "operationId": "cohere_proxy_route_cohere__endpoint__post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Cohere Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "put": {
+ "description": "[Docs](https://docs.litellm.ai/docs/pass_through/cohere)",
+ "operationId": "cohere_proxy_route_cohere__endpoint__put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Cohere Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ }
+ },
+ "/comprehendmedical": {
+ "post": {
+ "description": "AWS-SDK-shaped pass-through for Amazon Comprehend Medical: point the SDK's\n`endpoint_url` at `/comprehendmedical` and the operation is read from the\n`X-Amz-Target` header, per the AWS JSON 1.1 protocol.\n\n[Docs](https://docs.litellm.ai/docs/pass_through/comprehend_medical)",
+ "operationId": "comprehend_medical_sdk_proxy_route_comprehendmedical_post",
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Comprehend Medical Sdk Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ }
+ },
+ "/comprehendmedical/{operation}": {
+ "post": {
+ "description": "Pass-through for Amazon Comprehend Medical, e.g. `POST /comprehendmedical/DetectEntitiesV2`.\n\nThe request body is forwarded as-is to the AWS JSON 1.1 API and signed with SigV4\nusing the proxy's AWS credentials.\n\n[Docs](https://docs.litellm.ai/docs/pass_through/comprehend_medical)",
+ "operationId": "comprehend_medical_proxy_route_comprehendmedical__operation__post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "operation",
+ "required": true,
+ "schema": {
+ "title": "Operation",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Comprehend Medical Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ }
+ },
+ "/cursor/chat/completions": {
+ "post": {
+ "description": "Cursor BYOK endpoint. Accepts both request shapes Cursor sends to its OpenAI-compatible\nbase URL and always answers in chat completions format.\n\nCursor agent mode sends Responses API format bodies (`input`, flat tool defs, `reasoning`,\ncustom tools) to the chat/completions path while expecting chat completions responses;\nthose are routed through the Responses API pipeline and converted back. Genuine chat\ncompletions bodies (`messages` present) are routed through the standard chat completions\npipeline, after normalizing each level of the `tools` array and `tool_choice` to the chat\ncompletions shapes OpenAI requires. Cursor mixes Responses API shapes into chat bodies\nper level, independently: a flat tool def (`{\"type\": \"custom\", \"name\": \"ApplyPatch\", ...}`)\ngets nested under `custom`, and a flat grammar format\n(`{\"type\": \"grammar\", \"definition\", \"syntax\"}`) gets wrapped as\n`{\"type\": \"grammar\", \"grammar\": {...}}` wherever it appears, including inside tool defs\nCursor already sent pre-nested.\n\n```bash\ncurl -X POST http://localhost:4000/cursor/chat/completions -H \"Content-Type: application/json\" -H \"Authorization: Bearer sk-1234\" -d '{\n \"model\": \"gpt-4o\",\n \"input\": [{\"role\": \"user\", \"content\": \"Hello\"}]\n}'\nResponds back in chat completions format.\n```",
+ "operationId": "cursor_chat_completions_cursor_chat_completions_post",
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Cursor Chat Completions",
+ "tags": [
+ "llm_passthrough"
+ ]
+ }
+ },
+ "/cursor/models": {
+ "get": {
+ "description": "OpenAI-compatible model listing for the Cursor BYOK base URL.\n\nClients pointed at `<proxy>/cursor` as an OpenAI-compatible base URL resolve and\nverify models via `GET {base}/models` (the OpenAI SDK contract). Without this\nroute those requests fall through to the Cursor Cloud Agents passthrough, which\ndemands a Cursor API key and 401s, so key verification silently fails before any\nchat request is ever sent. Delegates to the standard `/v1/models` handler.",
+ "operationId": "cursor_model_list_cursor_models_get",
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Cursor Model List",
+ "tags": [
+ "llm_passthrough"
+ ]
+ }
+ },
+ "/cursor/v1/models": {
+ "get": {
+ "description": "OpenAI-compatible model listing for the Cursor BYOK base URL.\n\nClients pointed at `<proxy>/cursor` as an OpenAI-compatible base URL resolve and\nverify models via `GET {base}/models` (the OpenAI SDK contract). Without this\nroute those requests fall through to the Cursor Cloud Agents passthrough, which\ndemands a Cursor API key and 401s, so key verification silently fails before any\nchat request is ever sent. Delegates to the standard `/v1/models` handler.",
+ "operationId": "cursor_model_list_cursor_v1_models_get",
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Cursor Model List",
+ "tags": [
+ "llm_passthrough"
+ ]
+ }
+ },
+ "/cursor/{endpoint}": {
+ "delete": {
+ "description": "Pass-through endpoint for the Cursor Cloud Agents API.\n\nSupports all Cursor Cloud Agents endpoints:\n- GET /v0/agents \u2014 List agents\n- POST /v0/agents \u2014 Launch an agent\n- GET /v0/agents/{id} \u2014 Agent status\n- GET /v0/agents/{id}/conversation \u2014 Agent conversation\n- POST /v0/agents/{id}/followup \u2014 Add follow-up\n- POST /v0/agents/{id}/stop \u2014 Stop an agent\n- DELETE /v0/agents/{id} \u2014 Delete an agent\n- GET /v0/me \u2014 API key info\n- GET /v0/models \u2014 List models\n- GET /v0/repositories \u2014 List GitHub repositories\n\nUses Basic Authentication (base64-encoded `API_KEY:`).\n\nCredential lookup order:\n1. passthrough_endpoint_router (config.yaml deployments with use_in_pass_through)\n2. litellm.credential_list (credentials added via UI)\n3. CURSOR_API_KEY environment variable",
+ "operationId": "cursor_proxy_route_cursor__endpoint__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Cursor Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "get": {
+ "description": "Pass-through endpoint for the Cursor Cloud Agents API.\n\nSupports all Cursor Cloud Agents endpoints:\n- GET /v0/agents \u2014 List agents\n- POST /v0/agents \u2014 Launch an agent\n- GET /v0/agents/{id} \u2014 Agent status\n- GET /v0/agents/{id}/conversation \u2014 Agent conversation\n- POST /v0/agents/{id}/followup \u2014 Add follow-up\n- POST /v0/agents/{id}/stop \u2014 Stop an agent\n- DELETE /v0/agents/{id} \u2014 Delete an agent\n- GET /v0/me \u2014 API key info\n- GET /v0/models \u2014 List models\n- GET /v0/repositories \u2014 List GitHub repositories\n\nUses Basic Authentication (base64-encoded `API_KEY:`).\n\nCredential lookup order:\n1. passthrough_endpoint_router (config.yaml deployments with use_in_pass_through)\n2. litellm.credential_list (credentials added via UI)\n3. CURSOR_API_KEY environment variable",
+ "operationId": "cursor_proxy_route_cursor__endpoint__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Cursor Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "patch": {
+ "description": "Pass-through endpoint for the Cursor Cloud Agents API.\n\nSupports all Cursor Cloud Agents endpoints:\n- GET /v0/agents \u2014 List agents\n- POST /v0/agents \u2014 Launch an agent\n- GET /v0/agents/{id} \u2014 Agent status\n- GET /v0/agents/{id}/conversation \u2014 Agent conversation\n- POST /v0/agents/{id}/followup \u2014 Add follow-up\n- POST /v0/agents/{id}/stop \u2014 Stop an agent\n- DELETE /v0/agents/{id} \u2014 Delete an agent\n- GET /v0/me \u2014 API key info\n- GET /v0/models \u2014 List models\n- GET /v0/repositories \u2014 List GitHub repositories\n\nUses Basic Authentication (base64-encoded `API_KEY:`).\n\nCredential lookup order:\n1. passthrough_endpoint_router (config.yaml deployments with use_in_pass_through)\n2. litellm.credential_list (credentials added via UI)\n3. CURSOR_API_KEY environment variable",
+ "operationId": "cursor_proxy_route_cursor__endpoint__patch",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Cursor Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "post": {
+ "description": "Pass-through endpoint for the Cursor Cloud Agents API.\n\nSupports all Cursor Cloud Agents endpoints:\n- GET /v0/agents \u2014 List agents\n- POST /v0/agents \u2014 Launch an agent\n- GET /v0/agents/{id} \u2014 Agent status\n- GET /v0/agents/{id}/conversation \u2014 Agent conversation\n- POST /v0/agents/{id}/followup \u2014 Add follow-up\n- POST /v0/agents/{id}/stop \u2014 Stop an agent\n- DELETE /v0/agents/{id} \u2014 Delete an agent\n- GET /v0/me \u2014 API key info\n- GET /v0/models \u2014 List models\n- GET /v0/repositories \u2014 List GitHub repositories\n\nUses Basic Authentication (base64-encoded `API_KEY:`).\n\nCredential lookup order:\n1. passthrough_endpoint_router (config.yaml deployments with use_in_pass_through)\n2. litellm.credential_list (credentials added via UI)\n3. CURSOR_API_KEY environment variable",
+ "operationId": "cursor_proxy_route_cursor__endpoint__post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Cursor Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "put": {
+ "description": "Pass-through endpoint for the Cursor Cloud Agents API.\n\nSupports all Cursor Cloud Agents endpoints:\n- GET /v0/agents \u2014 List agents\n- POST /v0/agents \u2014 Launch an agent\n- GET /v0/agents/{id} \u2014 Agent status\n- GET /v0/agents/{id}/conversation \u2014 Agent conversation\n- POST /v0/agents/{id}/followup \u2014 Add follow-up\n- POST /v0/agents/{id}/stop \u2014 Stop an agent\n- DELETE /v0/agents/{id} \u2014 Delete an agent\n- GET /v0/me \u2014 API key info\n- GET /v0/models \u2014 List models\n- GET /v0/repositories \u2014 List GitHub repositories\n\nUses Basic Authentication (base64-encoded `API_KEY:`).\n\nCredential lookup order:\n1. passthrough_endpoint_router (config.yaml deployments with use_in_pass_through)\n2. litellm.credential_list (credentials added via UI)\n3. CURSOR_API_KEY environment variable",
+ "operationId": "cursor_proxy_route_cursor__endpoint__put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Cursor Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ }
+ },
+ "/eu.assemblyai/{endpoint}": {
+ "delete": {
+ "operationId": "assemblyai_proxy_route_eu_assemblyai__endpoint__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Assemblyai Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "get": {
+ "operationId": "assemblyai_proxy_route_eu_assemblyai__endpoint__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Assemblyai Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "patch": {
+ "operationId": "assemblyai_proxy_route_eu_assemblyai__endpoint__patch",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Assemblyai Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "post": {
+ "operationId": "assemblyai_proxy_route_eu_assemblyai__endpoint__post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Assemblyai Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "put": {
+ "operationId": "assemblyai_proxy_route_eu_assemblyai__endpoint__put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Assemblyai Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ }
+ },
+ "/gemini/{endpoint}": {
+ "delete": {
+ "description": "[Docs](https://docs.litellm.ai/docs/pass_through/google_ai_studio)",
+ "operationId": "gemini_proxy_route_gemini__endpoint__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Gemini Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "get": {
+ "description": "[Docs](https://docs.litellm.ai/docs/pass_through/google_ai_studio)",
+ "operationId": "gemini_proxy_route_gemini__endpoint__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Gemini Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "patch": {
+ "description": "[Docs](https://docs.litellm.ai/docs/pass_through/google_ai_studio)",
+ "operationId": "gemini_proxy_route_gemini__endpoint__patch",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Gemini Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "post": {
+ "description": "[Docs](https://docs.litellm.ai/docs/pass_through/google_ai_studio)",
+ "operationId": "gemini_proxy_route_gemini__endpoint__post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Gemini Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "put": {
+ "description": "[Docs](https://docs.litellm.ai/docs/pass_through/google_ai_studio)",
+ "operationId": "gemini_proxy_route_gemini__endpoint__put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Gemini Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ }
+ },
+ "/gigachat/{endpoint}": {
+ "delete": {
+ "description": "[Docs](https://docs.litellm.ai/docs/pass_through/gigachat)",
+ "operationId": "gigachat_proxy_route_gigachat__endpoint__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Gigachat Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "get": {
+ "description": "[Docs](https://docs.litellm.ai/docs/pass_through/gigachat)",
+ "operationId": "gigachat_proxy_route_gigachat__endpoint__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Gigachat Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "patch": {
+ "description": "[Docs](https://docs.litellm.ai/docs/pass_through/gigachat)",
+ "operationId": "gigachat_proxy_route_gigachat__endpoint__patch",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Gigachat Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "post": {
+ "description": "[Docs](https://docs.litellm.ai/docs/pass_through/gigachat)",
+ "operationId": "gigachat_proxy_route_gigachat__endpoint__post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Gigachat Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "put": {
+ "description": "[Docs](https://docs.litellm.ai/docs/pass_through/gigachat)",
+ "operationId": "gigachat_proxy_route_gigachat__endpoint__put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Gigachat Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ }
+ },
+ "/milvus/{endpoint}": {
+ "delete": {
+ "description": "Enable using Milvus `/vectors` endpoint as a pass-through endpoint.",
+ "operationId": "milvus_proxy_route_milvus__endpoint__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Milvus Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "get": {
+ "description": "Enable using Milvus `/vectors` endpoint as a pass-through endpoint.",
+ "operationId": "milvus_proxy_route_milvus__endpoint__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Milvus Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "patch": {
+ "description": "Enable using Milvus `/vectors` endpoint as a pass-through endpoint.",
+ "operationId": "milvus_proxy_route_milvus__endpoint__patch",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Milvus Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "post": {
+ "description": "Enable using Milvus `/vectors` endpoint as a pass-through endpoint.",
+ "operationId": "milvus_proxy_route_milvus__endpoint__post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Milvus Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "put": {
+ "description": "Enable using Milvus `/vectors` endpoint as a pass-through endpoint.",
+ "operationId": "milvus_proxy_route_milvus__endpoint__put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Milvus Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ }
+ },
+ "/mistral/{endpoint}": {
+ "delete": {
+ "description": "[Docs](https://docs.litellm.ai/docs/pass_through/mistral)",
+ "operationId": "mistral_proxy_route_mistral__endpoint__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Mistral Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "get": {
+ "description": "[Docs](https://docs.litellm.ai/docs/pass_through/mistral)",
+ "operationId": "mistral_proxy_route_mistral__endpoint__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Mistral Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "patch": {
+ "description": "[Docs](https://docs.litellm.ai/docs/pass_through/mistral)",
+ "operationId": "mistral_proxy_route_mistral__endpoint__patch",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Mistral Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "post": {
+ "description": "[Docs](https://docs.litellm.ai/docs/pass_through/mistral)",
+ "operationId": "mistral_proxy_route_mistral__endpoint__post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Mistral Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "put": {
+ "description": "[Docs](https://docs.litellm.ai/docs/pass_through/mistral)",
+ "operationId": "mistral_proxy_route_mistral__endpoint__put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Mistral Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ }
+ },
+ "/openai/deployments/{model}/chat/completions": {
+ "post": {
+ "description": "Follows the exact same API spec as `OpenAI's Chat API https://platform.openai.com/docs/api-reference/chat`\n\n```bash\ncurl -X POST http://localhost:4000/v1/chat/completions \n-H \"Content-Type: application/json\" \n-H \"Authorization: Bearer sk-1234\" \n-d '{\n \"model\": \"gpt-4o\",\n \"messages\": [\n {\n \"role\": \"user\",\n \"content\": \"Hello!\"\n }\n ]\n}'\n```",
+ "operationId": "chat_completion_openai_deployments__model__chat_completions_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "model",
+ "required": true,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Model"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful response"
+ },
+ "400": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
+ }
+ },
+ "description": "ContentPolicyViolationError"
+ },
+ "401": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
+ }
+ },
+ "description": "AuthenticationError"
+ },
+ "403": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
+ }
+ },
+ "description": "PermissionDeniedError"
+ },
+ "404": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
+ }
+ },
+ "description": "NotFoundError"
+ },
+ "408": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
+ }
+ },
+ "description": "Timeout"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
+ }
+ },
+ "description": "UnprocessableEntityError"
+ },
+ "429": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
+ }
+ },
+ "description": "\n Unified rate-limit error.\n\n Every rate-limit condition surfaced by litellm \u2014 whether it originated from\n an upstream LLM provider, a vendor batch endpoint, or one of litellm's own\n proxy-side limiters (parallel-requests, dynamic-rate, batch-rate, budget,\n max-iterations, etc.) \u2014 is raised as an instance of this class.\n\n The :attr:`category` attribute lets callers distinguish the source. See\n :class:`RateLimitErrorCategory` for the available values.\n "
+ },
+ "500": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
+ }
+ },
+ "description": "JSONSchemaValidationError"
+ },
+ "503": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/ErrorResponse"
+ }
+ }
+ },
+ "description": "APIConnectionError"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Chat Completion",
+ "tags": [
+ "llm_passthrough"
+ ]
+ }
+ },
+ "/openai/deployments/{model}/completions": {
+ "post": {
+ "description": "Follows the exact same API spec as `OpenAI's Completions API https://platform.openai.com/docs/api-reference/completions`\n\n```bash\ncurl -X POST http://localhost:4000/v1/completions \n-H \"Content-Type: application/json\" \n-H \"Authorization: Bearer sk-1234\" \n-d '{\n \"model\": \"gpt-3.5-turbo-instruct\",\n \"prompt\": \"Once upon a time\",\n \"max_tokens\": 50,\n \"temperature\": 0.7\n}'\n```",
+ "operationId": "completion_openai_deployments__model__completions_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "model",
+ "required": true,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Model"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Completion",
+ "tags": [
+ "llm_passthrough"
+ ]
+ }
+ },
+ "/openai/deployments/{model}/embeddings": {
+ "post": {
+ "description": "Follows the exact same API spec as `OpenAI's Embeddings API https://platform.openai.com/docs/api-reference/embeddings`\n\n```bash\ncurl -X POST http://localhost:4000/v1/embeddings \n-H \"Content-Type: application/json\" \n-H \"Authorization: Bearer sk-1234\" \n-d '{\n \"model\": \"text-embedding-ada-002\",\n \"input\": \"The quick brown fox jumps over the lazy dog\"\n}'\n```",
+ "operationId": "embeddings_openai_deployments__model__embeddings_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "model",
+ "required": true,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Model"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Embeddings",
+ "tags": [
+ "llm_passthrough"
+ ]
+ }
+ },
+ "/openai/deployments/{model}/images/edits": {
+ "post": {
+ "description": "Follows the OpenAI Images API spec: https://platform.openai.com/docs/api-reference/images/create\n\n```bash\ncurl -s -D >(grep -i x-request-id >&2) -o >(jq -r '.data[0].b64_json' | base64 --decode > gift-basket.png) -X POST \"http://localhost:4000/v1/images/edits\" -H \"Authorization: Bearer sk-1234\" -F \"model=gpt-image-1\" -F \"image[][email protected]\" -F 'prompt=Create a studio ghibli image of this'\n```",
+ "operationId": "image_edit_api_openai_deployments__model__images_edits_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "model",
+ "required": true,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Model"
+ }
+ }
+ ],
+ "requestBody": {
+ "content": {
+ "multipart/form-data": {
+ "schema": {
+ "$ref": "#/components/schemas/Body_image_edit_api_openai_deployments__model__images_edits_post"
+ }
+ }
+ }
+ },
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Image Edit Api",
+ "tags": [
+ "llm_passthrough"
+ ]
+ }
+ },
+ "/openai/deployments/{model}/images/generations": {
+ "post": {
+ "operationId": "image_generation_openai_deployments__model__images_generations_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "model",
+ "required": true,
+ "schema": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Model"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Image Generation",
+ "tags": [
+ "llm_passthrough"
+ ]
+ }
+ },
+ "/openai/v1/realtime/calls": {
+ "post": {
+ "operationId": "proxy_realtime_calls_openai_v1_realtime_calls_post",
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ }
+ },
+ "summary": "Proxy Realtime Calls",
+ "tags": [
+ "llm_passthrough"
+ ]
+ }
+ },
+ "/openai/v1/realtime/client_secrets": {
+ "post": {
+ "operationId": "create_realtime_client_secret_openai_v1_realtime_client_secrets_post",
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/RealtimeClientSecretResponse"
+ }
+ }
+ },
+ "description": "Successful Response"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Create Realtime Client Secret",
+ "tags": [
+ "llm_passthrough"
+ ]
+ }
+ },
+ "/openai/v1/realtime/transcription_sessions": {
+ "post": {
+ "description": "Create an ephemeral Realtime transcription session\n(POST /v1/realtime/transcription_sessions) for the WebRTC/WebSocket flow.\n\nMirrors the client_secrets route but targets the transcription_sessions\nendpoint and encrypts the ephemeral key returned under `client_secret.value`.",
+ "operationId": "create_realtime_transcription_session_openai_v1_realtime_transcription_sessions_post",
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/RealtimeTranscriptionSessionResponse"
+ }
+ }
+ },
+ "description": "Successful Response"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Create Realtime Transcription Session",
+ "tags": [
+ "llm_passthrough"
+ ]
+ }
+ },
+ "/openai/v1/responses": {
+ "post": {
+ "description": "Follows the OpenAI Responses API spec: https://platform.openai.com/docs/api-reference/responses\n\nSupports background mode with polling_via_cache for partial response retrieval.\nWhen background=true and polling_via_cache is enabled, returns a polling_id immediately\nand streams the response in the background, updating Redis cache.\n\n```bash\n# Normal request\ncurl -X POST http://localhost:4000/v1/responses -H \"Content-Type: application/json\" -H \"Authorization: Bearer sk-1234\" -d '{\n \"model\": \"gpt-4o\",\n \"input\": \"Tell me about AI\"\n}'\n\n# Background request with polling\ncurl -X POST http://localhost:4000/v1/responses -H \"Content-Type: application/json\" -H \"Authorization: Bearer sk-1234\" -d '{\n \"model\": \"gpt-4o\",\n \"input\": \"Tell me about AI\",\n \"background\": true\n}'\n```",
+ "operationId": "responses_api_openai_v1_responses_post",
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Responses Api",
+ "tags": [
+ "llm_passthrough"
+ ]
+ }
+ },
+ "/openai/v1/responses/compact": {
+ "post": {
+ "description": "Compact a response by running a compaction pass over a conversation.\n\nReturns encrypted, opaque items that can be used to reduce context size.\n\nFollows the OpenAI Responses API spec: https://platform.openai.com/docs/api-reference/responses/compact\n\n```bash\ncurl -X POST http://localhost:4000/v1/responses/compact -H \"Content-Type: application/json\" -H \"Authorization: Bearer sk-1234\" -d '{\n \"model\": \"gpt-4o\",\n \"input\": [{\"role\": \"user\", \"content\": \"Hello\"}]\n}'\n```",
+ "operationId": "compact_response_openai_v1_responses_compact_post",
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Compact Response",
+ "tags": [
+ "llm_passthrough"
+ ]
+ }
+ },
+ "/openai/v1/responses/input_tokens": {
+ "post": {
+ "description": "Count the input tokens of a Responses API request without calling the model.\n\nFollows the OpenAI Responses API spec: https://platform.openai.com/docs/api-reference/responses/input-tokens\n\n```bash\ncurl -X POST http://localhost:4000/v1/responses/input_tokens -H \"Content-Type: application/json\" -H \"Authorization: Bearer sk-1234\" -d '{\n \"model\": \"gpt-4o\",\n \"input\": \"Hello, how are you?\"\n}'\n```\n\nReturns: `{\"object\": \"response.input_tokens\", \"input_tokens\": <count>}`",
+ "operationId": "responses_input_tokens_openai_v1_responses_input_tokens_post",
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Responses Input Tokens",
+ "tags": [
+ "llm_passthrough"
+ ]
+ }
+ },
+ "/openai/v1/responses/{response_id}": {
+ "delete": {
+ "description": "Delete a response by ID.\n\nSupports both:\n- Polling IDs (litellm_poll_*): Deletes from Redis cache\n- Provider response IDs: Passes through to provider API\n\nFollows the OpenAI Responses API spec: https://platform.openai.com/docs/api-reference/responses/delete\n\n```bash\ncurl -X DELETE http://localhost:4000/v1/responses/resp_abc123 -H \"Authorization: Bearer sk-1234\"\n```",
+ "operationId": "delete_response_openai_v1_responses__response_id__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "response_id",
+ "required": true,
+ "schema": {
+ "title": "Response Id",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Delete Response",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "get": {
+ "description": "Get a response by ID.\n\nSupports both:\n- Polling IDs (litellm_poll_*): Returns cumulative cached content from background responses\n- Provider response IDs: Passes through to provider API\n\nFollows the OpenAI Responses API spec: https://platform.openai.com/docs/api-reference/responses/get\n\n```bash\n# Get polling response\ncurl -X GET http://localhost:4000/v1/responses/litellm_poll_abc123 -H \"Authorization: Bearer sk-1234\"\n\n# Get provider response\ncurl -X GET http://localhost:4000/v1/responses/resp_abc123 -H \"Authorization: Bearer sk-1234\"\n```",
+ "operationId": "get_response_openai_v1_responses__response_id__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "response_id",
+ "required": true,
+ "schema": {
+ "title": "Response Id",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Get Response",
+ "tags": [
+ "llm_passthrough"
+ ]
+ }
+ },
+ "/openai/v1/responses/{response_id}/cancel": {
+ "post": {
+ "description": "Cancel a response by ID.\n\nSupports both:\n- Polling IDs (litellm_poll_*): Cancels background response and updates status in Redis\n- Provider response IDs: Passes through to provider API\n\nFollows the OpenAI Responses API spec: https://platform.openai.com/docs/api-reference/responses/cancel\n\n```bash\n# Cancel polling response\ncurl -X POST http://localhost:4000/v1/responses/litellm_poll_abc123/cancel -H \"Authorization: Bearer sk-1234\"\n\n# Cancel provider response\ncurl -X POST http://localhost:4000/v1/responses/resp_abc123/cancel -H \"Authorization: Bearer sk-1234\"\n```",
+ "operationId": "cancel_response_openai_v1_responses__response_id__cancel_post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "response_id",
+ "required": true,
+ "schema": {
+ "title": "Response Id",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Cancel Response",
+ "tags": [
+ "llm_passthrough"
+ ]
+ }
+ },
+ "/openai/v1/responses/{response_id}/input_items": {
+ "get": {
+ "description": "List input items for a response.",
+ "operationId": "get_response_input_items_openai_v1_responses__response_id__input_items_get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "response_id",
+ "required": true,
+ "schema": {
+ "title": "Response Id",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Get Response Input Items",
+ "tags": [
+ "llm_passthrough"
+ ]
+ }
+ },
+ "/openai/{endpoint}": {
+ "delete": {
+ "description": "Pass-through endpoint for OpenAI API calls.\n\nAvailable on both routes:\n- /openai/{endpoint:path} - Standard OpenAI passthrough route\n- /openai_passthrough/{endpoint:path} - Dedicated passthrough route (recommended for Responses API)\n\nUse /openai_passthrough/* when you need guaranteed passthrough to OpenAI without conflicts\nwith LiteLLM's native implementations (e.g., for the Responses API at /v1/responses).\n\nExamples:\n Standard route:\n - /openai/v1/chat/completions\n - /openai/v1/assistants\n - /openai/v1/threads\n\n Dedicated passthrough (for Responses API):\n - /openai_passthrough/v1/responses\n - /openai_passthrough/v1/responses/{response_id}\n - /openai_passthrough/v1/responses/{response_id}/input_items\n\n[Docs](https://docs.litellm.ai/docs/pass_through/openai_passthrough)",
+ "operationId": "openai_proxy_route_openai__endpoint__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Openai Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "get": {
+ "description": "Pass-through endpoint for OpenAI API calls.\n\nAvailable on both routes:\n- /openai/{endpoint:path} - Standard OpenAI passthrough route\n- /openai_passthrough/{endpoint:path} - Dedicated passthrough route (recommended for Responses API)\n\nUse /openai_passthrough/* when you need guaranteed passthrough to OpenAI without conflicts\nwith LiteLLM's native implementations (e.g., for the Responses API at /v1/responses).\n\nExamples:\n Standard route:\n - /openai/v1/chat/completions\n - /openai/v1/assistants\n - /openai/v1/threads\n\n Dedicated passthrough (for Responses API):\n - /openai_passthrough/v1/responses\n - /openai_passthrough/v1/responses/{response_id}\n - /openai_passthrough/v1/responses/{response_id}/input_items\n\n[Docs](https://docs.litellm.ai/docs/pass_through/openai_passthrough)",
+ "operationId": "openai_proxy_route_openai__endpoint__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Openai Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "patch": {
+ "description": "Pass-through endpoint for OpenAI API calls.\n\nAvailable on both routes:\n- /openai/{endpoint:path} - Standard OpenAI passthrough route\n- /openai_passthrough/{endpoint:path} - Dedicated passthrough route (recommended for Responses API)\n\nUse /openai_passthrough/* when you need guaranteed passthrough to OpenAI without conflicts\nwith LiteLLM's native implementations (e.g., for the Responses API at /v1/responses).\n\nExamples:\n Standard route:\n - /openai/v1/chat/completions\n - /openai/v1/assistants\n - /openai/v1/threads\n\n Dedicated passthrough (for Responses API):\n - /openai_passthrough/v1/responses\n - /openai_passthrough/v1/responses/{response_id}\n - /openai_passthrough/v1/responses/{response_id}/input_items\n\n[Docs](https://docs.litellm.ai/docs/pass_through/openai_passthrough)",
+ "operationId": "openai_proxy_route_openai__endpoint__patch",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Openai Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "post": {
+ "description": "Pass-through endpoint for OpenAI API calls.\n\nAvailable on both routes:\n- /openai/{endpoint:path} - Standard OpenAI passthrough route\n- /openai_passthrough/{endpoint:path} - Dedicated passthrough route (recommended for Responses API)\n\nUse /openai_passthrough/* when you need guaranteed passthrough to OpenAI without conflicts\nwith LiteLLM's native implementations (e.g., for the Responses API at /v1/responses).\n\nExamples:\n Standard route:\n - /openai/v1/chat/completions\n - /openai/v1/assistants\n - /openai/v1/threads\n\n Dedicated passthrough (for Responses API):\n - /openai_passthrough/v1/responses\n - /openai_passthrough/v1/responses/{response_id}\n - /openai_passthrough/v1/responses/{response_id}/input_items\n\n[Docs](https://docs.litellm.ai/docs/pass_through/openai_passthrough)",
+ "operationId": "openai_proxy_route_openai__endpoint__post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Openai Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "put": {
+ "description": "Pass-through endpoint for OpenAI API calls.\n\nAvailable on both routes:\n- /openai/{endpoint:path} - Standard OpenAI passthrough route\n- /openai_passthrough/{endpoint:path} - Dedicated passthrough route (recommended for Responses API)\n\nUse /openai_passthrough/* when you need guaranteed passthrough to OpenAI without conflicts\nwith LiteLLM's native implementations (e.g., for the Responses API at /v1/responses).\n\nExamples:\n Standard route:\n - /openai/v1/chat/completions\n - /openai/v1/assistants\n - /openai/v1/threads\n\n Dedicated passthrough (for Responses API):\n - /openai_passthrough/v1/responses\n - /openai_passthrough/v1/responses/{response_id}\n - /openai_passthrough/v1/responses/{response_id}/input_items\n\n[Docs](https://docs.litellm.ai/docs/pass_through/openai_passthrough)",
+ "operationId": "openai_proxy_route_openai__endpoint__put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Openai Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ }
+ },
+ "/openai_passthrough/{endpoint}": {
+ "delete": {
+ "description": "Dedicated pass-through to the OpenAI API with no overlap with LiteLLM's native\nimplementations (e.g. the Responses API at /v1/responses).\n\nExamples:\n - /openai_passthrough/v1/responses\n - /openai_passthrough/v1/responses/{response_id}\n - /openai_passthrough/v1/responses/{response_id}/input_items\n\n[Docs](https://docs.litellm.ai/docs/pass_through/openai_passthrough)",
+ "operationId": "openai_passthrough_route_openai_passthrough__endpoint__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Openai Passthrough Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "get": {
+ "description": "Dedicated pass-through to the OpenAI API with no overlap with LiteLLM's native\nimplementations (e.g. the Responses API at /v1/responses).\n\nExamples:\n - /openai_passthrough/v1/responses\n - /openai_passthrough/v1/responses/{response_id}\n - /openai_passthrough/v1/responses/{response_id}/input_items\n\n[Docs](https://docs.litellm.ai/docs/pass_through/openai_passthrough)",
+ "operationId": "openai_passthrough_route_openai_passthrough__endpoint__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Openai Passthrough Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "patch": {
+ "description": "Dedicated pass-through to the OpenAI API with no overlap with LiteLLM's native\nimplementations (e.g. the Responses API at /v1/responses).\n\nExamples:\n - /openai_passthrough/v1/responses\n - /openai_passthrough/v1/responses/{response_id}\n - /openai_passthrough/v1/responses/{response_id}/input_items\n\n[Docs](https://docs.litellm.ai/docs/pass_through/openai_passthrough)",
+ "operationId": "openai_passthrough_route_openai_passthrough__endpoint__patch",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Openai Passthrough Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "post": {
+ "description": "Dedicated pass-through to the OpenAI API with no overlap with LiteLLM's native\nimplementations (e.g. the Responses API at /v1/responses).\n\nExamples:\n - /openai_passthrough/v1/responses\n - /openai_passthrough/v1/responses/{response_id}\n - /openai_passthrough/v1/responses/{response_id}/input_items\n\n[Docs](https://docs.litellm.ai/docs/pass_through/openai_passthrough)",
+ "operationId": "openai_passthrough_route_openai_passthrough__endpoint__post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Openai Passthrough Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "put": {
+ "description": "Dedicated pass-through to the OpenAI API with no overlap with LiteLLM's native\nimplementations (e.g. the Responses API at /v1/responses).\n\nExamples:\n - /openai_passthrough/v1/responses\n - /openai_passthrough/v1/responses/{response_id}\n - /openai_passthrough/v1/responses/{response_id}/input_items\n\n[Docs](https://docs.litellm.ai/docs/pass_through/openai_passthrough)",
+ "operationId": "openai_passthrough_route_openai_passthrough__endpoint__put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Openai Passthrough Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ }
+ },
+ "/vertex_ai/discovery/{endpoint}": {
+ "delete": {
+ "description": "Call any vertex discovery endpoint using the proxy.\n\nJust use `{PROXY_BASE_URL}/vertex_ai/discovery/{endpoint:path}`\n\nTarget url: `https://discoveryengine.googleapis.com`",
+ "operationId": "vertex_discovery_proxy_route_vertex_ai_discovery__endpoint__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Vertex Discovery Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "get": {
+ "description": "Call any vertex discovery endpoint using the proxy.\n\nJust use `{PROXY_BASE_URL}/vertex_ai/discovery/{endpoint:path}`\n\nTarget url: `https://discoveryengine.googleapis.com`",
+ "operationId": "vertex_discovery_proxy_route_vertex_ai_discovery__endpoint__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Vertex Discovery Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "patch": {
+ "description": "Call any vertex discovery endpoint using the proxy.\n\nJust use `{PROXY_BASE_URL}/vertex_ai/discovery/{endpoint:path}`\n\nTarget url: `https://discoveryengine.googleapis.com`",
+ "operationId": "vertex_discovery_proxy_route_vertex_ai_discovery__endpoint__patch",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Vertex Discovery Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "post": {
+ "description": "Call any vertex discovery endpoint using the proxy.\n\nJust use `{PROXY_BASE_URL}/vertex_ai/discovery/{endpoint:path}`\n\nTarget url: `https://discoveryengine.googleapis.com`",
+ "operationId": "vertex_discovery_proxy_route_vertex_ai_discovery__endpoint__post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Vertex Discovery Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "put": {
+ "description": "Call any vertex discovery endpoint using the proxy.\n\nJust use `{PROXY_BASE_URL}/vertex_ai/discovery/{endpoint:path}`\n\nTarget url: `https://discoveryengine.googleapis.com`",
+ "operationId": "vertex_discovery_proxy_route_vertex_ai_discovery__endpoint__put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "summary": "Vertex Discovery Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ }
+ },
+ "/vertex_ai/{endpoint}": {
+ "delete": {
+ "description": "Call LiteLLM proxy via Vertex AI SDK.\n\n[Docs](https://docs.litellm.ai/docs/pass_through/vertex_ai)",
+ "operationId": "vertex_proxy_route_vertex_ai__endpoint__delete",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Vertex Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "get": {
+ "description": "Call LiteLLM proxy via Vertex AI SDK.\n\n[Docs](https://docs.litellm.ai/docs/pass_through/vertex_ai)",
+ "operationId": "vertex_proxy_route_vertex_ai__endpoint__get",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Vertex Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "patch": {
+ "description": "Call LiteLLM proxy via Vertex AI SDK.\n\n[Docs](https://docs.litellm.ai/docs/pass_through/vertex_ai)",
+ "operationId": "vertex_proxy_route_vertex_ai__endpoint__patch",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Vertex Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "post": {
+ "description": "Call LiteLLM proxy via Vertex AI SDK.\n\n[Docs](https://docs.litellm.ai/docs/pass_through/vertex_ai)",
+ "operationId": "vertex_proxy_route_vertex_ai__endpoint__post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Vertex Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
+ },
+ "put": {
+ "description": "Call LiteLLM proxy via Vertex AI SDK.\n\n[Docs](https://docs.litellm.ai/docs/pass_through/vertex_ai)",
+ "operationId": "vertex_proxy_route_vertex_ai__endpoint__put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
+ },
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
+ }
+ }
+ },
+ "description": "Validation Error"
+ }
+ },
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Vertex Proxy Route",
"tags": [
- "jwt_mappings"
+ "llm_passthrough"
]
}
},
- "/jwt/key/mapping/info": {
- "get": {
- "operationId": "info_jwt_key_mapping_jwt_key_mapping_info_get",
+ "/vllm/{endpoint}": {
+ "delete": {
+ "description": "[Docs](https://docs.litellm.ai/docs/pass_through/vllm)",
+ "operationId": "vllm_proxy_route_vllm__endpoint__delete",
"parameters": [
{
- "in": "query",
- "name": "id",
+ "in": "path",
+ "name": "endpoint",
"required": true,
"schema": {
- "title": "Id",
+ "title": "Endpoint",
"type": "string"
}
}
@@ -15392,9 +20379,7 @@
"200": {
"content": {
"application/json": {
- "schema": {
- "$ref": "#/components/schemas/JWTKeyMappingResponse"
- }
+ "schema": {}
}
},
"description": "Successful Response"
@@ -15415,41 +20400,22 @@
"APIKeyHeader": []
}
],
- "summary": "Info Jwt Key Mapping",
+ "summary": "Vllm Proxy Route",
"tags": [
- "jwt_mappings"
+ "llm_passthrough"
]
- }
- },
- "/jwt/key/mapping/list": {
+ },
"get": {
- "operationId": "list_jwt_key_mappings_jwt_key_mapping_list_get",
+ "description": "[Docs](https://docs.litellm.ai/docs/pass_through/vllm)",
+ "operationId": "vllm_proxy_route_vllm__endpoint__get",
"parameters": [
{
- "description": "Page number",
- "in": "query",
- "name": "page",
- "required": false,
- "schema": {
- "default": 1,
- "description": "Page number",
- "minimum": 1,
- "title": "Page",
- "type": "integer"
- }
- },
- {
- "description": "Page size",
- "in": "query",
- "name": "size",
- "required": false,
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
"schema": {
- "default": 50,
- "description": "Page size",
- "maximum": 100,
- "minimum": 1,
- "title": "Size",
- "type": "integer"
+ "title": "Endpoint",
+ "type": "string"
}
}
],
@@ -15478,32 +20444,30 @@
"APIKeyHeader": []
}
],
- "summary": "List Jwt Key Mappings",
+ "summary": "Vllm Proxy Route",
"tags": [
- "jwt_mappings"
+ "llm_passthrough"
]
- }
- },
- "/jwt/key/mapping/new": {
- "post": {
- "operationId": "create_jwt_key_mapping_jwt_key_mapping_new_post",
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/CreateJWTKeyMappingRequest"
- }
+ },
+ "patch": {
+ "description": "[Docs](https://docs.litellm.ai/docs/pass_through/vllm)",
+ "operationId": "vllm_proxy_route_vllm__endpoint__patch",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
}
- },
- "required": true
- },
+ }
+ ],
"responses": {
"200": {
"content": {
"application/json": {
- "schema": {
- "$ref": "#/components/schemas/JWTKeyMappingResponse"
- }
+ "schema": {}
}
},
"description": "Successful Response"
@@ -15524,32 +20488,30 @@
"APIKeyHeader": []
}
],
- "summary": "Create Jwt Key Mapping",
+ "summary": "Vllm Proxy Route",
"tags": [
- "jwt_mappings"
+ "llm_passthrough"
]
- }
- },
- "/jwt/key/mapping/update": {
+ },
"post": {
- "operationId": "update_jwt_key_mapping_jwt_key_mapping_update_post",
- "requestBody": {
- "content": {
- "application/json": {
- "schema": {
- "$ref": "#/components/schemas/UpdateJWTKeyMappingRequest"
- }
+ "description": "[Docs](https://docs.litellm.ai/docs/pass_through/vllm)",
+ "operationId": "vllm_proxy_route_vllm__endpoint__post",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
}
- },
- "required": true
- },
+ }
+ ],
"responses": {
"200": {
"content": {
"application/json": {
- "schema": {
- "$ref": "#/components/schemas/JWTKeyMappingResponse"
- }
+ "schema": {}
}
},
"description": "Successful Response"
@@ -15570,77 +20532,60 @@
"APIKeyHeader": []
}
],
- "summary": "Update Jwt Key Mapping",
+ "summary": "Vllm Proxy Route",
"tags": [
- "jwt_mappings"
+ "llm_passthrough"
]
- }
- }
- }
- },
- "langfuse_passthrough": {
- "components": {
- "schemas": {
- "HTTPValidationError": {
- "properties": {
- "detail": {
- "items": {
- "$ref": "#/components/schemas/ValidationError"
- },
- "title": "Detail",
- "type": "array"
- }
- },
- "title": "HTTPValidationError",
- "type": "object"
},
- "ValidationError": {
- "properties": {
- "ctx": {
- "title": "Context",
- "type": "object"
- },
- "input": {
- "title": "Input"
+ "put": {
+ "description": "[Docs](https://docs.litellm.ai/docs/pass_through/vllm)",
+ "operationId": "vllm_proxy_route_vllm__endpoint__put",
+ "parameters": [
+ {
+ "in": "path",
+ "name": "endpoint",
+ "required": true,
+ "schema": {
+ "title": "Endpoint",
+ "type": "string"
+ }
+ }
+ ],
+ "responses": {
+ "200": {
+ "content": {
+ "application/json": {
+ "schema": {}
+ }
+ },
+ "description": "Successful Response"
},
- "loc": {
- "items": {
- "anyOf": [
- {
- "type": "string"
- },
- {
- "type": "integer"
+ "422": {
+ "content": {
+ "application/json": {
+ "schema": {
+ "$ref": "#/components/schemas/HTTPValidationError"
}
- ]
+ }
},
- "title": "Location",
- "type": "array"
- },
- "msg": {
- "title": "Message",
- "type": "string"
- },
- "type": {
- "title": "Error Type",
- "type": "string"
+ "description": "Validation Error"
}
},
- "required": [
- "loc",
- "msg",
- "type"
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
],
- "title": "ValidationError",
- "type": "object"
+ "summary": "Vllm Proxy Route",
+ "tags": [
+ "llm_passthrough"
+ ]
}
- }
- },
- "paths": {
- "/langfuse/{endpoint}": {
+ },
+ "/watsonx/{endpoint}": {
"delete": {
- "description": "Call Langfuse via LiteLLM proxy. Works with Langfuse SDK.\n\n[Docs](https://docs.litellm.ai/docs/pass_through/langfuse)",
- "operationId": "langfuse_proxy_route_langfuse__endpoint__delete",
+ "description": "Watsonx pass-through endpoint.\nAllows using Watsonx APIs with automatic IAM token management and version parameter injection.\n\nExample:\n POST /watsonx/ml/v1/text/tokenization\n POST /watsonx/ml/v1/text/generation",
+ "operationId": "watsonx_proxy_route_watsonx__endpoint__delete",
"parameters": [
{
"in": "path",
@@ -15672,14 +20617,19 @@
"description": "Validation Error"
}
},
- "summary": "Langfuse Proxy Route",
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Watsonx Proxy Route",
"tags": [
- "langfuse_passthrough"
+ "llm_passthrough"
]
},
"get": {
- "description": "Call Langfuse via LiteLLM proxy. Works with Langfuse SDK.\n\n[Docs](https://docs.litellm.ai/docs/pass_through/langfuse)",
- "operationId": "langfuse_proxy_route_langfuse__endpoint__get",
+ "description": "Watsonx pass-through endpoint.\nAllows using Watsonx APIs with automatic IAM token management and version parameter injection.\n\nExample:\n POST /watsonx/ml/v1/text/tokenization\n POST /watsonx/ml/v1/text/generation",
+ "operationId": "watsonx_proxy_route_watsonx__endpoint__get",
"parameters": [
{
"in": "path",
@@ -15711,14 +20661,19 @@
"description": "Validation Error"
}
},
- "summary": "Langfuse Proxy Route",
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Watsonx Proxy Route",
"tags": [
- "langfuse_passthrough"
+ "llm_passthrough"
]
},
"patch": {
- "description": "Call Langfuse via LiteLLM proxy. Works with Langfuse SDK.\n\n[Docs](https://docs.litellm.ai/docs/pass_through/langfuse)",
- "operationId": "langfuse_proxy_route_langfuse__endpoint__patch",
+ "description": "Watsonx pass-through endpoint.\nAllows using Watsonx APIs with automatic IAM token management and version parameter injection.\n\nExample:\n POST /watsonx/ml/v1/text/tokenization\n POST /watsonx/ml/v1/text/generation",
+ "operationId": "watsonx_proxy_route_watsonx__endpoint__patch",
"parameters": [
{
"in": "path",
@@ -15750,14 +20705,19 @@
"description": "Validation Error"
}
},
- "summary": "Langfuse Proxy Route",
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Watsonx Proxy Route",
"tags": [
- "langfuse_passthrough"
+ "llm_passthrough"
]
},
"post": {
- "description": "Call Langfuse via LiteLLM proxy. Works with Langfuse SDK.\n\n[Docs](https://docs.litellm.ai/docs/pass_through/langfuse)",
- "operationId": "langfuse_proxy_route_langfuse__endpoint__post",
+ "description": "Watsonx pass-through endpoint.\nAllows using Watsonx APIs with automatic IAM token management and version parameter injection.\n\nExample:\n POST /watsonx/ml/v1/text/tokenization\n POST /watsonx/ml/v1/text/generation",
+ "operationId": "watsonx_proxy_route_watsonx__endpoint__post",
"parameters": [
{
"in": "path",
@@ -15789,14 +20749,19 @@
"description": "Validation Error"
}
},
- "summary": "Langfuse Proxy Route",
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Watsonx Proxy Route",
"tags": [
- "langfuse_passthrough"
+ "llm_passthrough"
]
},
"put": {
- "description": "Call Langfuse via LiteLLM proxy. Works with Langfuse SDK.\n\n[Docs](https://docs.litellm.ai/docs/pass_through/langfuse)",
- "operationId": "langfuse_proxy_route_langfuse__endpoint__put",
+ "description": "Watsonx pass-through endpoint.\nAllows using Watsonx APIs with automatic IAM token management and version parameter injection.\n\nExample:\n POST /watsonx/ml/v1/text/tokenization\n POST /watsonx/ml/v1/text/generation",
+ "operationId": "watsonx_proxy_route_watsonx__endpoint__put",
"parameters": [
{
"in": "path",
@@ -15828,9 +20793,14 @@
"description": "Validation Error"
}
},
- "summary": "Langfuse Proxy Route",
+ "security": [
+ {
+ "APIKeyHeader": []
+ }
+ ],
+ "summary": "Watsonx Proxy Route",
"tags": [
- "langfuse_passthrough"
+ "llm_passthrough"
]
}
}
@@ -31965,7 +36935,7 @@
"paths": {
"/openai/v1/realtime/calls": {
"post": {
- "operationId": "proxy_realtime_calls_openai_v1_realtime_calls_post",
+ "operationId": "proxy_realtime_calls_openai_v1_realtime_calls_post_2",
"responses": {
"200": {
"content": {
@@ -31984,7 +36954,7 @@
},
"/openai/v1/realtime/client_secrets": {
"post": {
- "operationId": "create_realtime_client_secret_openai_v1_realtime_client_secrets_post",
+ "operationId": "create_realtime_client_secret_openai_v1_realtime_client_secrets_post_2",
"responses": {
"200": {
"content": {
@@ -32011,7 +36981,7 @@
"/openai/v1/realtime/transcription_sessions": {
"post": {
"description": "Create an ephemeral Realtime transcription session\n(POST /v1/realtime/transcription_sessions) for the WebRTC/WebSocket flow.\n\nMirrors the client_secrets route but targets the transcription_sessions\nendpoint and encrypts the ephemeral key returned under `client_secret.value`.",
- "operationId": "create_realtime_transcription_session_openai_v1_realtime_transcription_sessions_post",
+ "operationId": "create_realtime_transcription_session_openai_v1_realtime_transcription_sessions_post_2",
"responses": {
"200": {
"content": {
diff --git a/litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py b/litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py
index face515ef88..28a8bab1f24 100644
--- a/litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py
+++ b/litellm/proxy/pass_through_endpoints/llm_passthrough_endpoints.py
@@ -97,7 +97,6 @@ else:
vertex_llm_base: Final = VertexBase()
router: Final = APIRouter()
-openai_passthrough_router: Final = APIRouter()
default_vertex_config: Final = None
passthrough_endpoint_router: Final = PassthroughEndpointRouter()
@@ -2297,11 +2296,6 @@ async def vertex_proxy_route(
)
-@openai_passthrough_router.api_route(
- "/openai_passthrough/{endpoint:path}",
- methods=["GET", "POST", "PUT", "DELETE", "PATCH"],
- tags=["OpenAI Pass-through", "pass-through"],
-)
@router.api_route(
"/openai/{endpoint:path}",
methods=["GET", "POST", "PUT", "DELETE", "PATCH"],
diff --git a/litellm/proxy/pass_through_endpoints/openai_passthrough_endpoints.py b/litellm/proxy/pass_through_endpoints/openai_passthrough_endpoints.py
new file mode 100644
index 00000000000..f56a59dd560
--- /dev/null
+++ b/litellm/proxy/pass_through_endpoints/openai_passthrough_endpoints.py
@@ -0,0 +1,44 @@
+"""/openai_passthrough must be matched ahead of the native /{provider}/v1/files and
+/{provider}/v1/batches routes, so unlike the other provider passthrough routes it is
+registered at startup and defers to the lazily loaded handler per call."""
+
+from typing import Final
+
+from fastapi import APIRouter, Depends, Request, Response
+
+from litellm.proxy._types import UserAPIKeyAuth
+from litellm.proxy.auth.user_api_key_auth import user_api_key_auth
+
+router: Final = APIRouter()
+
+
+ "/openai_passthrough/{endpoint:path}",
+ methods=["GET", "POST", "PUT", "DELETE", "PATCH"],
+ tags=["OpenAI Pass-through", "pass-through"],
+)
+async def openai_passthrough_route(
+ endpoint: str,
+ request: Request,
+ fastapi_response: Response,
+ user_api_key_dict: UserAPIKeyAuth = Depends(user_api_key_auth),
+) -> Response:
+ """
+ Dedicated pass-through to the OpenAI API with no overlap with LiteLLM's native
+ implementations (e.g. the Responses API at /v1/responses).
+
+ Examples:
+ - /openai_passthrough/v1/responses
+ - /openai_passthrough/v1/responses/{response_id}
+ - /openai_passthrough/v1/responses/{response_id}/input_items
+
+ [Docs](https://docs.litellm.ai/docs/pass_through/openai_passthrough)
+ """
+ from litellm.proxy.pass_through_endpoints.llm_passthrough_endpoints import openai_proxy_route
+
+ return await openai_proxy_route(
+ endpoint=endpoint,
+ request=request,
+ fastapi_response=fastapi_response,
+ user_api_key_dict=user_api_key_dict,
+ )
diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py
index 94e74b20297..5d94b65ccba 100644
--- a/litellm/proxy/proxy_server.py
+++ b/litellm/proxy/proxy_server.py
@@ -304,7 +304,7 @@ from litellm.litellm_core_utils.sensitive_data_masker import (
)
from litellm.llms.custom_httpx.http_handler import AsyncHTTPHandler, HTTPHandler
from litellm.llms.vertex_ai.vertex_llm_base import VertexBase
-from litellm.proxy._lazy_features import attach_lazy_features
+from litellm.proxy._lazy_features import attach_lazy_features, reserve_lazy_slot
from litellm.proxy._types import *
from litellm.proxy.analytics_endpoints.analytics_endpoints import (
router as analytics_router,
@@ -639,13 +639,8 @@ from litellm.proxy.openai_files_endpoints.files_endpoints import (
from litellm.proxy.openai_files_endpoints.files_endpoints import (
set_files_config,
)
-from litellm.proxy.pass_through_endpoints.llm_passthrough_endpoints import (
- openai_passthrough_router,
- passthrough_endpoint_router,
- vertex_ai_live_websocket_passthrough,
-)
-from litellm.proxy.pass_through_endpoints.llm_passthrough_endpoints import (
- router as llm_passthrough_router,
+from litellm.proxy.pass_through_endpoints.openai_passthrough_endpoints import (
+ router as openai_passthrough_router,
)
from litellm.proxy.pass_through_endpoints.pass_through_endpoints import (
initialize_pass_through_endpoints,
@@ -6047,6 +6042,10 @@ class ProxyConfig:
set_files_config(config=files_config)
## default config for vertex ai routes
+ from litellm.proxy.pass_through_endpoints.llm_passthrough_endpoints import (
+ passthrough_endpoint_router,
+ )
+
default_vertex_config: Final = config.get("default_vertex_config", None)
passthrough_endpoint_router.set_default_vertex_config(config=default_vertex_config)
@@ -11763,6 +11762,10 @@ async def vertex_ai_live_passthrough_endpoint(
This endpoint delegates to the WebSocket function defined in llm_passthrough_endpoints.py
"""
+ from litellm.proxy.pass_through_endpoints.llm_passthrough_endpoints import (
+ vertex_ai_live_websocket_passthrough,
+ )
+
return await vertex_ai_live_websocket_passthrough(
websocket=websocket,
model=model,
@@ -18668,7 +18671,7 @@ app.include_router(credential_router)
app.include_router(openai_passthrough_router)
app.include_router(batches_router)
app.include_router(openai_files_router)
-app.include_router(llm_passthrough_router)
+reserve_lazy_slot(app, "llm_passthrough")
app.include_router(pass_through_router)
app.include_router(health_router)
app.include_router(key_management_router)
diff --git a/tests/test_litellm/proxy/pass_through_endpoints/test_llm_pass_through_endpoints.py b/tests/test_litellm/proxy/pass_through_endpoints/test_llm_pass_through_endpoints.py
index addc952af14..7b285674145 100644
--- a/tests/test_litellm/proxy/pass_through_endpoints/test_llm_pass_through_endpoints.py
+++ b/tests/test_litellm/proxy/pass_through_endpoints/test_llm_pass_through_endpoints.py
@@ -4,7 +4,7 @@ import contextlib
import json
import os
import traceback
-from collections.abc import Mapping
+from collections.abc import Iterator, Mapping
from types import MappingProxyType, SimpleNamespace
from typing import Final
from unittest import mock
@@ -12,7 +12,9 @@ from unittest.mock import AsyncMock, MagicMock, Mock, patch
import httpx
import pytest
+import respx
from fastapi import HTTPException, Request, Response
+from fastapi.routing import APIRoute
from fastapi.responses import StreamingResponse
from fastapi.testclient import TestClient
from starlette.datastructures import FormData
@@ -45,6 +47,7 @@ from litellm.proxy.pass_through_endpoints.llm_passthrough_endpoints import (
)
from litellm.proxy._types import LitellmUserRoles, SpecialHeaders, UserAPIKeyAuth
from litellm.proxy.auth.handle_jwt import JWTHandler
+from litellm.proxy.auth.user_api_key_auth import user_api_key_auth
from litellm.types.passthrough_endpoints.vertex_ai import VertexPassThroughCredentials
@@ -3339,8 +3342,11 @@ class TestOpenAIPassthroughRoute:
def _resolve_route_name(method: str, path: str) -> str | None:
from starlette.routing import Match
+ from litellm.proxy._lazy_features import LAZY_FEATURES, _force_load
from litellm.proxy.proxy_server import app
+ asyncio.run(_force_load(app, next(f for f in LAZY_FEATURES if f.name == "llm_passthrough")))
+
scope: Final = {
"type": "http",
"method": method,
@@ -3350,8 +3356,8 @@ def _resolve_route_name(method: str, path: str) -> str | None:
"root_path": "",
}
for route in app.router.routes:
- if route.matches(scope)[0] == Match.FULL:
- return getattr(route, "name", None)
+ if isinstance(route, APIRoute) and route.matches(scope)[0] == Match.FULL:
+ return route.name
return None
@@ -3376,7 +3382,7 @@ def test_openai_passthrough_prefix_wins_over_native_provider_routes(method, path
/{provider}/v1/files and /{provider}/v1/batches routes must never capture it
with provider="openai_passthrough" (which 500s on the LlmProviders lookup).
"""
- assert _resolve_route_name(method, path) == "openai_proxy_route"
+ assert _resolve_route_name(method, path) == "openai_passthrough_route"
@pytest.mark.parametrize(
@@ -3393,6 +3399,41 @@ def test_native_provider_routes_are_unchanged(method, path, expected_name):
assert _resolve_route_name(method, path) == expected_name
+def openai_passthrough_client(monkeypatch: pytest.MonkeyPatch) -> Iterator[TestClient]:
+ from litellm.proxy.proxy_server import app
+
+ monkeypatch.setenv("OPENAI_API_KEY", "sk-upstream")
+ monkeypatch.delenv("SERVER_ROOT_PATH", raising=False)
+ monkeypatch.setattr(litellm, "disable_aiohttp_transport", True)
+ litellm.in_memory_llm_clients_cache.flush_cache()
+ monkeypatch.setitem(app.dependency_overrides, user_api_key_auth, lambda: UserAPIKeyAuth(api_key="sk-virtual"))
+ yield TestClient(app)
+
+
+ "method, path, body",
+ [
+ ("POST", "/v1/responses", {"model": "gpt-5.1", "input": "hi"}),
+ ("GET", "/v1/files", None),
+ ("POST", "/v1/batches", {"input_file_id": "file-abc123", "endpoint": "/v1/responses"}),
+ ],
+)
+def test_openai_passthrough_forwards_verbatim_to_openai(
+ openai_passthrough_client: TestClient, method: str, path: str, body: dict[str, str] | None
+) -> None:
+ """Every /openai_passthrough request, including the /v1/files and /v1/batches
+ paths that native provider routes also claim, must reach OpenAI unchanged."""
+ with respx.mock(assert_all_called=True) as upstream:
+ route = upstream.request(method, f"https://api.openai.com{path}").mock(
+ return_value=httpx.Response(200, json={"id": "upstream_123"})
+ )
+ response = openai_passthrough_client.request(method, f"/openai_passthrough{path}", json=body)
+
+ assert (response.status_code, response.json()) == (200, {"id": "upstream_123"})
+ assert route.calls.last.request.headers["authorization"] == "Bearer sk-upstream"
+
+
class TestCursorProxyRoute:
"""Tests for the Cursor Cloud Agents pass-through route."""
diff --git a/tests/test_litellm/proxy/test_proxy_server.py b/tests/test_litellm/proxy/test_proxy_server.py
index e058a4f6396..4f4a9e87d18 100644
--- a/tests/test_litellm/proxy/test_proxy_server.py
+++ b/tests/test_litellm/proxy/test_proxy_server.py
@@ -9183,6 +9183,126 @@ class TestLazyFeaturesNotImportedAtStartup:
class TestLazyFeatureMiddleware:
"""Behavior of the middleware itself, exercised in isolation."""
+ @pytest.mark.asyncio
+ async def test_llm_passthrough_loads_on_first_provider_request(self, monkeypatch):
+ """An app that never registered the provider passthrough routes 404s a
+ provider request; behind the middleware the same request registers the
+ routes and is forwarded to the provider with the configured key."""
+ import respx
+ from fastapi import FastAPI
+
+ from litellm.proxy._lazy_features import LAZY_FEATURES, LazyFeatureMiddleware
+
+ monkeypatch.setenv("MISTRAL_API_KEY", "sk-upstream")
+ monkeypatch.delenv("SERVER_ROOT_PATH", raising=False)
+ monkeypatch.setattr(litellm, "disable_aiohttp_transport", True)
+ litellm.in_memory_llm_clients_cache.flush_cache()
+ feat = next(f for f in LAZY_FEATURES if f.name == "llm_passthrough")
+ target_app = FastAPI()
+ target_app.dependency_overrides[user_api_key_auth] = lambda: UserAPIKeyAuth(api_key="sk-virtual")
+ mw = LazyFeatureMiddleware(target_app, fastapi_app=target_app, features=(feat,))
+
+ with respx.mock() as upstream:
+ route = upstream.get("https://api.mistral.ai/v1/models").mock(
+ return_value=httpx.Response(200, json={"object": "list", "data": []})
+ )
+ async with httpx.AsyncClient(transport=httpx.ASGITransport(app=target_app), base_url="http://t") as bare:
+ assert (await bare.get("/mistral/v1/models")).status_code == 404
+ async with httpx.AsyncClient(transport=httpx.ASGITransport(app=mw), base_url="http://t") as lazy:
+ response = await lazy.get("/mistral/v1/models")
+
+ assert (response.status_code, response.json()) == (200, {"object": "list", "data": []})
+ assert route.calls.last.request.headers["authorization"] == "Bearer sk-upstream"
+
+ def test_llm_passthrough_prefixes_cover_every_route_the_module_registers(self):
+ """A route the module registers under a prefix the feature does not claim
+ would 404 until an unrelated provider request happens to load the module."""
+ from litellm.proxy._lazy_features import LAZY_FEATURES
+
+ feat = next(f for f in LAZY_FEATURES if f.name == "llm_passthrough")
+ paths = [r.path for r in importlib.import_module(feat.module_path).router.routes]
+
+ assert {"/mistral/{endpoint:path}", "/openai/{endpoint:path}"} <= set(paths)
+ unreachable = [p for p in paths if not feat.matches(p.replace("{endpoint:path}", "x"))]
+ assert unreachable == [], f"routes the middleware would never load: {unreachable}"
+
+ @pytest.mark.asyncio
+ @pytest.mark.parametrize("first_hit", ["/v1/realtime/calls", "/openai/v1/models"])
+ async def test_lazy_routes_land_in_registry_order_not_first_hit_order(self, first_hit):
+ """Two lazy features with overlapping paths must answer a request with the
+ same handler no matter which one a deployment happens to hit first."""
+ from fastapi import APIRouter, FastAPI
+
+ from litellm.proxy._lazy_features import LazyFeature, LazyFeatureMiddleware
+
+ def make_register(path, handler):
+ def register(app, module):
+ router = APIRouter()
+ router.add_api_route(path, lambda: {"handler": handler}, methods=["POST"])
+ app.include_router(router)
+
+ return register
+
+ catch_all = LazyFeature(
+ name="catch_all",
+ module_path="json",
+ path_prefixes=("/openai/",),
+ register_fn=make_register("/openai/{endpoint:path}", "catch_all"),
+ )
+ specific = LazyFeature(
+ name="specific",
+ module_path="base64",
+ path_prefixes=("/openai/v1/realtime", "/v1/realtime"),
+ register_fn=make_register("/openai/v1/realtime/calls", "specific"),
+ )
+
+ target_app = FastAPI()
+ mw = LazyFeatureMiddleware(target_app, fastapi_app=target_app, features=(catch_all, specific))
+
+ async with httpx.AsyncClient(transport=httpx.ASGITransport(app=mw), base_url="http://t") as client:
+ await client.post(first_hit)
+ await client.post("/openai/v1/models")
+ response = await client.post("/openai/v1/realtime/calls")
+
+ assert response.json() == {"handler": "catch_all"}
+
+ @pytest.mark.asyncio
+ @pytest.mark.parametrize("root_path", ["", "/api"])
+ async def test_reserved_slot_keeps_lazy_catch_all_ahead_of_later_eager_routes(self, root_path):
+ """/{mcp_server_name}/mcp is registered after the provider passthrough router
+ at startup, so /mistral/mcp must keep reaching the provider catch-all once
+ that router loads lazily instead of being swallowed by the MCP route. The
+ native /mistral/v1/files route sits ahead of it, so that path neither loads
+ the feature nor changes owner, with or without a SERVER_ROOT_PATH prefix."""
+ from fastapi import APIRouter, FastAPI
+
+ from litellm.proxy._lazy_features import LazyFeature, LazyFeatureMiddleware, reserve_lazy_slot
+
+ def register(app, module):
+ router = APIRouter()
+ router.add_api_route("/mistral/{endpoint:path}", lambda: {"handler": "passthrough"}, methods=["POST"])
+ app.include_router(router)
+
+ passthrough = LazyFeature(
+ name="llm_passthrough", module_path="json", path_prefixes=("/mistral/",), register_fn=register
+ )
+ target_app = FastAPI(root_path=root_path)
+ target_app.add_api_route("/mistral/v1/files", lambda: {"handler": "files"}, methods=["POST"])
+ reserve_lazy_slot(target_app, "llm_passthrough", features=(passthrough,))
+ target_app.add_api_route("/{mcp_server_name}/mcp", lambda: {"handler": "mcp"}, methods=["POST"])
+ target_app.add_middleware(LazyFeatureMiddleware, fastapi_app=target_app, features=(passthrough,))
+
+ async with httpx.AsyncClient(transport=httpx.ASGITransport(app=target_app), base_url="http://t") as client:
+ files_first = (await client.post(f"{root_path}/mistral/v1/files")).json()["handler"]
+ loaded_after_files = frozenset(target_app.state.lazy_loaded)
+ handlers = [
+ (await client.post(f"{root_path}{path}")).json()["handler"]
+ for path in ("/mistral/mcp", "/mistral/v1/files")
+ ]
+
+ assert (files_first, loaded_after_files) == ("files", frozenset())
+ assert handlers == ["passthrough", "files"]
+
@pytest.mark.asyncio
async def test_first_request_triggers_load_subsequent_does_not(self):
from fastapi import FastAPI
diff --git a/ui/litellm-dashboard/src/lib/http/schema.d.ts b/ui/litellm-dashboard/src/lib/http/schema.d.ts
index 29435c31aee..1b34c6f6a51 100644
--- a/ui/litellm-dashboard/src/lib/http/schema.d.ts
+++ b/ui/litellm-dashboard/src/lib/http/schema.d.ts
@@ -9547,26 +9547,6 @@ export interface paths {
patch?: never;
trace?: never;
};
- "/openai/": {
- parameters: {
- query?: never;
- header?: never;
- path?: never;
- cookie?: never;
- };
- /**
- * WebSocket: openai_websocket_proxy_route
- * @description WebSocket connection endpoint
- */
- get: operations["websocket_openai_websocket_proxy_route_get"];
- put?: never;
- post?: never;
- delete?: never;
- options?: never;
- head?: never;
- patch?: never;
- trace?: never;
- };
"/openai/deployments/{model}/chat/completions": {
parameters: {
query?: never;
@@ -10122,26 +10102,6 @@ export interface paths {
patch: operations["openai_proxy_route_openai__endpoint__patch"];
trace?: never;
};
- "/openai_passthrough/": {
- parameters: {
- query?: never;
- header?: never;
- path?: never;
- cookie?: never;
- };
- /**
- * WebSocket: openai_websocket_proxy_route
- * @description WebSocket connection endpoint
- */
- get: operations["websocket_openai_websocket_proxy_route_get_2"];
- put?: never;
- post?: never;
- delete?: never;
- options?: never;
- head?: never;
- patch?: never;
- trace?: never;
- };
"/openai_passthrough/{endpoint}": {
parameters: {
query?: never;
@@ -10150,132 +10110,72 @@ export interface paths {
cookie?: never;
};
/**
- * Openai Proxy Route
- * @description Pass-through endpoint for OpenAI API calls.
- *
- * Available on both routes:
- * - /openai/{endpoint:path} - Standard OpenAI passthrough route
- * - /openai_passthrough/{endpoint:path} - Dedicated passthrough route (recommended for Responses API)
- *
- * Use /openai_passthrough/* when you need guaranteed passthrough to OpenAI without conflicts
- * with LiteLLM's native implementations (e.g., for the Responses API at /v1/responses).
+ * Openai Passthrough Route
+ * @description Dedicated pass-through to the OpenAI API with no overlap with LiteLLM's native
+ * implementations (e.g. the Responses API at /v1/responses).
*
* Examples:
- * Standard route:
- * - /openai/v1/chat/completions
- * - /openai/v1/assistants
- * - /openai/v1/threads
- *
- * Dedicated passthrough (for Responses API):
* - /openai_passthrough/v1/responses
* - /openai_passthrough/v1/responses/{response_id}
* - /openai_passthrough/v1/responses/{response_id}/input_items
*
* [Docs](https://docs.litellm.ai/docs/pass_through/openai_passthrough)
*/
- get: operations["openai_proxy_route_openai_passthrough__endpoint__get"];
+ get: operations["openai_passthrough_route_openai_passthrough__endpoint__get"];
/**
- * Openai Proxy Route
- * @description Pass-through endpoint for OpenAI API calls.
- *
- * Available on both routes:
- * - /openai/{endpoint:path} - Standard OpenAI passthrough route
- * - /openai_passthrough/{endpoint:path} - Dedicated passthrough route (recommended for Responses API)
- *
- * Use /openai_passthrough/* when you need guaranteed passthrough to OpenAI without conflicts
- * with LiteLLM's native implementations (e.g., for the Responses API at /v1/responses).
+ * Openai Passthrough Route
+ * @description Dedicated pass-through to the OpenAI API with no overlap with LiteLLM's native
+ * implementations (e.g. the Responses API at /v1/responses).
*
* Examples:
- * Standard route:
- * - /openai/v1/chat/completions
- * - /openai/v1/assistants
- * - /openai/v1/threads
- *
- * Dedicated passthrough (for Responses API):
* - /openai_passthrough/v1/responses
* - /openai_passthrough/v1/responses/{response_id}
* - /openai_passthrough/v1/responses/{response_id}/input_items
*
* [Docs](https://docs.litellm.ai/docs/pass_through/openai_passthrough)
*/
- put: operations["openai_proxy_route_openai_passthrough__endpoint__put"];
+ put: operations["openai_passthrough_route_openai_passthrough__endpoint__put"];
/**
- * Openai Proxy Route
- * @description Pass-through endpoint for OpenAI API calls.
- *
- * Available on both routes:
- * - /openai/{endpoint:path} - Standard OpenAI passthrough route
- * - /openai_passthrough/{endpoint:path} - Dedicated passthrough route (recommended for Responses API)
- *
- * Use /openai_passthrough/* when you need guaranteed passthrough to OpenAI without conflicts
- * with LiteLLM's native implementations (e.g., for the Responses API at /v1/responses).
+ * Openai Passthrough Route
+ * @description Dedicated pass-through to the OpenAI API with no overlap with LiteLLM's native
+ * implementations (e.g. the Responses API at /v1/responses).
*
* Examples:
- * Standard route:
- * - /openai/v1/chat/completions
- * - /openai/v1/assistants
- * - /openai/v1/threads
- *
- * Dedicated passthrough (for Responses API):
* - /openai_passthrough/v1/responses
* - /openai_passthrough/v1/responses/{response_id}
* - /openai_passthrough/v1/responses/{response_id}/input_items
*
* [Docs](https://docs.litellm.ai/docs/pass_through/openai_passthrough)
*/
- post: operations["openai_proxy_route_openai_passthrough__endpoint__post"];
+ post: operations["openai_passthrough_route_openai_passthrough__endpoint__post"];
/**
- * Openai Proxy Route
- * @description Pass-through endpoint for OpenAI API calls.
- *
- * Available on both routes:
- * - /openai/{endpoint:path} - Standard OpenAI passthrough route
- * - /openai_passthrough/{endpoint:path} - Dedicated passthrough route (recommended for Responses API)
- *
- * Use /openai_passthrough/* when you need guaranteed passthrough to OpenAI without conflicts
- * with LiteLLM's native implementations (e.g., for the Responses API at /v1/responses).
+ * Openai Passthrough Route
+ * @description Dedicated pass-through to the OpenAI API with no overlap with LiteLLM's native
+ * implementations (e.g. the Responses API at /v1/responses).
*
* Examples:
- * Standard route:
- * - /openai/v1/chat/completions
- * - /openai/v1/assistants
- * - /openai/v1/threads
- *
- * Dedicated passthrough (for Responses API):
* - /openai_passthrough/v1/responses
* - /openai_passthrough/v1/responses/{response_id}
* - /openai_passthrough/v1/responses/{response_id}/input_items
*
* [Docs](https://docs.litellm.ai/docs/pass_through/openai_passthrough)
*/
- delete: operations["openai_proxy_route_openai_passthrough__endpoint__delete"];
+ delete: operations["openai_passthrough_route_openai_passthrough__endpoint__delete"];
options?: never;
head?: never;
/**
- * Openai Proxy Route
- * @description Pass-through endpoint for OpenAI API calls.
- *
- * Available on both routes:
- * - /openai/{endpoint:path} - Standard OpenAI passthrough route
- * - /openai_passthrough/{endpoint:path} - Dedicated passthrough route (recommended for Responses API)
- *
- * Use /openai_passthrough/* when you need guaranteed passthrough to OpenAI without conflicts
- * with LiteLLM's native implementations (e.g., for the Responses API at /v1/responses).
+ * Openai Passthrough Route
+ * @description Dedicated pass-through to the OpenAI API with no overlap with LiteLLM's native
+ * implementations (e.g. the Responses API at /v1/responses).
*
* Examples:
- * Standard route:
- * - /openai/v1/chat/completions
- * - /openai/v1/assistants
- * - /openai/v1/threads
- *
- * Dedicated passthrough (for Responses API):
* - /openai_passthrough/v1/responses
* - /openai_passthrough/v1/responses/{response_id}
* - /openai_passthrough/v1/responses/{response_id}/input_items
*
* [Docs](https://docs.litellm.ai/docs/pass_through/openai_passthrough)
*/
- patch: operations["openai_proxy_route_openai_passthrough__endpoint__patch"];
+ patch: operations["openai_passthrough_route_openai_passthrough__endpoint__patch"];
trace?: never;
};
"/organization/daily/activity": {
@@ -21891,52 +21791,6 @@ export interface paths {
patch?: never;
trace?: never;
};
- "/vertex-ai/{endpoint}": {
- parameters: {
- query?: never;
- header?: never;
- path?: never;
- cookie?: never;
- };
- /**
- * Vertex Proxy Route
- * @description Call LiteLLM proxy via Vertex AI SDK.
- *
- * [Docs](https://docs.litellm.ai/docs/pass_through/vertex_ai)
- */
- get: operations["vertex_proxy_route_vertex_ai__endpoint__get_2"];
- /**
- * Vertex Proxy Route
- * @description Call LiteLLM proxy via Vertex AI SDK.
- *
- * [Docs](https://docs.litellm.ai/docs/pass_through/vertex_ai)
- */
- put: operations["vertex_proxy_route_vertex_ai__endpoint__put_2"];
- /**
- * Vertex Proxy Route
- * @description Call LiteLLM proxy via Vertex AI SDK.
- *
- * [Docs](https://docs.litellm.ai/docs/pass_through/vertex_ai)
- */
- post: operations["vertex_proxy_route_vertex_ai__endpoint__post_2"];
- /**
- * Vertex Proxy Route
- * @description Call LiteLLM proxy via Vertex AI SDK.
- *
- * [Docs](https://docs.litellm.ai/docs/pass_through/vertex_ai)
- */
- delete: operations["vertex_proxy_route_vertex_ai__endpoint__delete_2"];
- options?: never;
- head?: never;
- /**
- * Vertex Proxy Route
- * @description Call LiteLLM proxy via Vertex AI SDK.
- *
- * [Docs](https://docs.litellm.ai/docs/pass_through/vertex_ai)
- */
- patch: operations["vertex_proxy_route_vertex_ai__endpoint__patch_2"];
- trace?: never;
- };
"/vertex_ai/discovery/{endpoint}": {
parameters: {
query?: never;
@@ -52513,24 +52367,6 @@ export interface operations {
};
};
};
- websocket_openai_websocket_proxy_route_get: {
- parameters: {
- query?: never;
- header?: never;
- path?: never;
- cookie?: never;
- };
- requestBody?: never;
- responses: {
- /** @description WebSocket Protocol Switched */
- 101: {
- headers: {
- [name: string]: unknown;
- };
- content?: never;
- };
- };
- };
chat_completion_openai_deployments__model__chat_completions_post: {
parameters: {
query?: never;
@@ -53430,25 +53266,7 @@ export interface operations {
};
};
};
- websocket_openai_websocket_proxy_route_get_2: {
- parameters: {
- query?: never;
- header?: never;
- path?: never;
- cookie?: never;
- };
- requestBody?: never;
- responses: {
- /** @description WebSocket Protocol Switched */
- 101: {
- headers: {
- [name: string]: unknown;
- };
- content?: never;
- };
- };
- };
- openai_proxy_route_openai_passthrough__endpoint__get: {
+ openai_passthrough_route_openai_passthrough__endpoint__get: {
parameters: {
query?: never;
header?: never;
@@ -53479,7 +53297,7 @@ export interface operations {
};
};
};
- openai_proxy_route_openai_passthrough__endpoint__put: {
+ openai_passthrough_route_openai_passthrough__endpoint__put: {
parameters: {
query?: never;
header?: never;
@@ -53510,7 +53328,7 @@ export interface operations {
};
};
};
- openai_proxy_route_openai_passthrough__endpoint__post: {
+ openai_passthrough_route_openai_passthrough__endpoint__post: {
parameters: {
query?: never;
header?: never;
@@ -53541,7 +53359,7 @@ export interface operations {
};
};
};
- openai_proxy_route_openai_passthrough__endpoint__delete: {
+ openai_passthrough_route_openai_passthrough__endpoint__delete: {
parameters: {
query?: never;
header?: never;
@@ -53572,7 +53390,7 @@ export interface operations {
};
};
};
- openai_proxy_route_openai_passthrough__endpoint__patch: {
+ openai_passthrough_route_openai_passthrough__endpoint__patch: {
parameters: {
query?: never;
header?: never;
@@ -67979,161 +67797,6 @@ export interface operations {
};
};
};
- vertex_proxy_route_vertex_ai__endpoint__get_2: {
- parameters: {
- query?: never;
- header?: never;
- path: {
- endpoint: string;
- };
- cookie?: never;
- };
- requestBody?: never;
- responses: {
- /** @description Successful Response */
- 200: {
- headers: {
- [name: string]: unknown;
- };
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- headers: {
- [name: string]: unknown;
- };
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- vertex_proxy_route_vertex_ai__endpoint__put_2: {
- parameters: {
- query?: never;
- header?: never;
- path: {
- endpoint: string;
- };
- cookie?: never;
- };
- requestBody?: never;
- responses: {
- /** @description Successful Response */
- 200: {
- headers: {
- [name: string]: unknown;
- };
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- headers: {
- [name: string]: unknown;
- };
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- vertex_proxy_route_vertex_ai__endpoint__post_2: {
- parameters: {
- query?: never;
- header?: never;
- path: {
- endpoint: string;
- };
- cookie?: never;
- };
- requestBody?: never;
- responses: {
- /** @description Successful Response */
- 200: {
- headers: {
- [name: string]: unknown;
- };
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- headers: {
- [name: string]: unknown;
- };
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- vertex_proxy_route_vertex_ai__endpoint__delete_2: {
- parameters: {
- query?: never;
- header?: never;
- path: {
- endpoint: string;
- };
- cookie?: never;
- };
- requestBody?: never;
- responses: {
- /** @description Successful Response */
- 200: {
- headers: {
- [name: string]: unknown;
- };
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- headers: {
- [name: string]: unknown;
- };
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
- vertex_proxy_route_vertex_ai__endpoint__patch_2: {
- parameters: {
- query?: never;
- header?: never;
- path: {
- endpoint: string;
- };
- cookie?: never;
- };
- requestBody?: never;
- responses: {
- /** @description Successful Response */
- 200: {
- headers: {
- [name: string]: unknown;
- };
- content: {
- "application/json": unknown;
- };
- };
- /** @description Validation Error */
- 422: {
- headers: {
- [name: string]: unknown;
- };
- content: {
- "application/json": components["schemas"]["HTTPValidationError"];
- };
- };
- };
- };
vertex_discovery_proxy_route_vertex_ai_discovery__endpoint__get: {
parameters: {
query?: never;