OpenAPI is a specification for describing, producing, consuming, and visualizing RESTful web services. It started as Swagger and aimed to standardize how REST APIs are described and documented to make them easier for developers and machines to understand. While OpenAPI has evolved, its core goal remains helping developers discover and understand APIs to build better applications and services.