GPTMap

Responses API background completion windows: discounted 2h/8h tiers land in SDK 3.52–3.53 and 7.58

The SDK batch adds a completion-window option for Responses background execution: soonest default, discounted 2h/8h tiers, plus pause reasons, a compaction default flip, and Live safety_identifier. Verified file-by-file against the tags.

TL;DR
python v3.53.0 and node v7.58.0 add background_options to Responses: completion_window soonest/2h/8h (2h/8h discounted per the docstrings; requiring background: true, Standard processing, non-streaming) plus continuation_id. v3.52.0 (11-16) already landed pause_reason and errors-as-stream-events. Unlisted: compaction default flips to blocking; Live's session-config trio gains safety_identifier.
A background completion window is a background-execution option the Responses API gained in the 2026-11-17 official SDK batch (v3.53.0 / v7.58.0): the request parameter background_options carries completion_window with values soonest (default) / 2h / 8h, where 2h and 8h select discounted background execution per the official docstring and require background set to true, Standard processing, and stream false or omitted; the same object carries continuation_id for prioritizing related background requests.

The background completion window is the option the Responses API's background execution gained in the official SDK batch of 2026-11-17: a background_options request parameter lets developers pick a completion window for background execution — the default soonest, or the discounted 2h / 8h tiers. This article reflects this site's check on 2026-11-18: a file-by-file diff of openai-python v3.52.0 (11-16) and v3.53.0 (11-17) plus openai-node v7.58.0 (11-17), from the PyPI sdists and the npm tarball. Every parameter name, enum value, and mechanism description below comes from that extraction; the official pricing page and the background guide were 403 on the check date, so everything price- or behavior-semantic is quoted from the type docstrings only.

1. The parameter shape: BackgroundOptions and the three tiers

In v3.53.0, src/openai/types/responses/response_create_params.py adds the request parameter background_options: BackgroundOptions. The class definition, verbatim:

class BackgroundOptions(TypedDict, total=False):
    """Options for background execution on HTTP requests.

    The `2h` and `8h`
    completion windows require `background: true`, Standard processing,
    and `stream: false` or omitted.
    """

    completion_window: Literal["soonest", "2h", "8h"]
    """The completion window for background execution.

    Defaults to `soonest`; `2h` and `8h` select discounted background execution.
    """

    continuation_id: str
    """
    A customer-provided opaque identifier used to prioritize related background
    requests. It does not add prior history to the input.
    """

The official wording for the three tiers:

ValueOfficial docstring wording
soonestThe default — the behavior when completion_window is omitted
2hDiscounted background execution; requires background: true, Standard processing, stream: false or omitted
8hDiscounted background execution; the same prerequisites as 2h

The docstrings give no discount percentage and no precise definition of what completing within 2 or 8 hours means (consequences of a timeout, or whether an early return is possible, are both unstated) — per this site's whitelist discipline, the table above is the full claim, and everything else waits for official documentation. Among the channels loadable in this batch, both the official pricing page and the background guide on developers.openai.com (https://developers.openai.com/api/docs/guides/background, linked from the SDK docstring) returned 403, so the discount magnitude was unverifiable on the check date.

2. Two entry points: the HTTP request parameter and the WebSocket response.create

The same option lands on two entries. On HTTP it is the request parameter above; over WebSocket, the response.create client event in responses_client_event.py accepts the same-shaped object in the same batch — class ResponseCreateBackgroundOptions, with optional completion_window (the same three-value Literal) and continuation_id, and a class docstring identical to the HTTP side (the three prerequisites appear word for word). The node side mirrors this: ResponseCreateParams and the beta variant in src/resources/responses/responses.ts both gain background_options?: ResponseCreateParams.BackgroundOptions, with interface fields completion_window?: 'soonest' | '2h' | '8h' and continuation_id?: string; the objects are optional-field shaped at both entries (from this batch's extraction).

A minimal working example (HTTP side, python):

from openai import OpenAI

client = OpenAI()

resp = client.responses.create(
    model="gpt-5.6-terra",
    input="Classify this batch of tickets offline; output labels and reasons",
    background=True,  # one of the prerequisites for 2h/8h
    background_options={"completion_window": "8h"},
)
print(resp.status)  # status / background are fields verified on the Response type in v3.53.0

Note the division of labor: background turns background execution on, background_options picks the window. All three prerequisites for 2h/8h (background: true, Standard processing, non-streaming) come from the type docstring, and all three are required there — the docstring does not describe what happens when a prerequisite is missing, and this article does not fill that in.

3. continuation_id: prioritization without history

The docstring for continuation_id is three sentences: a customer-provided opaque identifier used to prioritize related background requests; it does not add prior history to the input. It is a string with no format constraints or uniqueness rules from the official source — whether the same value routes to the same queue is not answered by the docstring, and this article does not infer it.

4. Version and publishing timeline: python twice, node once for both batches

VersionGitHub releaseRegistry (latest)Contents
openai-python v3.52.02026-11-16T22:34:48ZPyPI 2026-11-16T22:41:05Schedule pause_reason (#4278), beta Agents session errors as stream events (#4281); the type layer also carries the compaction default flip and the Live safety_identifier trio addition
openai-python v3.53.02026-11-17T18:34:32ZPyPI 2026-11-17T18:41:11Background completion windows and the three GPT-6.2 identifiers (squash commit 720bcb5)
openai-node v7.58.02026-11-17T18:13:41Znpm 2026-11-17T18:31:10The union of both python batches (#3158 schedule pause reasons; the remaining items are the same squash commit 77e77ad)

Timestamp provenance: GitHub release objects read via api.github.com on 2026-11-18; PyPI times are the wheel file's upload_time (the sdist lands seconds later), npm times come from the packument's time field — all read the same day. Node v7.58.0's five release-note features are exactly the union of the two python release notes (the 2h/8h windows, the GPT-6.2 Astra Law / Astra / Sol identifiers, and the schedule pause reasons) — python's 11-16 batch had no same-day node release, and node caught up in one go.

5. The v3.52.0 batch: schedule pause_reason and errors as stream events

pause_reason (#4278). Each of the two beta Agents schedule objects gains a field: OneTimeAutomation and PeriodicAutomation add pause_reason: Optional[Literal["target_session_failed"]], docstring: Why the service paused this schedule, or null for other schedules — the reason the service paused this schedule; the only value at present is target_session_failed, and schedules not in the paused state carry null. The node side lands the same-named field in automations.ts in the same batch (pause_reason?: 'target_session_failed' | null).

Errors as stream events (#4281). The release-note title is deliver beta Agents session errors as stream events. The Python landing point is pointable in this batch's extraction: four streaming call sites in src/openai/resources/beta/agents/sessions/events.py and sessions.py gained stream_mode="events"; in the accompanying _streaming.py, when the mode is legacy an in-band error payload is raised as APIError, while in non-legacy mode the payload is parsed as ordinary data and yielded into the iteration loop — errors arrive as stream events rather than aborting with an exception (this is this site's mechanism reading of the tag source; the official text is only the release-note title). The node side shipped the same-titled change in v7.53.0 (2026-11-06, checked by this site in its 2026-11-08 batch), and python catches up here; the two packages' official statements are independent, and this article does not merge them into a single official narrative.

6. Type-layer changes missing from the release notes: the compaction default flip and Live safety_identifier

The type diff for this batch contains two changes neither package's release notes list, present in both packages:

The Agents compaction default flip. It spans six python type files (agent.py, agent_session.py, agent_update_params.py, agents/session_create_params.py, agents/automation_agent_config.py, agents/automation_target_param.py) and the corresponding node files. The docstrings before and after (verbatim):

Locationv3.51.0 / v7.57.0 (old)v3.52.0+ / v7.58.0 (new)
compaction field summaryWhether context is compacted in the background. Defaults to true.Whether context is compacted in the background. Defaults to false.
session create compaction noteOmission or null defaults to true. Set to false to use blocking compaction.Omission or null defaults to false. Set to true to enable background compaction.
null / empty-object semanticsnull or an empty object enables background compactionnull or an empty object uses blocking compaction

In other words: omitting the parameter or passing null/an empty object flips from background compaction to blocking compaction; background compaction now requires setting it explicitly (async: true or the equivalent). The docstrings keep the existing caveat that background compaction may increase token usage. These strings are generated from the OpenAPI spec — what they prove is that the official spec changed its default-value wording; whether server behavior flipped in step could not be independently verified in this batch, so defer to official documentation and direct testing.

Live session safety_identifier (the session-config trio). The Live session config gains safety_identifier: Optional[str] in three places from 3.52.0 (the create params, the config object, and the session resource; node: safety_identifier?: string | null, extended to SessionConfig and SessionResource in 7.58.0), docstring: A stable identifier for your end user, used for safety monitoring and abuse detection. This is not a brand-new field: python 3.51.0's media_session_config_param and session_accept_params and node 7.57.0's Session and MediaSessionConfig already carried it — what this batch adds is the python session-config trio plus node's SessionConfig and SessionResource. The official source gives no format constraints or privacy-handling statements, and this article does not fill those in.

7. The GPT-6.2 identifiers in the same batch

The same squash commits in v3.53.0 and v7.58.0 also wrote gpt-6.2-astra and gpt-6.2-sol into the ChatModel enum of both packages and gpt-6.2-astra-law into the Responses model union; the v3.52.0 / v7.57.0 baselines contain none of the three. For the models' positioning, official pricing ($8/$0.40/$40 and $2/$0.10/$10), and availability, see the companion article: GPT-6.2 Astra and Sol announced: $8/$40 per MTok, Ultrafast for Pro 200, same-day SDK type-layer landing.

8. Common mistakes and troubleshooting

  • Passing background_options without background: the prerequisites for 2h/8h are background: true plus Standard processing plus non-streaming; BackgroundOptions does not itself turn background execution on — missing either half means the request is not the documented discounted-background shape (docstring wording).
  • Relying on omit-means-background-compaction: the compaction default flipped (omission now means blocking); code depending on the old default changes behavior after the SDK upgrade — set it explicitly to keep background compaction.
  • Requesting 2h/8h on a streaming call: the docstring states stream must be false or omitted; streaming and the discounted background tiers are incompatible by the official wording.
  • Treating pause_reason as a failure flag: it is an Optional field with a single value (target_session_failed) and is null for schedules that are not paused; using it as a boolean will read None on healthy schedules.
  • Looking for background_options in older SDKs: the parameter exists from v3.53.0 / v7.58.0; the v3.52.0 / v7.57.0 request params do not have it (zero grep hits in this site's baseline check).

9. Next steps

Key points

  • Parameter shape (verified against the v3.53.0 tag source): responses.create gains background_options: BackgroundOptions with completion_window: Literal["soonest", "2h", "8h"] and continuation_id: str; the WebSocket response.create client event accepts the same-shaped optional object in the same batch
  • Official docstring wording: The 2h and 8h completion windows require background: true, Standard processing, and stream: false or omitted; completion_window defaults to soonest, and 2h and 8h select discounted background execution
  • Versions and publishing (checked 2026-11-18 via the GitHub API and registry JSON): python v3.52.0 GitHub 2026-11-16T22:34:48Z / PyPI 22:41:05 as latest; v3.53.0 GitHub 2026-11-17T18:34:32Z / PyPI 18:41:11 as latest; node v7.58.0 GitHub 2026-11-17T18:13:41Z / npm 18:31:10 as latest — node received both batches in one release
  • Python v3.52.0 (11-16) batch: #4278 adds pause_reason: Literal["target_session_failed"] to the schedule objects (why the service paused this schedule, or null for other schedules); #4281 delivers beta Agents session errors as stream events — stream_mode="events" added at four call sites, and this site's reading of _streaming.py is that non-legacy stream mode no longer raises in-band error payloads as APIError
  • Type-layer changes missing from the release notes (both packages): the Agents compaction default flips — docstrings change from Defaults to true (background) to Defaults to false, and null/empty object flips from enabling background compaction to blocking compaction; Live's session-config trio gains safety_identifier (string | null, for safety monitoring and abuse detection; the field already existed in a few earlier Live types in both packages)
  • The same batch wrote the three GPT-6.2 model identifiers into the type layer (ChatModel and the Responses union); baselines v3.52.0 / v7.57.0 contain none of them — for model positioning and pricing see the GPT-6.2 announcement article

Frequently asked questions

The official SDK docstrings only say that 2h and 8h select discounted background execution; no percentage appears in any official channel loadable for this batch — the official pricing page returned 403 for this site, and the background guide on developers.openai.com (linked from the SDK docstring at https://developers.openai.com/api/docs/guides/background) was likewise 403 and could not be captured. This article publishes no number; the discount magnitude belongs to the official pricing page.

Official references

Related articles

Subscribe to GPTMap Weekly

One email every Monday: curated OpenAI updates, deep dives, and best practices. No ads, unsubscribe anytime.

Submitting opens Buttondown in a new tab to confirm your subscription.

GPTMap EditorialPublished 2026-11-18 10 min read
Test environment (EEAT)
Last tested: 2026-11-18
Model used: Responses API (type layer verified in SDK v3.52.0 / v3.53.0 / v7.58.0)