跳到主要内容

API

Everything you need to call OceanToken from code, on one page.

The API page: 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 Claude models through that SDK use https://api.oceantoken.ai (see your first request).

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 a key from API Keys, Copy code, and run it.

Endpoints​

Below the quickstart, the table lists the endpoints 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. The same table, with more detail, is on the API reference page here.