voice

Create voice session

Changed on

Create a server-brokered voice session using the server's configured provider credentials and return the WebRTC SDP answer or WebSocket ephemeral token.

post/api/experimental/voice/session

Request

  • Base URL
    https://opencode.ai (the document declares no server; this is the origin it was published from)
  • URL
    https://opencode.ai/api/experimental/voice/session
  • Auth
    none required

Request body

modelstring required
sessionobject nullable

Response

VoiceSessionResponse

Changes