The OpenAI Python library provides convenient access to the OpenAI REST API from any Python3.7+ application. The library includes type definitions for all request params and response fields, and offers both synchronous and asynchronous clients powered by httpx.