Skip to contentOceanToken

Glossary term

What is an OpenAI-compatible API?

An API that accepts the same requests as OpenAI's, so OpenAI SDKs work with it.

Definition

An OpenAI-compatible API accepts the same request and response format as OpenAI's Chat Completions API. Any tool or SDK written for OpenAI can call it by changing only the base URL and the API key, and the rest of the code, from messages to streaming and tool calls, stays the same.

Why it matters

Most AI tools, agents and libraries speak the OpenAI format. A compatible API lets you use them with models from other makers without rewriting your code.

How it works on OceanToken

OceanToken's API is OpenAI-compatible: set the base URL to https://api.oceantoken.ai/v1 and the model field to the model you want. See the integrations for step-by-step setups.