GET
/v1/schemas/openai/chat/realtime/translations/client_secrets?kind=output
Accept:
| field | recorded source |
|---|---|
| schema | Source linked above. upstream-spec Source tracefb72772dc5ac65c0457451fcab125a37ffa22b6aea98546e7be3f49396be4442{
"fetchedAt": 1793769007,
"extractorVersion": "1",
"verifiedAt": null
} |
Response body
3 properties · 3 required · 3 $defs| property | type | description | constraints |
|---|---|---|---|
| value* | string | The generated client secret value. | |
| expires_at* | integer | Expiration timestamp for the client secret, in seconds since epoch. | format: unixtime |
| session* | RealtimeTranslationSession | A Realtime translation session. Translation sessions continuously translate input audio into the configured output language. |
Types
3 $defsNoiseReductionTypeenum
Type of noise reduction. `near_field` is for close-talking microphones such as headphones, `far_field` is for far-field microphones such as laptop or conference room microphones.
near_field | far_field
RealtimeNoiseReductionStrengthnumber
Input noise suppression strength. Higher values apply more suppression. Defaults to 1 when noise reduction is first enabled. Omitting strength from a session update preserves the current strength.
0 ≤ n ≤ 1 · default: 1
RealtimeTranslationSessionobject
A Realtime translation session. Translation sessions continuously translate input audio into the configured output language.
| id* | string | Unique identifier for the session that looks like `sess_1234567890abcdef`. | |
| type* | enum | The session type. Always `translation` for Realtime translation sessions. | translation |
| expires_at* | integer | Expiration timestamp for the session, in seconds since epoch. | format: unixtime |
| model* | string | The Realtime translation model used for this session. This field is set at session creation and cannot be changed with `session.update`. | |
| audio* | object | Configuration for translation input and output audio. |
Validate a payload
before you spend tokensshell
$ curl -X POST https://modelschemas.com/v1/validate \
-d '{"provider":"openai","endpointId":"realtime/translations/client_secrets","payload":{…}}'
→ {"valid": false, "errors": [{"path": "#", "keyword": "required", …}]}