Clatter LabsHelp Center

Can I use the Model API with LangChain or other AI frameworks?

FAQUpdated

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:

  1. the base URL (https://api.gateway.clatterlabs.xyz/v1),
  2. the API key, and
  3. 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 429 and 5xx errors, with backoff; honour Retry-After when 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?#

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.