Accessing the API

All API endpoints are available at https://api.thesys.dev/v1.

Authentication

Authentication is done via API keys. You can create API keys from the keys page. API keys must be sent as a Authorization header with the value Bearer <api_key>. If the API key is not valid, you will receive a 403 error.

Rate Limits

Please refer to the Rate Limits page for more information.

Errors

Please refer to the Errors page for more information.

Examples

curl -X POST \
  -H "Authorization: Bearer <api_key>" \
  -H "Content-Type: application/json" \
  -d '{"model": "c1-embed-latest", "messages": [{"role": "user", "content": "Hello, world!"}]}' \
  https://api.thesys.dev/v1/embed/chat/completions

Stream this response via the language specific helper functions to the react client.