model: Union[str, Literal["gpt-live-1"]]

The Live model to use for the accepted call.

minLength1
One of the following:
str
Literal["gpt-live-1"]

The Live model. Required in the session configuration for every transport; do not pass it as a URL query parameter.

type: Literal["live"]

The session type. Always live.

audio: Optional[SessionAudio]

Startup audio output configuration. SIP negotiates the media format; audio.format is only accepted for primary WebSockets. Voice cannot change after startup.

output: Optional[SessionAudioOutput]

Settings for speech generated by the Live model. Choose the voice before starting the session.

voice: Optional[SessionAudioOutputVoice]

The voice used for Live speech, as a built-in voice name or a custom voice object containing its ID. Defaults to marin and cannot change after startup.

One of the following:
str
Literal["alloy", "ash", "ballad", 20 more]
One of the following:
"alloy"
"ash"
"ballad"
"beacon"
"bossa"
"cedar"
"cinder"
"coral"
"delta"
"echo"
"gleam"
"marin"
"meridian"
"quartz"
"ripple"
"sage"
"shida"
"shimmer"
"stone"
"tempo"
"verse"
"vesper"
"willow"
class CustomVoice: …
id: str
minLength1
maxLength128
delegation: Optional[SessionDelegation]

Who handles tasks delegated by the Live model. Omitted or null selects your application; use responses or decisions to delegate to the corresponding API.

One of the following:
class ClientDelegation: …

Delegate tasks to your application. The Live session emits delegation events that your backend handles.

type: Literal["client"]

The delegation owner. Always client for tasks handled by your application.

acknowledgement_delay_ms: Optional[int]

Milliseconds to wait before requesting an automatic spoken acknowledgement for a delegation. The model may still speak before this delay. Any commentary or thinking appended to the session cancels all pending acknowledgements, including those for other delegations. Defaults to 400 for Decisions sessions and 0 (request immediately) for other sessions. Omission in a session update preserves the current value. Updates apply to subsequent delegations.

minimum0
maximum800
class SessionDelegationResponses: …

Delegate tasks to a Responses model managed by the Live session.

Backend model, prompt, and tools used when the Live session delegates a task to Responses.

model: str

The model used for server-owned Responses delegations.

instructions: Optional[str]

Instructions for the delegated Responses model, separate from Live instructions. See backend prompting.

max_output_tokens: Optional[int]

Maximum number of output tokens for each delegated response.

minimum16
parallel_tool_calls: Optional[bool]

Whether the delegated Responses model may request multiple tool calls in a single response.

reasoning: Optional[Reasoning]

Reasoning settings passed to each delegated Responses request.

effort: Optional[Literal["none", "minimal", "low", 3 more]]

How much reasoning effort the delegated Responses model should use. Supported values depend on the backend model.

One of the following:
"none"
"minimal"
"low"
"medium"
"high"
"xhigh"
summary: Optional[Literal["concise", "detailed", "auto"]]

The reasoning summary to request from the delegated Responses model, when supported.

One of the following:
"concise"
"detailed"
"auto"
service_tier: Optional[Literal["auto", "default", "fast_tier_temp_pilot", 3 more]]

Service tier for delegated Responses requests.

One of the following:
"auto"
"default"
"fast_tier_temp_pilot"
"flex"
"priority"
"ultrafast"
text: Optional[Text]

Text generation settings passed to each delegated Responses request.

verbosity: Optional[Literal["low", "medium", "high"]]

The amount of detail in text generated by the Responses backend. This does not configure the Live model’s spoken delivery.

One of the following:
"low"
"medium"
"high"
tool_choice: Optional[ToolChoice]

Controls which tool the Responses backend uses when handling a task delegated by the Live model.

One of the following:
Literal["auto", "none", "required"]
One of the following:
"auto"
"none"
"required"
class ToolChoiceLiveFunctionToolChoiceParam: …
name: str
minLength1
maxLength64
type: Literal["function"]
class ToolChoiceLiveMCPToolChoiceParam: …
name: str
minLength1
maxLength64
server_label: str
minLength1
maxLength64
type: Literal["mcp"]
class ToolChoiceFileSearch: …
type: Literal["file_search"]

The tool to call. Always file_search.

class ToolChoiceWebSearch: …
type: Literal["web_search"]

The tool to call. Always web_search.

class ToolChoiceWebSearchPreview: …
type: Literal["web_search_preview"]

The tool to call. Always web_search_preview.

class ToolChoiceImageGeneration: …
type: Literal["image_generation"]

The tool to call. Always image_generation.

class ToolChoiceComputer: …
type: Literal["computer"]

The tool to call. Always computer.

class ToolChoiceCodeInterpreter: …
type: Literal["code_interpreter"]

The tool to call. Always code_interpreter.

class ToolChoiceProgrammaticToolCalling: …
type: Literal["programmatic_tool_calling"]

The tool to call. Always programmatic_tool_calling.

class ToolChoiceShell: …

Forces the model to call the shell tool when a tool call is required.

type: Literal["shell"]

The tool to call. Always shell.

class ToolChoiceCustom: …
name: str

The name of the custom tool to call.

type: Literal["custom"]

The tool to call. Always custom.

class ToolChoiceApplyPatch: …

Forces the model to call the apply_patch tool when executing a tool call.

type: Literal["apply_patch"]

The tool to call. Always apply_patch.

class ToolChoiceLiveAllowedToolsChoiceParam: …
tools: List[ToolChoiceLiveAllowedToolsChoiceParamTool]

The tools that the delegated Responses model may call.

minItems1
maxItems128
One of the following:
class ToolChoiceLiveAllowedToolsChoiceParamToolLiveFunctionToolChoiceParam: …
name: str
minLength1
maxLength64
type: Literal["function"]
class ToolChoiceLiveAllowedToolsChoiceParamToolLiveMCPToolChoiceParam: …
name: str
minLength1
maxLength64
server_label: str
minLength1
maxLength64
type: Literal["mcp"]
class ToolChoiceLiveAllowedToolsChoiceParamToolFileSearch: …
type: Literal["file_search"]

The tool to call. Always file_search.

class ToolChoiceLiveAllowedToolsChoiceParamToolWebSearch: …
type: Literal["web_search"]

The tool to call. Always web_search.

class ToolChoiceLiveAllowedToolsChoiceParamToolWebSearchPreview: …
type: Literal["web_search_preview"]

The tool to call. Always web_search_preview.

class ToolChoiceLiveAllowedToolsChoiceParamToolImageGeneration: …
type: Literal["image_generation"]

The tool to call. Always image_generation.

class ToolChoiceLiveAllowedToolsChoiceParamToolComputer: …
type: Literal["computer"]

The tool to call. Always computer.

class ToolChoiceLiveAllowedToolsChoiceParamToolCodeInterpreter: …
type: Literal["code_interpreter"]

The tool to call. Always code_interpreter.

class ToolChoiceLiveAllowedToolsChoiceParamToolProgrammaticToolCalling: …
type: Literal["programmatic_tool_calling"]

The tool to call. Always programmatic_tool_calling.

class ToolChoiceLiveAllowedToolsChoiceParamToolShell: …

Forces the model to call the shell tool when a tool call is required.

type: Literal["shell"]

The tool to call. Always shell.

class ToolChoiceLiveAllowedToolsChoiceParamToolCustom: …
name: str

The name of the custom tool to call.

type: Literal["custom"]

The tool to call. Always custom.

class ToolChoiceLiveAllowedToolsChoiceParamToolApplyPatch: …

Forces the model to call the apply_patch tool when executing a tool call.

type: Literal["apply_patch"]

The tool to call. Always apply_patch.

type: Literal["allowed_tools"]

The tool choice type. Always allowed_tools.

mode: Optional[Literal["none", "auto", "required"]]

How to select a tool from the allowed set.

One of the following:
"none"
"auto"
"required"
tools: Optional[List[Tool]]

Tools available to the Responses backend while it handles tasks delegated by the Live model.

One of the following:
class FunctionTool: …

A function tool available to the Responses backend when the Live model delegates a task.

name: str

The name the delegated Responses model uses when calling this function.

type: Literal["function"]

The tool type. Always function.

description: Optional[str]

What the function does and when the delegated Responses model should call it.

parameters: Optional[Dict[str, object]]

A JSON Schema object describing the arguments accepted by the function.

strict: Optional[bool]

Whether the delegated Responses model must follow the function’s parameter schema exactly.

class ToolWebSearch: …

A web search tool available to the Live session’s Responses backend.

type: Literal["web_search"]

The tool type. Always web_search.

class ToolFileSearch: …
type: Literal["file_search"]
class ToolCodeInterpreter: …
type: Literal["code_interpreter"]
class ToolShell: …

A Responses shell tool. Use a hosted container or return local shell results with response.item.create. Domain secrets are not supported.

type: Literal["shell"]
environment: Optional[ToolShellEnvironment]
One of the following:
class ToolShellEnvironmentContainerAuto: …
type: Literal["container_auto"]

Automatically creates a container for this request

file_ids: Optional[List[str]]

An optional list of uploaded files to make available to your code.

maxItems50
memory_limit: Optional[Literal["1g", "4g", "16g", "64g"]]

The memory limit for the container.

One of the following:
"1g"
"4g"
"16g"
"64g"
network_policy: Optional[ToolShellEnvironmentContainerAutoNetworkPolicy]

Network access policy for the container.

One of the following:
class ToolShellEnvironmentContainerAutoNetworkPolicyDisabled: …
type: Literal["disabled"]

Disable outbound network access. Always disabled.

class ToolShellEnvironmentContainerAutoNetworkPolicyAllowlist: …
allowed_domains: List[str]

A list of allowed domains when type is allowlist.

minItems1
type: Literal["allowlist"]

Allow outbound network access only to specified domains. Always allowlist.

skills: Optional[List[ToolShellEnvironmentContainerAutoSkill]]

An optional list of skills referenced by id or inline data.

maxItems200
One of the following:
class ToolShellEnvironmentContainerAutoSkillSkillReference: …
skill_id: str

The ID of the referenced skill.

minLength1
maxLength64
type: Literal["skill_reference"]

References a skill created with the /v1/skills endpoint.

version: Optional[str]

Optional skill version. Use a positive integer or ‘latest’. Omit for default.

class ToolShellEnvironmentContainerAutoSkillInline: …
description: str

The description of the skill.

name: str

The name of the skill.

source: ToolShellEnvironmentContainerAutoSkillInlineSource

Inline skill payload

data: str

Base64-encoded skill zip bundle.

minLength1
maxLength70254592
media_type: Literal["application/zip"]

The media type of the inline skill payload. Must be application/zip.

type: Literal["base64"]

The type of the inline skill source. Must be base64.

type: Literal["inline"]

Defines an inline skill for this request.

class ToolShellEnvironmentContainerReference: …
container_id: str

The ID of the referenced container.

type: Literal["container_reference"]

References a container created with the /v1/containers endpoint

class ToolShellEnvironmentLocal: …
type: Literal["local"]

Use a local computer environment.

skills: Optional[List[ToolShellEnvironmentLocalSkill]]

An optional list of skills.

maxItems200
description: str

The description of the skill.

name: str

The name of the skill.

path: str

The path to the directory containing the skill.

class ToolImageGeneration: …
type: Literal["image_generation"]
class ToolMcp: …
type: Literal["mcp"]
class ToolCustom: …
type: Literal["custom"]
class ToolNamespace: …
type: Literal["namespace"]
class ToolSearch: …
type: Literal["tool_search"]
class ToolProgrammaticToolCalling: …
type: Literal["programmatic_tool_calling"]
class ToolComputer: …
type: Literal["computer"]
class ToolApplyPatch: …
type: Literal["apply_patch"]
type: Literal["responses"]

The delegation owner. Always responses for tasks handled by the Responses API.

acknowledgement_delay_ms: Optional[int]

Milliseconds to wait before requesting an automatic spoken acknowledgement for a delegation. The model may still speak before this delay. Any commentary or thinking appended to the session cancels all pending acknowledgements, including those for other delegations. Defaults to 400 for Decisions sessions and 0 (request immediately) for other sessions. Omission in a session update preserves the current value. Updates apply to subsequent delegations.

minimum0
maximum800
class SessionDelegationDecisions: …
model: str
minLength1
questions: List[DecisionQuestion]

Native Decision API questions evaluated together, in order.

minItems1
maxItems64
One of the following:
class Choice: …
choices: List[DecisionChoiceOption]
minItems2
maxItems255
value: Union[str, bool]
One of the following:
str
bool
description: Optional[str]
instructions: Union[str, List[ChoiceInstructionsParts]]
One of the following:
str
List[ChoiceInstructionsParts]
One of the following:
class DecisionInputText: …
text: str

The text input to the model.

maxLength10485760
type: Literal["input_text"]
class ChoiceInstructionsPartsInputImage: …
image_url: str

A base64-encoded image data URL or a publicly accessible HTTP(S) image URL.

maxLength20971520
type: Literal["input_image"]
detail: Optional[Literal["low", "high", "auto", "original"]]

The detail level of the image to be sent to the model. One of high, low, auto, or original. Defaults to auto.

One of the following:
"low"
"high"
"auto"
"original"
class ChoiceInstructionsPartsInputJSON: …
One of the following:
type: Literal["input_json"]
type: Literal["choice"]
name: Optional[str]
class Predicate: …
instructions: Union[str, List[PredicateInstructionsParts]]
One of the following:
str
List[PredicateInstructionsParts]
One of the following:
class DecisionInputText: …
text: str

The text input to the model.

maxLength10485760
type: Literal["input_text"]
class PredicateInstructionsPartsInputImage: …
image_url: str

A base64-encoded image data URL or a publicly accessible HTTP(S) image URL.

maxLength20971520
type: Literal["input_image"]
detail: Optional[Literal["low", "high", "auto", "original"]]

The detail level of the image to be sent to the model. One of high, low, auto, or original. Defaults to auto.

One of the following:
"low"
"high"
"auto"
"original"
class PredicateInstructionsPartsInputJSON: …
One of the following:
type: Literal["input_json"]
type: Literal["predicate"]
name: Optional[str]
class Score: …
instructions: Union[str, List[ScoreInstructionsParts]]
One of the following:
str
List[ScoreInstructionsParts]
One of the following:
class DecisionInputText: …
text: str

The text input to the model.

maxLength10485760
type: Literal["input_text"]
class ScoreInstructionsPartsInputImage: …
image_url: str

A base64-encoded image data URL or a publicly accessible HTTP(S) image URL.

maxLength20971520
type: Literal["input_image"]
detail: Optional[Literal["low", "high", "auto", "original"]]

The detail level of the image to be sent to the model. One of high, low, auto, or original. Defaults to auto.

One of the following:
"low"
"high"
"auto"
"original"
class ScoreInstructionsPartsInputJSON: …
One of the following:
type: Literal["input_json"]
levels: List[ScoreLevel]
minItems2
maxItems10
label: str
description: Optional[str]
type: Literal["score"]
name: Optional[str]
type: Literal["decisions"]
acknowledgement_delay_ms: Optional[int]

Milliseconds to wait before requesting an automatic spoken acknowledgement for a delegation. The model may still speak before this delay. Any commentary or thinking appended to the session cancels all pending acknowledgements, including those for other delegations. Defaults to 400. Updates apply to subsequent delegations.

minimum0
maximum800
input: Optional[Iterable[InitialItemParam]]

Ordered text-only history supplied before startup. Supports developer, user, and assistant messages with one text part each; at most 128 messages and a configured rendered-token limit (8,192 by default).

maxItems128
One of the following:
class Developer: …

A developer message included in the initial text history of a Live session.

content: List[DeveloperContent]

The message content. Supply exactly one text part for the initial Live conversation history.

minItems1
maxItems1
text: str

The message text to include in the Live session’s initial conversation history.

type: Optional[Literal["input_text"]]

The text content type. Always input_text.

role: Literal["developer"]

The author of this history message. Always developer.

id: Optional[str]

An optional identifier for the supplied history message. Live uses the message’s role and text to initialize the conversation.

status: Optional[Literal["incomplete", "completed"]]

The supplied message’s status. Live uses its text as history and does not resume an incomplete message.

One of the following:
"incomplete"
"completed"
type: Optional[Literal["message"]]

The history item type. Always message.

class User: …

A user message included in the initial text history of a Live session.

content: List[UserContent]

The message content. Supply exactly one text part for the initial Live conversation history.

minItems1
maxItems1
text: str

The message text to include in the Live session’s initial conversation history.

type: Optional[Literal["input_text"]]

The text content type. Always input_text.

role: Literal["user"]

The author of this history message. Always user.

id: Optional[str]

An optional identifier for the supplied history message. Live uses the message’s role and text to initialize the conversation.

status: Optional[Literal["incomplete", "completed"]]

The supplied message’s status. Live uses its text as history and does not resume an incomplete message.

One of the following:
"incomplete"
"completed"
type: Optional[Literal["message"]]

The history item type. Always message.

class Assistant: …

An assistant message included in the initial text history of a Live session.

content: List[AssistantContent]

The message content. Supply exactly one text part for the initial Live conversation history.

minItems1
maxItems1
One of the following:
class AssistantContentText: …

Assistant text supplied as conversation history when starting a Live session.

text: str

The message text to include in the Live session’s initial conversation history.

type: Optional[Literal["text"]]

The text content type. Always text.

class AssistantContentOutputText: …

Assistant output text supplied as conversation history when starting a Live session.

text: str

The message text to include in the Live session’s initial conversation history.

type: Literal["output_text"]

The text content type. Always output_text.

role: Literal["assistant"]

The author of this history message. Always assistant.

id: Optional[str]

An optional identifier for the supplied history message. Live uses the message’s role and text to initialize the conversation.

status: Optional[Literal["incomplete", "completed"]]

The supplied message’s status. Live uses its text as history and does not resume an incomplete message.

One of the following:
"incomplete"
"completed"
type: Optional[Literal["message"]]

The history item type. Always message.

instructions: Optional[str]

Frontend instructions for voice, conversation, interruptions, and when to delegate. Start with the Live prompting guide; put business rules and tool workflows in a separate backend prompt. Limited to 16,384 client-supplied tokens. Omitted or blank instructions use server defaults. Immutable after startup.

safety_identifier: Optional[str]

A stable identifier for your end user, used for safety monitoring and abuse detection.

maxLength128
store: Optional[bool]

Whether to store the session for later forking and recording download. Defaults to false for new sessions.

triggers: Optional[Iterable[DecisionTriggerParam]]

At most one Decisions trigger per transcript event type. Triggers run independently of delegation. On update, omit triggers to keep the current configuration, send a list to replace it, or send an empty list to disable triggers.

maxItems2
decisions: Decisions

Questions evaluated using the current transcript and the session’s shared Decision items.

questions: List[DecisionQuestion]

Native Decision API questions evaluated together, in order.

minItems1
maxItems64
One of the following:
class Choice: …
choices: List[DecisionChoiceOption]
minItems2
maxItems255
value: Union[str, bool]
One of the following:
str
bool
description: Optional[str]
instructions: Union[str, List[ChoiceInstructionsParts]]
One of the following:
str
List[ChoiceInstructionsParts]
One of the following:
class DecisionInputText: …
text: str

The text input to the model.

maxLength10485760
type: Literal["input_text"]
class ChoiceInstructionsPartsInputImage: …
image_url: str

A base64-encoded image data URL or a publicly accessible HTTP(S) image URL.

maxLength20971520
type: Literal["input_image"]
detail: Optional[Literal["low", "high", "auto", "original"]]

The detail level of the image to be sent to the model. One of high, low, auto, or original. Defaults to auto.

One of the following:
"low"
"high"
"auto"
"original"
class ChoiceInstructionsPartsInputJSON: …
One of the following:
type: Literal["input_json"]
type: Literal["choice"]
name: Optional[str]
class Predicate: …
instructions: Union[str, List[PredicateInstructionsParts]]
type: Literal["predicate"]
name: Optional[str]
class Score: …
event_type: Literal["session.input_transcript.delta", "session.output_transcript.delta"]
type: Literal["decisions"]