How do I turn a Playground chat into code?
- Set up your chat in Playground › Chat the way you like it.
- Select View code.
- Pick Python (OpenAI SDK), JavaScript (OpenAI SDK) or cURL.
- Copy it. It includes the model id, your settings, the base URL
https://api.gateway.clatterlabs.xyz/v1and theX-Clatter-Accountheader. - Create a key with the Model API preset and put it in
CLATTER_API_KEY.
In Agent mode, View code shows how to start the same run with the Agent API.
Good to know#
- Playground use is billed from your API credits, like the Model API and Agent API.
- SuperCosmos reads text only; image input isn't supported.
Learn more#
Still need help?#
- General support: support@clatterlabs.com or team@clatterlabs.xyz
- Infrastructure questions, or permanent deletion of your data (your whole account or one service): infrastructure@clatterlabs.xyz
We usually reply within the first hour, and always within 24 hours. A full support team is with you.
Related articles
Still need help?
Tried the steps above and still stuck? Email us. We usually reply within the first hour, and always within 24 hours. A full support team is with you.
Infrastructure questions, or permanent deletion of your data
infrastructure@clatterlabs.xyzFor deleting your whole account or the data of one service.