X-API-Key header and you’re ready to go. There are no tokens to refresh or OAuth flows to manage.
Generate an API key
- Sign in to pioneer.ai.
- Go to Settings → API Keys.
- Click Create key, give it a name, and copy the key value.
Pass the key in requests
Include your API key in theX-API-Key header on every request. The examples below show the same inference call in curl, Python, and JavaScript.
Authentication errors
All other error codes are documented in the API Reference errors page.
Manage existing API keys via the API
Create new API keys from Settings -> API Keys in the Pioneer dashboard. For security, API-key-authenticated requests cannot create additional API keys;POST /create-api-key is dashboard session-only and returns 403 Forbidden when called with X-API-Key.
You can list and revoke existing keys programmatically using an existing key.
List existing keys
Revocation is immediate and permanent. Any requests using the revoked key will receive a
401 error. Create a replacement key before revoking an existing one if you need uninterrupted access.Security recommendations
- Use one key per environment (development, staging, production).
- Revoke keys immediately if you suspect they’ve been exposed.
- Avoid passing keys as query parameters — always use the
X-API-Keyheader. - In production, retrieve keys from a secrets manager rather than from environment variables baked into container images.