Create realtime client secret
curl --request POST \
--url https://api.threetone.in/v1/convai/realtime/client_secrets \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.threetone.in/v1/convai/realtime/client_secrets"
payload = {}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.threetone.in/v1/convai/realtime/client_secrets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"value": "<string>",
"expires_at": 123,
"session": {
"type": "realtime",
"model": "eleven_realtime_v1_mini",
"instructions": "",
"output_modalities": [
"<string>"
],
"tools": [
{
"name": "<string>",
"type": "function",
"description": "",
"parameters": {}
}
],
"tool_choice": "auto",
"temperature": 0.7,
"max_response_output_tokens": 4096,
"max_duration_seconds": 600,
"audio": {
"input": {
"format": {
"type": "audio/pcm",
"rate": 24000
},
"transcription": {
"language": "<string>"
},
"turn_detection": {
"type": "semantic_vad",
"eagerness": "medium",
"create_response": true,
"interrupt_response": true,
"threshold": 123,
"prefix_padding_ms": 123,
"silence_duration_ms": 123,
"turn_timeout": -1
},
"pacing": "realtime"
},
"output": {
"format": {
"type": "audio/pcm"
},
"voice": "brian"
}
},
"tracing": "auto"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Realtime
Create realtime client secret
Create an ephemeral client secret for authenticating browser-based Realtime API sessions.
POST
/
v1
/
convai
/
realtime
/
client_secrets
Create realtime client secret
curl --request POST \
--url https://api.threetone.in/v1/convai/realtime/client_secrets \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.threetone.in/v1/convai/realtime/client_secrets"
payload = {}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.threetone.in/v1/convai/realtime/client_secrets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"value": "<string>",
"expires_at": 123,
"session": {
"type": "realtime",
"model": "eleven_realtime_v1_mini",
"instructions": "",
"output_modalities": [
"<string>"
],
"tools": [
{
"name": "<string>",
"type": "function",
"description": "",
"parameters": {}
}
],
"tool_choice": "auto",
"temperature": 0.7,
"max_response_output_tokens": 4096,
"max_duration_seconds": 600,
"audio": {
"input": {
"format": {
"type": "audio/pcm",
"rate": 24000
},
"transcription": {
"language": "<string>"
},
"turn_detection": {
"type": "semantic_vad",
"eagerness": "medium",
"create_response": true,
"interrupt_response": true,
"threshold": 123,
"prefix_padding_ms": 123,
"silence_duration_ms": 123,
"turn_timeout": -1
},
"pacing": "realtime"
},
"output": {
"format": {
"type": "audio/pcm"
},
"voice": "brian"
}
},
"tracing": "auto"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Headers
Your API key for programmatic access. Send it in the x-api-key header; you can create and manage keys from the Developers page.
Body
application/json