Can I use the Model API with LangChain or other AI frameworks?
The docs say any OpenAI SDK works by changing the base URL. Frameworks built on the OpenAI Chat Completions format generally work the same way if they let you set:
- the base URL (
https://api.gateway.clatterlabs.xyz/v1), - the API key, and
- an extra default header (
X-Clatter-Account).
If a framework can't add a custom header, it can't authenticate (401 missing_account_id). Also make sure it uses Chat Completions rather than the Responses API or embeddings, which aren't available.
Clatter Labs doesn't publish guides for specific third-party frameworks, so test your setup with a small request first.
Good to know#
- Retry only
429and 5xx errors, with backoff; honourRetry-Afterwhen it's sent. Which errors to retry - Every call shows in Console › Logs and Usage as Model API, with its price. See what you spent
- Every response has an
X-Request-Id; log it so a request can be found later. Why log it
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.