The Model API allows CORS. Does that mean I can call it from the browser?
The API sends CORS headers (and exposes headers such as x-request-id, retry-after and the rate limit and notice headers), which makes things like the docs' Try it button work. That doesn't make it safe to put a key in front-end code: anyone who opens your site could copy it. Call the Model API from your server.
Good to know#
- Model ids:
supercosmos-flash,supercosmos-max,supercosmos-heavy(SuperCosmos 1.1). Which to call - Base URL:
https://api.gateway.clatterlabs.xyz/v1, withAuthorization: Bearer clsk_...andX-Clatter-Account: CL-...on every call. Quick reference - Every call shows in Console › Logs and Usage as Model API, with its price. See what you spent
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.