GET
/v1/schemas/openai/chat/realtime%2Fsessions?kind=output
Accept:
Response body
13 properties · 0 required · 5 $defs| property | type | description | constraints |
|---|---|---|---|
| id | string | Unique identifier for the session that looks like `sess_1234567890abcdef`. | |
| object | string | The object type. Always `realtime.session`. | |
| expires_at | integer | Expiration timestamp for the session, in seconds since epoch. | format: unixtime |
| include | enum[] | Additional fields to include in server outputs. - `item.input_audio_transcription.logprobs`: Include logprobs for input audio transcription. | |
| model | string | The Realtime model used for this session. | |
| output_modalities | any | The set of modalities the model can respond with. To disable audio, set this to ["text"]. | |
| instructions | string | The default system instructions (i.e. system message) prepended to model calls. This field allows the client to guide the model on desired responses. The model can be instructed on response content and format, (e.g. "be extremely succinct", "act friendly", "he… | |
| audio | object | Configuration for input and output audio for the session. | |
| tracing | enum | Tracing Configuration | Configuration options for tracing. Set to null to disable tracing. Once tracing is enabled for a session, the configuration cannot be modified. | |
| turn_detection | object | Configuration for turn detection. Can be set to `null` to turn off. Server VAD means that the model will detect the start and end of speech based on audio volume and respond at the end of user speech. | |
| tools | RealtimeFunctionTool[] | Tools (functions) available to the model. | |
| tool_choice | string | How the model chooses tools. Options are `auto`, `none`, `required`, or specify a function. | |
| max_output_tokens | integer | enum | Maximum number of output tokens for a single assistant response, inclusive of tool calls. Provide an integer between 1 and 4096 to limit output tokens, or `inf` for the maximum available tokens for a given model. Defaults to `inf`. |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"openai","endpointId":"realtime/sessions","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}