Skip to main content

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

For Chat Completions API

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

For Responses API

Chat Completions API

For C1 Gemini models, the reasoning_effort parameter translates to the following max reasoning tokens:

Responses API

All C1 models are supported via the Responses API, including OpenAI and non-OpenAI models. Our Responses API implementation is Open Responses compliant.
There are three ways to maintain chat history in Responses API:
  1. Pass the full conversation history — Include all previous messages in the input array with each request.
  2. Use previous_response_id — Reference a prior response by its ID to automatically chain conversations (requires store: true).
  3. Use conversation — Group related responses into a named conversation for persistent multi-turn context (requires store: true).
To create a conversation using previous_response_id:
To create a conversation and use it across multiple requests:
Built-in tools (web_search, file_search, code_interpreter, computer_use, mcp) will be supported soon.

input item types

text sub-fields