The OpenAI API is a cloud application programming interface that OpenAI offers to developers. Applications use it to call OpenAI's AI models and can combine them with built-in tools such as web search and file search.
The API comprises several interfaces, including the Responses API, which handles model response generation and tool calls in a single request format; the Agents API, which provides the Codex agent harness as a managed service; and the Decisions API, which returns a choice from a set of predefined answers.