Skip to content

feat(api): add GPT Image 2.5 models and image options - #2705

Merged
marcuswood-oai merged 1 commit into
mainfrom
castiron/promotions/pr-106
Sep 8, 2026
Merged

marcuswood-oai merged 1 commit into
mainfrom
castiron/promotions/pr-106

Conversation

@marcuswood-oai

Copy link
Copy Markdown
Contributor

Adds GPT Image 2.5 Sunburst/Flare aliases and September 8 snapshots, xhigh/max quality, and custom image dimensions.

  • Exposes optional, nullable quality and size on Responses image calls, including quality: "auto".
  • Clarifies Live and Realtime webhook call IDs.

Castiron-Internal-PR: openai/openai-node-internal#106
Castiron-Source-SHA: 74e9659cc099f4e2f5660d7fa4a82017a9ab2f6c
Castiron-Public-Base-SHA: 75d14da
@github-actions

github-actions Bot commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

Castiron custom code

✅ No new custom-code files detected.

32 mixed files remain; 0 existing customizations changed; 4 generated baselines changed.

Compared 75d14da32a66 → 47b13c520756. Generated baselines verified.

File Result Current custom patch
src/resources/beta/responses/responses.ts Generated baseline changed +12 / −0
src/resources/images.ts Generated baseline changed +7 / −1
src/resources/responses/responses.ts Generated baseline changed +158 / −41
src/resources/webhooks/webhooks.ts Generated baseline changed +74 / −2
28 existing customizations unchanged
  • api.md
  • scripts/castiron/README.md
  • scripts/castiron/custom_code_report.py
  • scripts/castiron/test_custom_code_report.py
  • src/client.ts
  • src/resources/audio/transcriptions.ts
  • src/resources/audio/translations.ts
  • src/resources/beta/assistants.ts
  • src/resources/beta/beta.ts
  • src/resources/beta/index.ts
  • src/resources/beta/responses/internal-base.ts
  • src/resources/beta/threads/index.ts
  • src/resources/beta/threads/runs/index.ts
  • src/resources/beta/threads/runs/runs.ts
  • src/resources/beta/threads/threads.ts
  • src/resources/chat/completions/completions.ts
  • src/resources/chat/completions/index.ts
  • src/resources/conversations/index.ts
  • src/resources/embeddings.ts
  • src/resources/files.ts
  • src/resources/fine-tuning/checkpoints/permissions.ts
  • src/resources/responses/internal-base.ts
  • src/resources/skills/skills.ts
  • src/resources/skills/versions/versions.ts
  • src/resources/vector-stores/file-batches.ts
  • src/resources/vector-stores/files.ts
  • src/resources/webhooks/index.ts
  • tests/lib/data-residency.test.ts

A changed generated baseline means this report cannot reliably identify which handwritten lines changed.

Inspect the custom-code diff

Download the exact patch produced by this run (requires repository access):

gh run download 34287763045 --repo openai/openai-node \
  --name castiron-custom-code-34287763045-1 --dir /tmp/castiron-custom-code-34287763045-1
git apply --stat /tmp/castiron-custom-code-34287763045-1/custom-code.patch
cat /tmp/castiron-custom-code-34287763045-1/custom-code.patch

Or reproduce it from an SDK checkout containing the vendored reporter:

git fetch --no-tags origin 75d14da32a6640dacad8d9714f763ffbb9f99dc8 47b13c5207566287318db4d50e0cd766d15f6bbe
python3 scripts/castiron/custom_code_report.py report \
  --base 75d14da32a6640dacad8d9714f763ffbb9f99dc8 \
  --head 47b13c5207566287318db4d50e0cd766d15f6bbe --fetch --require-head-hash --public \
  --out /tmp/castiron-custom-code-47b13c520756
cat /tmp/castiron-custom-code-47b13c520756/custom-code.patch

This is the current full custom patch for mixed files, not an attribution of only the handwritten lines changed by this PR.

Full report and patch

@marcuswood-oai
marcuswood-oai marked this pull request as ready for review September 8, 2026 22:48
@marcuswood-oai
marcuswood-oai requested a review from a team as a code owner September 8, 2026 22:48
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 8, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-08T22:51:52.651242Z 47b13c5 Draft marked ready
🔒 Security Review ✅ Completed 2026-09-08T22:51:19.299480Z 47b13c5 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@openai-sdks

openai-sdks Bot commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

OkTest Summary

✅ 236/236 SDK tests passed in 10.554s for Node SDK PR #2705.

Test results — 42 files
Test Result Time
tests/chat-completions-complex-body.test.ts ✅ Passed 142ms
tests/chat-completions-create.test.ts ✅ Passed 211ms
tests/chat-completions-stream.test.ts ✅ Passed 172ms
tests/files-content-binary.test.ts ✅ Passed 200ms
tests/files-create-multipart.test.ts ✅ Passed 265ms
tests/files-list-pagination.test.ts ✅ Passed 156ms
tests/initialize-config.test.ts ✅ Passed 206ms
tests/instance-isolation.test.ts ✅ Passed 260ms
tests/models-list.test.ts ✅ Passed 143ms
tests/responses-background-lifecycle.test.ts ✅ Passed 272ms
tests/responses-body-method-errors.test.ts ✅ Passed 313ms
tests/responses-cancel-timeout.test.ts ✅ Passed 232ms
tests/responses-cancel.test.ts ✅ Passed 170ms
tests/responses-compact-retries.test.ts ✅ Passed 245ms
tests/responses-compact.test.ts ✅ Passed 250ms
tests/responses-create-advanced-stream.test.ts ✅ Passed 133ms
tests/responses-create-advanced.test.ts ✅ Passed 194ms
tests/responses-create-disconnect.test.ts ✅ Passed 1.15s
tests/responses-create-errors.test.ts ✅ Passed 215ms
tests/responses-create-malformed-api-responses.test.ts ✅ Passed 148ms
tests/responses-create-retries.test.ts ✅ Passed 275ms
tests/responses-create-stream-failures.test.ts ✅ Passed 130ms
tests/responses-create-stream-timeout.test.ts ✅ Passed 2.164s
tests/responses-create-stream-wire.test.ts ✅ Passed 2.48s
tests/responses-create-stream.test.ts ✅ Passed 104ms
tests/responses-create-terminal-states.test.ts ✅ Passed 329ms
tests/responses-create-timeout.test.ts ✅ Passed 234ms
tests/responses-create.test.ts ✅ Passed 219ms
tests/responses-delete.test.ts ✅ Passed 197ms
tests/responses-input-items-errors.test.ts ✅ Passed 159ms
tests/responses-input-items-list.test.ts ✅ Passed 177ms
tests/responses-input-items-options.test.ts ✅ Passed 189ms
tests/responses-input-tokens-count-timeout.test.ts ✅ Passed 237ms
tests/responses-input-tokens-count.test.ts ✅ Passed 256ms
tests/responses-malformed-inputs.test.ts ✅ Passed 2.089s
tests/responses-not-found-errors.test.ts ✅ Passed 259ms
tests/responses-parse.test.ts ✅ Passed 216ms
tests/responses-retrieve-retries.test.ts ✅ Passed 351ms
tests/responses-retrieve.test.ts ✅ Passed 237ms
tests/responses-stored-method-errors.test.ts ✅ Passed 539ms
tests/retry-behavior.test.ts ✅ Passed 2.942s
tests/sdk-error-shape.test.ts ✅ Passed 283ms

View OkTest run #34287737031

SDK merge (8f793189c1c4) · head (47b13c520756) · base (75d14da32a66) · OkTest (08ec4299e769)

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 47b13c5207

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +608 to +611
* The Transceiver `rtc_...` ID of the pending SIP session. The paired
* `live.call.incoming` event derives its `session_id` by replacing the `rtc_`
* prefix with `live_`. Use the ID returned by the event with the corresponding
* Realtime or Live API.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Describe the actual rtc_ to live_ conversion

When a consumer relates a realtime.call.incoming event to its Live session, this JSDoc says an ID such as rtc_479... becomes live_479..., but the newly updated paired example in api_reference/openapi.transformed.yml uses live_u0_479.... Following the documented replacement therefore produces a different session ID; document the actual mapping or avoid claiming that callers can derive it and require the event-provided ID instead.

AGENTS.md reference: AGENTS.md:L72-L74

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed that the prefix-conversion guidance is inconsistent. Callers should use the ID supplied by the corresponding webhook unchanged. This is tracked for a documentation correction; I'd like to address the wording in a follow-up. It is not fixed in this head.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jbeckwith-oai could you take another look at the response above? Are you comfortable with taking the documented wording correction as a follow-up, or is there something else you need before re-reviewing?

- items:
$ref: '#/components/schemas/InputItem'
type: array
maxItems: 131072

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Remove the unrelated Responses input cap

For callers constructing a Responses request with more than 131,072 input items, this newly added maxItems changes the canonical contract and causes the repository's schema-validating mock server to reject the request before dispatch. The same undocumented cap was added to stable create/compact and beta create/compact even though this change concerns image models; remove it unless it is an explicitly approved API limit and add the required large-payload boundary coverage if it is intentional.

AGENTS.md reference: AGENTS.md:L124-L133

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maxItems: 131072 is expected and should remain aligned with the intended Responses API contract. This PR exposes it in the bundled specification; it does not add SDK-side runtime validation. I acknowledge that schema validators now see a constraint the previous bundle omitted. I'd retain it here rather than remove the contract's limit. I am not claiming new boundary-test coverage.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jbeckwith-oai could you take another look at the response above? Are you comfortable with retaining the expected 131,072-item API constraint, or is there something else you need before re-reviewing?

@jbeckwith-oai jbeckwith-oai left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks — the GPT Image 2.5 model aliases, quality values, custom dimensions, and nullable image-call metadata are largely generated as expected, and the current CI is green. I found two blocking regressions on this exact head:

  1. The new Live/Realtime webhook guidance gives an invalid deterministic mapping. The example pairs rtc_479a… with live_u0_479a…, but the prose says to replace only rtc_ with live_, which produces live_479a…. Please correct the authoritative spec and regenerate, or avoid telling callers to derive this ID and direct them to the event-provided session ID.

  2. The bundled transformed spec adds maxItems: 131072 to four existing Responses input arrays (stable/beta create, compact, and token-count paths). That is unrelated to this image update and newly makes schema-validating consumers reject shapes that were previously accepted. Please remove this unrelated constraint from this PR unless it is an approved API contract change with the appropriate boundary coverage.

Once these are addressed and regenerated, I am happy to re-review.

Copy link
Copy Markdown
Contributor Author

Thanks Justin — I'd like to propose the following disposition:

  • Webhook docs: agreed the ID-conversion wording is wrong. The correction is tracked separately. Callers should use the event-provided ID unchanged; I'd like to handle the wording in a follow-up.
  • maxItems: 131,072 is expected and should stay aligned with the Responses API contract. It is newly visible in this bundle, so schema validators will see the constraint; this adds no SDK-side runtime validation. I'd retain it here.

CI is complete and green on the unchanged head. @jbeckwith-oai, could you re-review and confirm whether you're comfortable with these follow-ups? The deferred issues are acknowledged, not fixed by this PR.

@marcuswood-oai
marcuswood-oai merged commit 6500a16 into main Sep 8, 2026
60 checks passed
@marcuswood-oai
marcuswood-oai deleted the castiron/promotions/pr-106 branch September 8, 2026 23:47
@openai-sdks openai-sdks Bot mentioned this pull request Sep 8, 2026
gh-actions-shared Bot pushed a commit to xf-qubit/openai-node that referenced this pull request Sep 9, 2026
Automated Release PR
---


##
[7.12.0](openai/openai-node@v7.11.0...v7.12.0)
(2026-09-08)


### Features

* **api:** add GPT Image 2.5 models and image options
([openai#2705](openai#2705))
([6500a16](openai@6500a16))


### Bug Fixes

* **assistants:** reject root IDs in run-step deltas
([openai#2698](openai#2698))
([63dfa4c](openai@63dfa4c))
* **files:** use a monotonic clock for processing timeout
([openai#2657](openai#2657))
([bb0f51b](openai@bb0f51b))
* preserve suppressed workload authorization
([openai#2699](openai#2699))
([57bbfd3](openai@57bbfd3))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: openai-sdks[bot] <284451331+openai-sdks[bot]@users.noreply.github.com>
@marcuswood-oai marcuswood-oai mentioned this pull request Sep 9, 2026
winnyschuster pushed a commit to winnyschuster/openai-node that referenced this pull request Sep 11, 2026
Automated Release PR
---

##
[7.12.1](openai/openai-node@v7.12.0...v7.12.1)
(2026-09-09)

Includes the GPT Image 2.5 support from 7.12.0, which was not published
to npm.

### Features

* **api:** add GPT Image 2.5 models and image options
([openai#2705](openai#2705))
([6500a16](openai@6500a16))


### Bug Fixes

* **ci:** run Cloudflare example regressions before release
([openai#2706](openai#2706))
([c5cc31c](openai@c5cc31c))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: openai-sdks[bot] <284451331+openai-sdks[bot]@users.noreply.github.com>
Co-authored-by: Marcus Wood <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants