Skip to content
AI for Everyone

API (application programming interface)

Concept

A loop diagram. A program that writes product copy for an online store sends a request to the OpenAI API with an API key, a model name, and instructions. The API sends back a response: text generated by the model.
People use a service through screens and buttons, while programs use the same service through its API.Diagram: AI for Everyone

API stands for application programming interface. People use an app through windows, buttons, and text boxes, while other programs use it through its API. MDN Web Docs describes an API as a simple contract between the application that offers it and the software or hardware that uses it.

OpenAI’s API is a good example. To use it, you first create an API key that identifies your account. Your program then sends a request with the name of a model and a prompt, and gets back the text the model generated. This lets a language model work inside another app, such as a program that writes product descriptions for an online store. The company behind an API also decides what you can use through it. In November 2025, OpenAI announced that it would retire DALL-E 2 and DALL-E 3 from its API, and it shut them down on May 12, 2026. OpenAI recommends models from its GPT Image family as replacements.

In my articles

My February 2025 article on generative AI doesn’t mention APIs. In the update note I added in November 2026, I point out that OpenAI has retired the DALL-E models from its developer API, so you can no longer call them from your own code.

Sources

Related articles

Related entries

Last checked:

All entries