Skip to main content
  1. Create an API key in the app.
  2. List the available bots.
  3. Send one chat request.
  4. Check workspace usage.

1. Create an API key

In the app, go to Settings -> API Access and create a key for the workspace you want to use. Keys are only shown once. Save the value when it appears.

2. List bots

Pick the id of the bot you want to use.

3. Send a chat request

The response includes sessionId, responseId, and text.

4. Keep the conversation going

Reuse the same sessionId in later requests if you want context carried forward.

5. Check usage

The response includes the current period, request count, TTS count, and credit balance when the workspace uses credits. For chat request details, see API chat. The generated API reference is available in the sidebar.