Skip to main content

API Keys

Your prx- key authenticates every request and draws down your credit balance.

Create a key

  1. Open the Primex Telegram bot.
  2. Go to AI → Setup.
  3. Create a key — it will look like prx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.
  4. 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.