Skip to contentOceanToken

Glossary term

What is an LLM gateway?

One endpoint in front of many model providers.

Definition

An LLM gateway is a single API endpoint that sits between your application and many model providers. You send every request to the gateway with one key and one request format, and it forwards the request to the provider that serves the model you named.

Why it matters

Without a gateway, each provider means its own account, SDK, key, error format and invoice. A gateway turns switching or adding a model into a one-line change, and lets you fall back to another model when one is slow or down.

How it works on OceanToken

OceanToken is an LLM gateway with an OpenAI-compatible API. Point an OpenAI SDK at https://api.oceantoken.ai/v1, use your OceanToken key, and set model to any id from the model list.

curl https://api.oceantoken.ai/v1/chat/completions \
  -H "Authorization: Bearer $OCEANTOKEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "deepseek/deepseek-v4-pro", "messages": [{"role": "user", "content": "Hello"}]}'