1
Create an API key
Go to Settings → Developer → API Keys in app.60db.ai and create a key. Keep it on your server. The examples read it from
SIXTYDB_API_KEY.2
Open a session and send a text turn
- JavaScript (openai)
- Python (openai)
- Raw WebSocket (Node)
YOUR_VOICE_ID with a voice ID from List voices.3
Send a voice turn
For voice, stream PCM16 audio into Listen for these server events:
input_audio_buffer.append. With the default server_vad turn detection, the server commits the utterance after silence and starts the reply on its own.See Audio and turn detection for formats and manual turn control.
4
Check the result
The final
response.done event carries usage. Each session is billed at $0.02 per connected minute plus LLM tokens. See Realtime overview.Troubleshooting
Next steps
- Migrate an existing OpenAI app
- Function tools
- 60db extensions: memory, knowledge and intent