AI Model traffic can either use placeholder API keys or AI Consumer credentials to authenticate traffic.
A placeholder key satisfies a client SDK that insists on a non-empty API key value, but it doesn’t identify who’s calling. You can use placeholders for testing, but we strongly recommend using AI Consumers and consumer credentials in a production environment.
AI Consumers with consumer credentials allow you to:
- Attribute usage per-consumer
- Apply per-caller policies
- Revoke access for one caller without revoking the shared placeholder for everyone
Additionally, in most production environments, consumers should not have access to API keys themselves for security reasons.
This how-to uses an AI Consumer backed by a real credential (here, an OIDC bearer token) to give every request an identity that usage, rate limiting, and audit logs can use.