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
Information Last Updated
Sep 29, 2025 at 13:19
License
Apache-2.0
Total Downloads
3.4K
Platforms
GitHub Repository
https://github.com/openai/openai-pythonDocumentation
https://github.com/openai/openai-python