Skip to main content

API

Everything you need to call OceanToken from code. In the console it sits under Use your key on API Keys, below your list of keys. Open the API page on a model's details opens the same content for that model.

Base URL and quickstart

Base URL​

https://api.oceantoken.ai/v1. Point any OpenAI-compatible client at it; Copy puts it on your clipboard. The Anthropic SDK is the one exception: it adds /v1 itself, so for any model through that SDK use https://api.oceantoken.ai (see the Quickstart).

Quickstart​

Pick a Model and a Language and the page writes a runnable snippet for that model on the endpoint it is served from. Replace the placeholder with one of your keys, choose Copy code, and run it. While the card that shows your first key is still open on API Keys, the snippet already carries that key.

Endpoints​

Below the quickstart, Endpoints lists the full request URLs your account can call right now. It is derived from the live catalog, so an endpoint appears only when a model behind it is deployed. An SDK takes the base URL and adds the path after /v1 itself, so do not join the two. Try it with curl under the list is a request you can copy as it is. The same endpoints, with more detail, are on the API reference page here.