openai
Package — LLM/AIPython 3.7+Intermediate
Official Python client for OpenAI API (GPT, DALL-E, Whisper)
Quick Info
- Documentation
- Official Docs
- Python Version
- 3.7+
- Dependencies
- httpx, pydantic, typing-extensions, anyio, distro, sniffio, tqdm
- Install
pip install openai
Learn by Difficulty
Quick Example
python
# Install: pip install openai import openai # Basic openai usage print(f"Using openai") # See documentation for detailed examples
openai is a third-party package. Official Python client for OpenAI API (GPT, DALL-E, Whisper). Install with: pip install openai
Try in PlaygroundTags
packagellmaigptapi-client
Related Items
anthropic
Package — LLM/AI
Official Python client for Anthropic's Claude API
langchain
Package — LLM/AI
Framework for LLM applications: chains, agents, retrieval
tiktoken
Package — NLP
Fast BPE tokenizer used by OpenAI models
httpx
Package — HTTP
Modern HTTP client with async support, HTTP/2, requests-like API
litellm
Package — LLM/AI
Unified API to call 100+ LLM providers (OpenAI, Anthropic, etc.)