Skip to main content
The official OpenAI SDKs work as they are. Set the base URL to https://api.trustqai.com/v1 and use your Qai key.

Install

Configure the client

Stream a reply

Set stream to get the reply as it is generated:

Model-specific options

Options that are not part of the OpenAI API, such as switching a model’s thinking off, go in extra_body in Python and are passed alongside the other fields in Node.js:
See Models for how thinking works.