Get started
Authentication
Authenticate API requests with a secret key.
API keys
Create and revoke keys under API keys in your settings. An account can hold up to five keys, so each site or app can have its own. Keys work while the account is on the Business plan.
Send the key in the Authorization header of every request.
Request
curl https://api.paintvisualizer.ai/v1/usage \
-H "Authorization: Bearer pv_your_key"Keep keys on your server
Call the API from your server. A key placed in browser or mobile app code can be copied by anyone and used against your allowance.
If a key leaks, revoke it in your settings and create a new one. A revoked key stops working at once.