API Keys
Your prx- key authenticates every request and draws down your credit balance.
Create a key
- Open the Primex Telegram bot.
- Go to AI → Setup.
- Create a key — it will look like
prx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx. - Copy it once and store it somewhere safe.
Use a key
Provide it as a header on every request — either style works:
Authorization: Bearer prx-YOUR_KEY
# or
x-api-key: prx-YOUR_KEY
Most SDKs read it from an environment variable:
export OPENAI_API_KEY=prx-YOUR_KEY # OpenAI SDK / Cursor / Codex
export ANTHROPIC_API_KEY=prx-YOUR_KEY # Anthropic SDK / Claude Code
Rotate or revoke
If a key is exposed, revoke it from AI → Setup and create a new one. Revoked keys stop working immediately; in-flight requests already authorized may complete.
Best practices
- One key per environment (local, CI, production) so you can revoke narrowly.
- Never embed a key in a browser, mobile app, or public repo.
- Watch your usage on the AI → Usage page in the Telegram app.