Key features
Making requests
Use the OpenAI SDK unchanged: chat, completions, embeddings, responses, streaming.
Anthropic Messages API
Call
/v1/messages in Anthropic format and serve it from any provider.Providers
Connect providers from OpenAI and Bedrock to vLLM and Ollama.
Virtual models
Expose a routing config under a model name your clients can call directly.
Routing and fallback
Fallback, load balancing, canary, conditional and latency-based routing.
Auto routing
Classify each turn’s complexity and send it to the right tier of model.
Caching
Exact and semantic response caching, keyed on the redacted request.
Async requests
Queue completions with
/v1/async/*, poll for the result or get a webhook.Access control
Roles, team model allow-lists and provider account access.
Rate limits
Request and token limits per minute, hour or day at every level.
Budgets
Spending caps in USD or tokens; the most restrictive one wins.
Guardrails
Validate and mutate inputs and outputs with built-in or custom checks.
PII redaction
Redact personal data before it reaches a provider, with an optional reversible vault.
Prompt injection
Score prompts for injection attempts and audit or block them.
Tracing
Send OpenTelemetry traces to your own collector per workspace.
Metrics
Prometheus metrics for requests, tokens, cache, policy and upstream health.
Self-hosting
Run the gateway, workspace and deployer services on your own infrastructure.
Supported providers
Each provider type has an adapter or an OpenAI-wire passthrough. Passthrough providers receive the request body unchanged, so the provider’s own API decides what it accepts. Adapters that translate to a native API check each parameter instead (see the note below). Register them in the console under Providers, or declare them ingateway.yaml when you self-host.
See Providers for what each type can serve, its credential format and its default endpoint.
For adapters that translate to a native API (such as Anthropic, Gemini, Vertex, Bedrock, Cohere, TypeSafe and Perplexity), the gateway checks each request parameter it cannot translate faithfully, such as
n, seed or response_format, and returns 400 unsupported_parameter naming that parameter. It never drops the parameter silently. TypeSafe requires response_format with a JSON schema.Supported APIs
On ManyLayers Cloud every endpoint lives underhttps://app.manylayers.io/v1 and accepts Authorization: Bearer <key>. A self-hosted gateway serves the same paths on your own host.
The stateful OpenAI surfaces (
/v1/assistants, /v1/threads, /v1/vector_stores, /v1/conversations, /v1/containers, /v1/uploads, /v1/evals, /v1/organization) are refused with 404 unsupported_endpoint in the standard OpenAI error envelope, and so is any other unrouted path under /v1. The gateway also serves /health, /healthz, /ready, /readyz, /version and /metrics.
Next steps
Quick Start
Add a provider, create a key and send your first request.
Authentication
API keys, personal access tokens, virtual accounts and OIDC.
Providers
Configure each provider type in detail.