Background Mode Available for the OCI Responses API
- Services: Generative AI
- Release Date: July 29, 2026
The OCI Responses API now supports background mode for requests that might take longer than an application wants to keep the original connection open. Background mode continues processing the response asynchronously and lets the application retrieve its status and result by using the response ID.
- Asynchronous execution
-
Set
backgroundtotruewhen creating a response. The request can continue running after the initial API call returns. - Status and lifecycle management
-
Retrieve the response by its ID while its status is
queuedorin_progress. After processing ends, retrieve the output or inspect the final status. You can also cancel a background response that hasn't finished. - Resumable streaming
-
Create a response with both
background=trueandstream=trueto stream events while retaining the ability to reconnect. If the stream is interrupted, resume after the last received event by using itssequence_number.
Background execution requires temporary response storage to support asynchronous
processing and retrieval, including when store=false. Response
data remains within OCI.
For endpoint paths, examples, and usage considerations, see Run a Response in the Background.