An API token is a credential that establishes access rights when a client calls an application programming interface. It can be used to call an AI model API or let an AI agent access an external tool. It is distinct from a token, the unit of text processed by an AI model.
API tokens are commonly sent in request headers. Like API keys, they can grant API access, but the term often refers to access tokens with defined expiration times or permission scopes.