An AI Consumer is the AI Gateway entity that identifies an external client consuming or using the AI APIs you publish through AI Gateway. Consumers can represent applications, services, or users who interact with your AI Models, AI Agents, and AI MCP Servers.
AI Consumers are essential for controlling access to your AI APIs, tracking usage, and ensuring security. They are identified through authentication credentials (API keys or OAuth), allowing AI Gateway to authenticate requests and apply Consumer-specific controls. By creating AI Consumers and organizing them into AI Consumer Groups, you can manage access controls at scale, attach AI Policies for governance and security, and monitor token usage per Consumer.