Clatter LabsHelp Center

How do I turn a Playground chat into code?

How-toUpdated
  1. Set up your chat in Playground › Chat the way you like it.
  2. Select View code.
  3. Pick Python (OpenAI SDK), JavaScript (OpenAI SDK) or cURL.
  4. Copy it. It includes the model id, your settings, the base URL https://api.gateway.clatterlabs.xyz/v1 and the X-Clatter-Account header.
  5. 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?#

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.xyz
For deleting your whole account or the data of one service.