OpenAI Python SDK

AIApache-2.0

The official Python library for the OpenAI API.

Latest v3.8.0 · by OpenAIWritten in PythonWebsiteopenai/openai-pythonRSS

Release activity

Release activity — 21 releases across 20 days since Jul 9, 2026. Each cell is one day; darker means more releases that day. Nothing is recorded before Jul 9, 2026. Older weeks are hidden at this screen width.
JunJulAugSep
SundayNo releases on Jul 12, 2026No releases on Jul 19, 2026No releases on Jul 26, 2026No releases on Aug 2, 2026No releases on Aug 9, 2026No releases on Aug 16, 2026No releases on Aug 23, 2026No releases on Aug 30, 2026No releases on Sep 6, 2026
MondayNo releases on Jul 13, 2026No releases on Jul 20, 20261 release on Jul 27, 20262 releases on Aug 3, 2026No releases on Aug 10, 20261 release on Aug 17, 2026No releases on Aug 24, 2026No releases on Aug 31, 2026No releases on Sep 7, 2026
TuesdayNo releases on Jul 14, 2026No releases on Jul 21, 20261 release on Jul 28, 2026No releases on Aug 4, 20261 release on Aug 11, 20261 release on Aug 18, 2026No releases on Aug 25, 2026No releases on Sep 1, 2026No releases on Sep 8, 2026
WednesdayNo releases on Jul 15, 20261 release on Jul 22, 2026No releases on Jul 29, 2026No releases on Aug 5, 20261 release on Aug 12, 20261 release on Aug 19, 20261 release on Aug 26, 20261 release on Sep 2, 2026
Thursday1 release on Jul 9, 2026No releases on Jul 16, 20261 release on Jul 23, 20261 release on Jul 30, 2026No releases on Aug 6, 2026No releases on Aug 13, 2026No releases on Aug 20, 20261 release on Aug 27, 20261 release on Sep 3, 2026
FridayNo releases on Jul 10, 20261 release on Jul 17, 2026No releases on Jul 24, 20261 release on Jul 31, 2026No releases on Aug 7, 20261 release on Aug 14, 2026No releases on Aug 21, 20261 release on Aug 28, 2026No releases on Sep 4, 2026
SaturdayNo releases on Jul 11, 2026No releases on Jul 18, 2026No releases on Jul 25, 2026No releases on Aug 1, 2026No releases on Aug 8, 2026No releases on Aug 15, 2026No releases on Aug 22, 2026No releases on Aug 29, 2026No releases on Sep 5, 2026

21 releases since Jul 9, 2026, busiest day 2

Changelog

What changed from 2 to 3

v3.8.0

Latest
Added 1
  • Add gpt-6-astra and related features

From OpenAI Python SDK

3.8.0 (2026-09-03)
Features
  • api: add gpt-6-astra and related features (#3791) (09f446f)
Documentation
View originalPermalink
How v3.8.0 went

v3.7.0

Added 1
  • Update usage APIs and documentation
Fixed 1
  • Avoid repeated numpy checks for embeddings

From OpenAI Python SDK

3.7.0 (2026-09-02)
Features
  • api: update usage APIs and documentation (#3779) (6f0da16)
Bug Fixes
  • avoid repeated numpy checks for embeddings (#3757) (b19c216)
View originalPermalink
How v3.7.0 went

v3.6.0

Added 1
  • Add compute_units to Responses and Chat Completions usage
Security 1
  • Harden X.509 workload identity integration

From OpenAI Python SDK

3.6.0 (2026-08-27)
Features
  • api: add compute_units to Responses and Chat Completions usage (#3749) (52421d1)
Bug Fixes
  • auth: harden X.509 workload identity integration (#3740) (fc3ad6c)
Chores
  • deps-dev: bump @stdy/cli from 0.22.1 to 0.22.2 (#3719) (4f5598c)
  • deps-dev: bump mypy from 1.17 to 2.3.1 (#3747) (0b52c9e)
  • deps-dev: bump pandas-stubs from 2.2.2.240807 to 2.3.3.260113 (#3659) (95f0b43)
  • deps-dev: bump pyright from 1.1.399 to 1.1.413 (#3744) (9917c6e)
  • deps-dev: bump rich from 14.2.0 to 15.0.0 (#3717) (7a5484d)
  • deps: bump actions/checkout from 6.0.2 to 7.0.1 (#3665) (d0a2550)
  • deps: bump actions/download-artifact from 6.0.0 to 8.0.1 (#3669) (f627619)
  • deps: bump github/codeql-action/init from 4.37.1 to 4.37.7 (#3745) (a36010d)
Build System
  • deps: bump actions/setup-python from 5.6.0 to 7.0.0 (#3672) (d765db7)
  • deps: bump pypa/gh-action-pypi-publish from 1.14.0 to 1.14.2 (#3666) (dacbb66)
View originalPermalink
How v3.6.0 went

v3.5.0

Changed 1
  • Make function call output call IDs optional

From OpenAI Python SDK

3.5.0 (2026-08-27)
Features
  • api: make function call output call IDs optional (#3738) (c74501d)
View originalPermalink
How v3.5.0 went

v3.4.0

Added 2
  • Add obfuscation field to ChatCompletionChunk
  • Add project residency configuration and cost quantity units
Fixed 12
  • Encode Realtime call offers and session configuration
  • Apply consistent origin checks to WebSocket redirects
  • Encode deployment names consistently in Azure
  • Keep provider validation errors value-free in Azure
  • Resolve one authentication mode in Azure
  • Compute custom-code summaries from trusted workflow code

From OpenAI Python SDK

3.4.0 (2026-08-25)
Features
  • api: Add obfuscation field to ChatCompletionChunk (#3690) (c7d8e1d)
  • api: add project residency configuration and cost quantity units (#3726) (bc4f8ef)
Bug Fixes
  • api: encode Realtime call offers and session configuration (#3736) (555ac48)
  • apply consistent origin checks to WebSocket redirects (#3693) (1b324d0)
  • azure: encode deployment names consistently (#3683) (689538d)
  • azure: keep provider validation errors value-free (#3691) (72529c0)
  • azure: resolve one authentication mode (#3689) (e3d0681)
  • compute custom-code summaries from trusted workflow code (#3692) (2b5868d)
  • create upload example fixtures in private directories (#3686) (f36e6f7)
  • decode SSE incrementally without limiting event size (#3687) (2598d53)
  • keep Python SDK diagnostics metadata-only (#3685) (600aa8d)
  • Preserve Azure authentication boundaries across transports (#3684) (06ef57c)
  • preserve the configured TLS hostname (#3694) (aa5fbc4)
  • preserve WebSocket send queue byte accounting during flush (#3688) (96f966d)
Chores
  • api: Clarify image background docs and preview support (#3703) (bedb9a7)
  • api: document supported image generation models (#3695) (8edd9ae)
  • api: move chat validation tests out of generated code (#3698) (9d3ba20)
  • api: move webhook tests out of generated code (#3700) (04ecb3c)
  • api: remove redundant generated formatting (#3696) (5ac1e03)
  • api: remove redundant generated test edits (#3697) (351ef84)
  • api: Update SDK generation metadata only (#3716) (e43b422)
  • set a ceiling for Python SDK customization (#3714) (04d5d79)
Documentation
  • api: restore generated ChatKit API index (#3705) (4534106)
  • standardize Python SDK vulnerability disclosure policy (#3642) (1fc0a21)
Refactors
  • api: isolate audio response format selection (#3701) (ece4324)
  • api: isolate vector-store polling helpers (#3713) (a002ef3)
  • api: move file processing polling into SDK-owned helpers (#3712) (5f20c51)
  • api: share embedding response decoding (#3699) (50de9af)
  • api: share webhook signature verification (#3704) (e14ac34)
View originalPermalink
How v3.4.0 went

v3.3.1

Changed 1
  • Use the standard library for platform detection
Removed 1
  • Remove jsonschema and unused fixture-validation dependencies
Security 1
  • Update dependencies with published security fixes

From OpenAI Python SDK

3.3.1 (2026-08-19)
Bug Fixes
  • deps: update dependencies with published security fixes (#3680) (53aa4fc)
Chores
  • build: migrate to uv (#3653) (b37e85d)
  • deps: remove jsonschema and unused fixture-validation dependencies (0dfdfdd)
  • lock the repository Pyright toolchain (#3678) (3079be2)
  • run the mock server from locked local tooling (#3679) (370fcc6)
Refactors
  • deps: use the standard library for platform detection (d5b0065)
Build System
  • replace the external README metadata hook (e673ca8)
View originalPermalink
How v3.3.1 went

v3.3.0

Added 1
  • Support named data-residency endpoints
Fixed 1
  • Require patched optional networking dependencies
Removed 1
  • Remove unused dependencies

From OpenAI Python SDK

3.3.0 (2026-08-18)
Features
Bug Fixes
  • require patched optional networking dependencies (#3651) (40e56de)
Chores
  • remove unused dependencies and pin build tooling (#3650) (eee8e4a)
Documentation
  • strengthen Python SDK security contribution guidance (#3639) (6577709)
View originalPermalink
How v3.3.0 went

v3.2.0

Added 2
  • Add Bedrock Runtime endpoint support
  • Add shell call streaming events and new service/image types

From OpenAI Python SDK

3.2.0 (2026-08-17)
Features
  • add Bedrock Runtime endpoint support (SDK-290) (#3623) (86267d2)
  • api: Add shell call streaming events and new service/image types (#3635) (ff14a33)
View originalPermalink
How v3.2.0 went

v3.1.0

Added 3
  • Add WebSocket stream IDs
  • Add workload identity access token issued event
  • Add Ultrafast tier, structured MCP and websocket errors, and separate websocket events
Removed 1
  • Remove Stainless attribution and infrastructure
Deprecated 1
  • Deprecate Sora video APIs

From OpenAI Python SDK

3.1.0 (2026-08-14)
Features
  • api: add WebSocket stream IDs (#3612) (d9029e3)
  • api: add workload identity access token issued event (#3601) (df274d4)
  • api: deprecate Sora video APIs (#3610) (721cb1c)
  • api: Ultrafast tier, structured MCP and websocket errors, separate websocket events (#3617) (f38355e)
Chores
  • remove Stainless attribution and infrastructure (#3599) (a1eeab5)
View originalPermalink
How v3.1.0 went

v3.0.0

Changed 2
  • HTTPX2 is now the default HTTP client, and httpx is no longer installed automatically
  • Applications using custom HTTPX clients, transports, or configuration objects must migrate to their HTTPX2 equivalents or use the temporary runtime-only legacy HTTPX escape hatch

From OpenAI Python SDK

3.0.0 (2026-08-12)
⚠ BREAKING CHANGES
  • api: HTTPX2 is now the default HTTP client, and httpx is no longer installed automatically. Applications using custom HTTPX clients, transports, or configuration objects must migrate to their HTTPX2 equivalents or use the temporary, runtime-only legacy HTTPX escape hatch. See the HTTPX2 migration guide.
Features
  • api: migrate to HTTPX2 (#3594)
View originalPermalink
How v3.0.0 went

v2.54.0

Added 1
  • Add new Responses model identifiers
Fixed 1
  • Clarify audio upload metadata requirements

From OpenAI Python SDK

2.54.0 (2026-08-11)
Features
  • api: Add new Responses model identifiers (#3595) (0652787)
Bug Fixes
  • api: clarify audio upload metadata requirements (#3596) (28888f9)
Chores
  • api: Update generated-file header attribution to Castiron (#3583) (ea17fda)
View originalPermalink
How v2.54.0 went

v2.53.0

Added 1
  • Add gpt-5.5 and tool name/namespace to Responses types
Fixed 1
  • Avoid NumPy source builds and duplicate HTTPX coverage in CI

From OpenAI Python SDK

2.53.0 (2026-08-03)
Features
  • api: Add gpt-5.5 and tool name/namespace to Responses types (#3569) (dd1202d)
Bug Fixes
  • ci: avoid NumPy source builds and duplicate HTTPX coverage (#3573) (b58332f)
View originalPermalink
How v2.53.0 went

v2.52.0

Added 1
  • Add content provenance checks to the API
Fixed 1
  • Honor Retry-After delays up to two minutes in the client

From OpenAI Python SDK

2.52.0 (2026-07-31)

Full Changelog: v2.51.0...v2.52.0

Features
  • api: content provenance checks (1d6c118)
Bug Fixes
  • client: honor Retry-After delays up to two minutes (#3555) (7fa7946)
Documentation
View originalPermalink
How v2.52.0 went

v2.51.0

Added 1
  • Add support for fast tier
Fixed 1
  • Add fast tier to helper methods

From OpenAI Python SDK

2.51.0 (2026-07-30)

Full Changelog: v2.50.0...v2.51.0

Features
Bug Fixes
  • api: add fast tier to helper methods (6064126)
View originalPermalink
How v2.51.0 went

v2.50.0

Added 1
  • Add support for transcription model updates
Fixed 1
  • Restore transcription keyword overload in audio module

From OpenAI Python SDK

2.50.0 (2026-07-28)

Full Changelog: v2.49.0...v2.50.0

Features
  • api: transcription model updates (fd57393)
Bug Fixes
  • audio: restore transcription keyword overload (713a262)
View originalPermalink
How v2.50.0 went

v2.49.0

Changed 1
  • Require Python 3.10 as minimum version

From OpenAI Python SDK

2.49.0 (2026-07-27)

Full Changelog: v2.48.0...v2.49.0

Features
  • require Python 3.10 and automate version reviews (#3537) (d4c151d)
View originalPermalink
How v2.49.0 went

v2.48.0

Added 1
  • Add support for spend_limit admin APIs
Changed 1
  • Accept None for prompt_cache_key and safety_identifier parameters

From OpenAI Python SDK

2.48.0 (2026-07-23)

Full Changelog: v2.47.0...v2.48.0

Features
  • api: accept None for prompt_cache_key/safety_identifier (36820e6)
  • api: add support for spend_limit admin apis (1ff13af)
View originalPermalink
How v2.48.0 went

v2.47.0

Added 1
  • Add experimental runtime support for HTTPX2 clients
Fixed 1
  • Require patched aiohttp on Python 3.10+

From OpenAI Python SDK

2.47.0 (2026-07-21)

Full Changelog: v2.46.0...v2.47.0

Features
  • client: Add experimental runtime support for HTTPX2 clients (#3524) (317260c)
  • stlc: configurable CI runner and private-production-repo support in workflow templates (4303e97)
Bug Fixes
  • deps: require patched aiohttp on Python 3.10+ (#3515) (d4dceb2)
View originalPermalink
How v2.47.0 went

v2.46.0

Added 2
  • Add /organization/projects/{project_id}/service_accounts/{service_account_id}/api_keys endpoint
  • Add owner_project_access to APIKeyListParams
Changed 1
  • Remove beta annotation compatibility aliases
Fixed 1
  • Preserve generated type compatibility

From OpenAI Python SDK

2.46.0 (2026-07-17)

Full Changelog: v2.45.0...v2.46.0

Features
  • api: /organization/projects/{project_id}/service_accounts/{service_account_id}/api_keys" endpoint (5a00941)
  • api: add owner_project_access to APIKeyListParams (f589d04)
  • api: manual updates (980f176)
  • api: manual updates (2eae984)
Bug Fixes
  • api: preserve generated type compatibility (00bd72a)
  • api: remove beta annotation compatibility aliases (99dbd15)
View originalPermalink
How v2.46.0 went

v2.45.0

Added 1
  • Add gpt-5.6-sol model updates
Fixed 1
  • Restore beta resource accessors

From OpenAI Python SDK

2.45.0 (2026-07-09)

Full Changelog: v2.44.0...v2.45.0

Features
  • api: gpt-5.6-sol updates (039d1fe)
Bug Fixes
  • api: restore beta resource accessors (2dfc130)
Chores
  • retrigger release automation (7b61351)
View originalPermalink
How v2.45.0 went
View all

Discussion

If you publish OpenAI Python SDK, you can claim this product by proving you administer its repository.