Official OpenAI TypeScript and JavaScript client library that lets you call the OpenAI REST API from Node.js or other JS/TS environments. It provides convenient methods for common APIs such as the Responses API, supports streaming via SSE, and includes helpers for features like file uploads and workload identity authentication.
Project status
- The
openai/openai-noderepo appears actively maintained, with an upstream push as recent as 2026-09-09 and multipleupdatespublished within days leading up to today (2026-09-10). - Apparent cadence: fast, near-weekly to near-daily
updatesin early September 2026 (for example, v7.9.0 on 2026-09-02, v7.10.0 on 2026-09-03, and multiple v7.12.x to v7.13.0 on 2026-09-08 to 2026-09-09).
AI summary generated
Recent updates
v7.13.0
v7.13.0 adds API key expiration controls. The code changes introduce new optional expiration fields for project API keys and service account API keys, and allows specifying an initial expiration window when creating service accounts.
Featuresv7.12.1
Release v7.12.1 primarily updates the package version and release metadata, with CI-related changes to the Cloudflare worker ecosystem tests. The release notes claim GPT Image 2.5 support is included, but the provided code diff does not show any API source changes for that functionality.
Featuresv7.12.0
v7.12.0 adds support for GPT Image 2.5 models and related image options, plus fixes around assistant run-step delta identity validation and file-processing timeout handling. It also adjusts workload identity authorization header handling to preserve intentionally suppressed Authorization values. Most runtime changes are limited to stream validation, timeout measurement, and auth header injection logic.
Featuresv7.11.0
v7.11.0 adds several API-level enhancements, including prompt cache diagnostics and additional service-account API key expiration fields. The release also includes many bug fixes across audio, auth, embeddings, polling, responses, and realtime behaviors, along with documentation and test/CI infrastructure updates.
SecurityFeaturesv7.10.0
v7.10.0 adds support for the new model id gpt-6-astra, along with additional response-related types and behaviors. The release notes also mention adding the repository's canonical SDK security model documentation, but the code diff includes several other API surface additions (notably Safety endpoints/webhooks and new Responses item/event types).
Featuresv7.9.0
v7.9.0 updates several API surface areas and documentation, including usage-related API types. It also fixes Responses WebSocket redirect behavior and improves compatibility for CommonJS loading under browser export conditions and Jest 28.
BreakingFeaturesv7.8.0
v7.8.0 adds `compute_units` to usage objects for Responses and Chat Completions, and adjusts browser and WebSocket behavior (including default WebSocket User-Agent). It also includes authentication and event-handling bug fixes, plus several SDK reliability tweaks.
Featuresv7.7.0
v7.7.0 introduces an API change that makes function tool call output call IDs optional, and it fixes SSE streaming so cancellation is properly honored while decoding events. It also includes a significant internal rewrite of the SSE iterator to ensure aborts stop decoding and cleanup happens deterministically.
BreakingFeaturesv7.6.0
v7.6.0 adds new API surface fields (ChatCompletionChunk obfuscation, project residency/usage quantity fields) and new capabilities for Realtime WebRTC and named data residency. The release notes also describe a large set of security hardening and stream-parsing bounds, plus multiple bug fixes across streaming, auth, assistants, audio, and uploads.
SecurityFeaturesv7.5.0
v7.5.0 adds Bedrock Runtime endpoint support, new model identifiers, and additional API types and realtime/websocket stream metadata. It also includes many robustness and security fixes around streaming, event parsing, credential handling, and SSE/WebSocket behavior. The diff indicates broad generated SDK updates plus substantial CI and ecosystem test harness adjustments.
BreakingSecurityFeaturesv7.4.0
v7.4.0 adds the gpt-5.5 model to the SDK and extends response and beta response tool metadata types with optional tool name and namespace fields. It also includes an internal test/CI workflow reshuffle (including a shift of unit tests toward Vitest) plus several dependency bumps and an mTLS documentation update.
Featuresv7.3.0
v7.3.0 adds an API surface for content provenance checks and updates a large portion of repository documentation and tooling. The release notes only mention the new content provenance checks feature, but the diff also shows packaging/publishing changes and several developer-facing API naming updates in examples and streaming/realtime documentation.
Featuresv7.2.0
Release v7.2.0 introduces support for a new API service tier mode, Fast. The main code impact is updates to the TypeScript types and inline documentation for `service_tier` across Responses and Chat Completions related interfaces.
Featuresv7.1.0
v7.1.0 adds updates related to transcription models, including new model options and additional transcription metadata. It also expands webhook types to cover a new Live incoming call event surface and bumps the package version.
Featuresv7.0.0
Release v7.0.0 primarily introduces a new Node.js support floor, requiring Node.js 22 and formalizing version-support policy. The code diff also shows substantial CI and developer-tooling automation changes to keep Node support metadata, docs, and test matrices aligned.
BreakingFeaturesv6.49.0
v6.49.0 adds support for passing null (None) for `prompt_cache_key` and `safety_identifier`, and introduces new `spend_limit` admin APIs for organization and project scopes. It also expands schema capabilities with “standard schema” support and enhanced Zod schema handling (including schema definitions), alongside a set of streaming/tooling and JSON schema strictification fixes.
Featuresv6.48.0
v6.48.0 adds a new admin endpoint to create API keys for organization project service accounts, and includes a client-side fix to normalize header names. It also performs generated API client updates and refreshes ecosystem test dependencies.
Featuresv6.47.0
v6.47.0 adds support for passing a typed tool context into tool callbacks during chat completion tool execution, and introduces async iteration over streamed event emissions via new EventStream iterator utilities. It also extends streaming capabilities (including streaming file uploads and readable stream interop for ResponseStream and chat completion streams) and includes multiple stream finalization and Azure/Zod related fixes.
Featuresv6.46.0
v6.46.0 includes an API update for gpt-5.6-sol along with several bug fixes in streaming behavior. The release notes document fixes for assistant delta ordering and normalization of missing tool call IDs.
Featuresv6.45.0
v6.45.0 adds new hooks and helpers (notably afterCompletion for tool runs, plus new Responses and Realtime capabilities) and includes a set of bug fixes across streaming behavior, Zod schema extraction, and workload identity auth. The release notes emphasize correctness fixes rather than broad API contract changes.
Features