The OpenAI Python library provides convenient access to the OpenAI REST API from any Python 3.7+ application. The library includes type definitions for all request params and response fields, and offers both synchronous and asynchronous clients powered by httpx.
Features
- Synchronous and asynchronous API clients via HTTPX
- Auto-generated type definitions from OpenAPI
- Supports all OpenAI endpoints (chat, images, audio, etc.)
- Dynamic request/response mapping for ease of use
- Python 3.8+ compatibility
- Maintained under Apache‑2.0 license
License
Apache License V2.0Follow OpenAI Python
Other Useful Business Software
Forever Free Full-Stack Observability | Grafana Cloud
Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of OpenAI Python!