Convai Live API

Beta Live API for ultra-low-latency, fully duplex character sessions over WebRTC. POST /connect at live.convai.com to establish a session; subsequent audio and event messages flow over WebRTC data channels (RTVI message format) and media tracks. Authenticated via X-API-Key.

Convai Live API is one of 10 APIs that Convai publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include AI, Conversational AI, Live, WebRTC, and Beta. The published artifact set on APIs.io includes API documentation and an OpenAPI specification.

OpenAPI Specification

convai-live-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: Convai Live API
  version: "1.0-beta"
  description: |
    Beta Live API for ultra-low-latency, fully duplex character sessions over
    WebRTC. The /connect endpoint establishes a session and returns SDP/peer
    configuration; subsequent audio and event messages flow over WebRTC data
    channels (RTVI message format) and media tracks. Supports metrics and
    server-side audio data channels.
servers:
- url: https://live.convai.com
security:
- LiveApiKey: []
paths:
  /connect:
    post:
      summary: Connect Live Session
      operationId: connectLiveSession
      tags: [Live]
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required: [character_id]
              properties:
                character_id: { type: string }
                session_id: { type: string }
                debug:
                  type: boolean
                  description: Enable metrics events on the data channel
                  default: false
                audio_config:
                  type: object
                  properties:
                    output:
                      type: object
                      properties:
                        audio_routing:
                          type: string
                          enum: [media, data-channel]
      responses:
        '200':
          description: Connection params (SDP, ICE servers, room info)
          content:
            application/json:
              schema:
                type: object
                properties:
                  room_url: { type: string, format: uri }
                  token: { type: string }
                  sdp: { type: string }
components:
  securitySchemes:
    LiveApiKey:
      type: apiKey
      in: header
      name: X-API-Key