API Keys

An API key authenticates every call to the Admesh gateway. Each key belongs to one account and shares that account's balance and model permissions.

Key format

Type Prefix Purpose
Production sk-live-* Live traffic, metered per use
Test sk-test-* Integration testing, billed the same

Create and store

  1. Sign in to the console and open API Keys.
  2. Click New, give the key a name, and optionally set spend/concurrency limits.
  3. The full secret is shown only once at creation. Copy it now — the platform stores only a hash and the last digits, and cannot show the plaintext again.

Manage

  • Disable / revoke: takes effect globally in about 30 seconds.
  • Limits: set a monthly spend cap, rate limits (RPM/TPM), and an allowed model scope per key.
  • Isolation: use sk-live-* for production and sk-test-* for staging so usage stays separable.

Security

  • Never commit a key to source control or ship it in a frontend bundle.
  • Inject it via environment: export ADMESH_API_KEY="sk-live-...".
  • If a key leaks, revoke it in the console and create a new one.