Home Projects openai-python
openai-python

openai-python

by openai · GitHub

The official Python library for the OpenAI API

# openai# python
View on GitHub
⭐ Stars
31.2k
🍴 Forks
5k
📜 License
Apache-2.0
Commercial use OK
📅 Created
2020
🔄 Last commit
4 days ago
🏷️ Category
openai
💻 Language
You maintain this project?

Claim its page: indexed whatever its rank, translated into six languages, and enriched with what you write yourself.

Claim this page →
openai-python — GitHub preview card
📈 Star history
31.3k31.0k
2026-06-272026-07-22
📄 About

The official Python library for the OpenAI API

Frequently asked questions

What is openai-python?

The official Python library for the OpenAI API

Is openai-python open source?

openai-python is an open-source project. It is released under the Apache-2.0 license.

Is openai-python free?

Yes. openai-python is free and open source — you can use, modify and self-host it.

🏅 Maintainer of this project?
OpenSourceAI badge — openai-python

Add this live badge to your README — your GitHub stars and directory rank, refreshed daily.

[![OpenSourceAI](https://opensourceai.tech/badge.php?tool=openai-openai-python)](https://opensourceai.tech/project/openai-openai-python.html)
More badge options →
🧬 Shares DNA with

Measured from GitHub topics shared by both projects, weighted by how rare each topic is.