OpenAI has released version 3.13.0 of its Python SDK on September 10, 2026 1. This update introduces a new Agents API, allowing developers to integrate agent capabilities into their Python applications using the official library 12. The OpenAI Python library provides access to the OpenAI REST API for Python 3.10+ applications 2.
What Changed
The most significant change in version 3.13.0 is the addition of the Agents API 1. This marks the initial integration of agent functionality into the official Python SDK. While the specific capabilities of the Agents API as introduced in v3.13.0 are not detailed in the release notes, subsequent SDK versions have expanded upon agent features.
For instance, version 3.20.0 added credential and session options for Agents 6. Later, version 3.22.0 introduced computer use for beta agents 5. Further agent-related features, such as observing local tool failures and running local tools during streamed session creation, were included in version 3.25.0 3.
Beyond agent-specific updates, the OpenAI Python library generally supports Python 3.10+ and offers both synchronous and asynchronous clients powered by HTTPX2 2. It includes type definitions for all request parameters and response fields, and the library is generated from OpenAI's OpenAPI specification 2.
Why It Matters for Developers
The introduction of the Agents API in the OpenAI Python SDK provides a foundational layer for Python developers to build sophisticated AI-powered applications that leverage agentic workflows. By integrating these capabilities directly into the official SDK, OpenAI aims to streamline the development process for creating applications that can autonomously perform tasks, use tools, and interact with environments.
While detailed usage examples for the Agents API within the SDK at the time of the v3.13.0 release are not available, this release establishes the framework for future agent-based development. Developers can anticipate building more intelligent and automated systems as the Agents API evolves.
How to Try It
To get started with the OpenAI Python SDK, you can install it using pip:
pip install openaiAPI keys can be managed by setting the OPENAI_API_KEY environment variable 2. It is recommended to use python-dotenv to store your API key in a .env file to prevent it from being committed to source control 2. For secure, automated environments like cloud-managed Kubernetes, Azure, and Google Cloud Platform, the SDK supports workload identity authentication using short-lived tokens from cloud identity providers 2.
Here is an example of initializing the client and making a request, demonstrating general SDK usage:
import os
from openai import OpenAI
client = OpenAI(
# This is the default and can be omitted
api_key=os.environ.get("OPENAI_API_KEY"),
)
response = client.responses.create(
model="gpt-5.5",
instructions="You are a coding assistant that talks like a pirate.",
input="How do I check if a Python object is an instance of a class?",
)
print(response.output_text)Limitations and Open Questions
At the time of the v3.13.0 release, specific usage examples and detailed documentation for the newly introduced Agents API were not available in the provided information. Developers looking to implement agent capabilities immediately may need to explore the SDK's source or await further documentation and examples from OpenAI. The exact scope and initial feature set of the Agents API in v3.13.0 remain to be fully detailed, with subsequent versions having added more explicit agent-related functionalities 653.