An application programming interface (API) defines how one software program accesses another program’s functions or data. Unlike a user interface operated by a person, it specifies exchanges between programs.
AI services can provide APIs for submitting input to a model and receiving its output. Some services use API keys to authenticate requests.