An API key (also API token) is a secret string with which an application or script identifies itself to an application programming interface (API). Anyone who knows the key can use the interface on behalf of its owner, often without any further login or second factor. With AI services, the key is also tied to billing, usage quotas and access to uploaded data.
API keys are authentication information and deserve the same protection as passwords: storage in a secrets vault, no storage in source code, separate keys per application, the narrowest possible permissions, regular rotation and immediate revocation after a leak. The control A.5.17 Authentication Information sets the framework. What happens when keys are shared is described in MU-11 Passing on access credentials.