openai/openai-python

openai-python

The official Python library for the OpenAI API

★ 31.3k 5.1k forks Python Apache-2.0
openaipython
4.0Overall
Functionality
4.0
Documentation
4.0
Activity
4.0
Ease of use
4.0

Review

# OpenAI Python API library

<!-- prettier-ignore --> [![PyPI version](https://img.shields.io/pypi/v/openai.svg?label=pypi%20(stable))](https://pypi.org/project/openai/)

The OpenAI Python library provides convenient access to the OpenAI REST API from any Python 3.10+ application. The library includes type definitions for all request params and response fields, and offers both synchronous and asynchronous clients powered by [httpx](https://github.com/encode/httpx).

It is generated from our [Ope