Can I call the Model API from a browser extension?
Don't put a clsk_ key in an extension: extension code can be unpacked and read by anyone who installs it. Instead, have the extension call your server, which checks the user and calls the Model API. That also lets you moderate input (your account is responsible for users' text) and enforce per-user limits.
Good to know#
- Keep keys on your server, never in a browser or mobile app. Why
- Model ids:
supercosmos-flash,supercosmos-max,supercosmos-heavy(SuperCosmos 1.1). Which to call - Each key has its own limit: 10, 30 (default), 60 or 120 requests per minute. Rate limits
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.