Home Projects openai-python
openai-python
Python

openai-python

The official Python library for the OpenAI API

by openai · GitHub
Top 5% most starred in the catalogue
Stars
Forks
License
Created
Last commit
Category
Language
openaipythonApache-2.0Python
View on GitHub
In plain words

Access OpenAI's tools in your Python applications to generate text and more.

From the README

Install
pip install 'openai[bedrock]'
Documentation ↗

Excerpts from the project README on GitHub. Copyright and licensing remain with the respective authors.

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-08-31
📈 Track openai-python

Get an email alert on its next release or when it starts trending — never miss the moment.

Free · no card · unsubscribe anytime
Get email alerts →
📄 About

The official Python library for the OpenAI API

openai-python has 31.2k stars on GitHub. It has been forked 5k times. openai-python is written mainly in Python. It has been in active development since 2020. openai-python is available under the Apache-2.0 license. Its main topics are openai, python.

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.

What license does openai-python use?

openai-python is available under the Apache-2.0 license.

What language is openai-python written in?

openai-python is written mainly in Python.

🏅 Maintainer of this project?
olud.ai badge — openai-python

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

[![olud.ai](https://olud.ai/badge.php?tool=openai-openai-python)](https://olud.ai/project/openai-openai-python.html)
More badge options →
🧬 Related projects