# openai-python | OpenAI | Knowledge Base | Instagit

The official Python library for the OpenAI API

GitHub Stars: 29.9k

Repository: https://github.com/openai/openai-python

---

## Articles

### [How to Implement an OpenAI Stream for Real-Time Responses in Python](/openai/openai-python/how-to-openai-stream-realtime-responses)

Learn how to implement an OpenAI stream in Python for real-time responses. Set stream=True in your API calls to receive incremental model output.

- Tags: how-to-guide
- Published: 2026-02-18

### [Technical Distinction Between Legacy Davinci and text-davinci-003 in the OpenAI API](/openai/openai-python/openai-davinci-difference)

Understand the technical difference between legacy Davinci and text-davinci-003 on the OpenAI API. Discover how instruction tuning and RLHF improve prompt accuracy in the newer model.

- Tags: deep-dive
- Published: 2026-02-16

