Connect an application or IDE to the API

Check the endpoint, key, model ID and supported protocol.

Connection settings

You need the API base URL, a Tokeniser key and an available model ID. The workspace contains client-specific instructions. Custom endpoint support depends on the client and its version.

Start with the catalog

Keep the key in an environment variable. This request reads the model list without generating a response.

curl https://tokeniser.ru/v1/models \
  -H "Authorization: Bearer $TOKENISER_API_KEY"

Match the protocol

Use /v1/chat/completions for Chat Completions or /v1/responses for Responses when accepted for the selected model. A matching name alone does not establish compatibility with Codex, Cursor or OpenCode; real client acceptance is separate.

Troubleshooting

401: key; 403: permissions; 402: balance; 429: request frequency; 503: model availability. The client controls retries. Each new request is billed for actual usage. Contact support with questions about charges.