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 or quota; 429: request frequency; 503: temporary availability. Avoid automatically resending after losing a response: the original request may have completed.