Authorization header.
Get an API key
Create an account
Sign up at redpill.ai.
Generate a key
In the dashboard, create an API key.
Use the key
Store the key in an environment variable, then send it as a bearer token:Keep keys safe
- Read the key from an environment variable or a secret manager. Never hardcode it in source.
- Add
.envfiles to.gitignore. - Use separate keys for development and production, and revoke a key in the dashboard if it is exposed.
- Call the API from your backend, not from browser or mobile client code.
Errors
A missing or invalid key returns an authentication error:FAQ
Can I use my OpenAI API key?
Can I use my OpenAI API key?
No, you need a key from this platform. The API works with OpenAI client libraries, so you keep the
same SDKs and code: just change the API key and base URL.
Where do I see usage and rate limits?
Where do I see usage and rate limits?
Check your balance, usage, and current rate limits in the
dashboard.