Accessing the API
All API endpoints are available athttps://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 aAuthorization 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
There are three ways to maintain chat history in Responses API:- Pass the full conversation history — Include all previous messages in the
inputarray with each request. - Use
previous_response_id— Reference a prior response by its ID to automatically chain conversations (requiresstore: true). - Use
conversation— Group related responses into a named conversation for persistent multi-turn context (requiresstore: true).
previous_response_id:
Built-in tools (
web_search, file_search, code_interpreter,
computer_use, mcp) will be supported soon.