openai
Python client library for the OpenAI API
Python client library for the OpenAI API
To install this package, run one of the following:
The OpenAI Python library provides convenient access to the OpenAI API from applications written in the Python language. It includes a pre-defined set of classes for API resources that initialize themselves dynamically from API responses which makes it compatible with a wide range of versions of the OpenAI API.
This library additionally provides an openai command-line utility which
makes it easy to interact with the API from your terminal.
Run openai api -h for usage.
Summary
Python client library for the OpenAI API
Last Updated
Dec 16, 2025 at 19:10
License
MIT
Total Downloads
2.1M
Supported Platforms
Unsupported Platforms
GitHub Repository
https://github.com/openai/openai-python