← all repositories

openai/openai-python

Official Python client library for calling OpenAI's language model APIs.

30.9k stars Python Language Models
openai-python
Velocity · 7d
+15
★ / day
Trend
steady
star history

This repository provides a Python SDK for accessing OpenAI’s REST API, including chat completions, responses, embeddings, and other model endpoints. It includes type definitions for all request and response fields, and offers both synchronous and asynchronous clients powered by httpx. The library is auto-generated from OpenAI’s OpenAPI specification.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.