About
The OpenAI Python library offers a convenient way to access the OpenAI REST API from any Python application. It provides type definitions for requests and responses, along with synchronous and asynchronous clients powered by httpx. This library simplifies tasks like generating text, working with vision models, streaming responses, and utilizing the Realtime API for low-latency conversational experiences.
Key Features
- Type definitions for request parameters and response fields
- Support for streaming responses using Server Side Events (SSE)
- Synchronous and asynchronous API clients
- 26,714 GitHub stars
- Realtime API for low-latency conversational experiences
- Auto-pagination for list methods
Use Cases
- Generating text from language models
- Creating realtime conversational experiences with audio and text support
- Building vision-based applications with image analysis