The gateway exposes an OpenAI-compatible API under https://app.manylayers.io/v1, plus an Anthropic-compatible /v1/messages. Use this page to check whether an endpoint exists and which providers can serve it. On the hosted service, /v1 and the console’s control-plane routes (/ui, /auth/*, /admin/*, /w/*) are both served from https://app.manylayers.io. A self-hosted stack runs them as separate services (Gateway and Workspace). All /v1 endpoints require Authorization: Bearer <token>: an API key (ml-...), personal access token (ml_pat_...), virtual account token (ml_vat_...) or an OIDC JWT. See Authentication and Making Requests. The caller’s organization must hold the AI Gateway product, otherwise /v1 answers 403 product_not_entitled.

Where models come from

A model is resolved from one of two sources (see Model Resolution):
  • Workspace providers registered in the console, for callers bound to a workspace.
  • models: in gateway.yaml, the configured catalog.
Which source an endpoint uses:
  • Workspace providers only (for a workspace-bound credential): /v1/chat/completions, /v1/systemone, and /v1/responses and /v1/messages, which run as chat completions.
  • Workspace providers first, then gateway.yaml: /v1/embeddings, /v1/rerank, /v1/audio/speech and /v1/audio/transcriptions. A workspace model of the wrong type (a chat model on /v1/embeddings) is refused.
  • gateway.yaml only: /v1/completions, /v1/images/*, /v1/audio/translations, /v1/moderations, files, fine-tuning, realtime and async.

Chat & completions

See OpenAI Compatibility for which parameters each provider honours.

Embeddings

Realtime

Images & audio

A model on any other provider returns 400 unsupported_provider. Responses carry X-ManyLayers-Cost when the model has a price configured. These endpoints skip token counting, PII redaction, the cache and guardrails, and per-request token ceilings and token-rate limits. Access policies, model restrictions, request-rate limits and spend budgets still apply, so a spent spend budget refuses the request with 402 budget_exceeded.

Moderations & rerank

Files & fine-tuning

openai and azure only. Name the model in the X-ManyLayers-Model header or the ?model= query parameter. POST /v1/fine_tuning/jobs reads model from its JSON body instead; without any of these the call returns 400 missing_model.

Async inference

Jobs replay through the full gateway pipeline and can deliver results to a signed webhook. See Async Requests.

System One

Knowledge bases & document sets

MCP servers

End users

See End Users, End-User Budgets and the End-User Usage API.

Service endpoints

Every service (Gateway, Workspace and Deployer) serves these without a credential, outside /v1: GET /health and /healthz (liveness), /ready and /readyz (readiness, which also checks dependencies), /version (build stamp), and /metrics (Prometheus). The Worker serves /health, /ready and /metrics only. On the hosted address, /metrics answers 404 and everything outside /v1 goes to the Workspace service.

Unsupported endpoints

These OpenAI surfaces are refused with 404 and code: "unsupported_endpoint", for every method and sub-path. The message names what to use instead. Any other unrouted /v1 path — including /v1/responses/{id} — also returns 404 unsupported_endpoint. A known path called with the wrong method returns 405 method_not_allowed. Both use the standard OpenAI error envelope. The unsupported paths sit behind authentication, so a call without a valid credential gets 401 invalid_api_key rather than 404.

Next steps

Making Requests

Configure your SDK and send a first request.

Request & Response Headers

Headers that steer and describe each request.

Model Resolution

How a model name becomes a provider deployment.

OpenAI Compatibility

Parameter support per provider.