This guide is for developers sending traffic. If you already call OpenAI or Anthropic, you keep your code and change two things: the base URL and the API key.Documentation Index
Fetch the complete documentation index at: https://docs.openlayer.com/llms.txt
Use this file to discover all available pages before exploring further.
You’ll need the gateway base URL (such as
https://your-gateway.example.com/v1) and an API key (it starts with
sk-olga-). Your operator creates these in Set up the
gateway.Send a request
Point your client at the gateway and use your gateway key. Everything else about your code stays the same.The gateway speaks the OpenAI Responses API at
/v1/responses and the
Anthropic Messages API at /v1/messages. Use whichever your SDK targets.
Streaming behaves exactly as it does against the provider directly: set
stream=True (or stream: true) and read the events as usual.What you just got
On its way to the provider and back, your request was also:- Checked against your usage limits, and refused if it would exceed one.
- Screened by guardrails for PII and prompt injection, on both the input and the response.
- Traced to your Openlayer project, with model, tokens, latency, and cost.

If something goes wrong
401 Unauthorized
401 Unauthorized
429 Too Many Requests
429 Too Many Requests
A usage limit on your key or team has been reached. Ask your operator to review your
usage limits.
422 Unprocessable Entity
422 Unprocessable Entity
A guardrail blocked the request or the response. The error names the guardrail and the stage it
fired on. See Guardrails.
503 Service Unavailable
503 Service Unavailable

