Response
json
{
"expires_at": 0,
"session": {
"id": "id",
"audio": {
"input": {
"noise_reduction": {
"type": "near_field"
},
"transcription": {
"model": "model"
}
},
"output": {
"language": "language"
}
},
"expires_at": 0,
"model": "model",
"type": "translation"
},
"value": "value"
}Example
http
curl -X POST https://api.openai.com/v1/realtime/translations/client_secrets \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"expires_after": {
"anchor": "created_at",
"seconds": 600
},
"session": {
"model": "gpt-realtime-translate",
"audio": {
"input": {
"transcription": {
"model": "gpt-realtime-whisper"
},
"noise_reduction": null
},
"output": {
"language": "es"
}
}
}
}'