Learn OpenAI API
Build with OpenAI models through the Responses API and the openai Python SDK
The OpenAI API gives programs access to OpenAI's models for text, reasoning, images, embeddings and audio. The recommended interface is the Responses API, used through the official Python SDK `openai`, with built-in tools such as web search, file search and code interpreter, function calling, structured outputs, batch processing and the open-source Agents SDK for building agents.
Before you start
How deep do you want to go?
1. EssentialsRead and write simple code, do the everyday basics
2. PracticalUse it productively at work, with the usual idioms
3. AdvancedThe less common features, performance and trade-offs
4. ExpertInternals and the edge cases experts know