Start a New Streaming Session

POSThttps://api.konpro.ai/v1/streaming/new

Initialize a new real-time streaming session featuring an Interactive Avatar. This session enables live interaction and communication with customizable settings.

Request History

Log in to see full request history

TIMESTATUSUSER AGENT
Make a request to see history.

0 Requests This Month

Request Body Parameters

FieldTypeDescription
qualitystringStreaming quality. Options: "high" (2000 kbps, 720p), "medium" (1000 kbps, 480p, default), "low" (500 kbps, 360p)
avatar_idstring(Optional) ID of the Interactive Avatar to use. Defaults to "default" if omitted.
voiceobject(Optional) Voice settings for the avatar, including rate, emotion, and third-party configurations.
stt_settingsobject(Optional, beta) Speech-to-text configuration, selecting provider (e.g., deepgram, gladia, assembly_ai) and confidence threshold.
video_encodingstringVideo encoding format. Options: "H264" or "VP8" (default).
knowledge_basestring(Optional) Prompt for chatbot knowledge base in chat mode.
versionstring(Optional) API version to use. Valid: "v1". Defaults to "v1" if omitted.
knowledge_base_idstring(Optional, beta) Knowledge base identifier for avatar responses, applicable only when version is "v1".
disable_idle_timeoutboolean(Optional) Disable the default 2-minute idle timeout. Use with caution to avoid excessive credit consumption. Defaults to false.
activity_idle_timeoutinteger(Optional) Max idle time in seconds before session is deemed inactive. Default: 120s, Min: 30s, Max: 3600s.
livekit_settingsobject(Optional, beta) Custom LiveKit instance connection settings, including room, url, and access token.

Voice Settings Object (Example)

FieldTypeDescription
voice_idstringVoice ID; not all voices support streaming API
ratefloatSpeech speed rate, default is 1
emotionstringEmotion style, e.g., "Excited", "Friendly"
elevenlabs_settingsobjectElevenLabs-specific voice model parameters (optional)

Speech-to-Text Settings Object (Example)

FieldTypeDescription
providerstringSTT provider: "deepgram", "gladia", "assembly_ai" (default "assembly_ai" for English)
confidencefloatConfidence threshold, default 0.55

Response Fields

FieldTypeDescription
codeintegerResponse status code
messagestringHuman-readable response message
data.session_idstringUnique session identifier
data.urlstringWebSocket URL for connecting to the LiveKit room
data.access_tokenstringAccess token to authenticate with the LiveKit server
data.session_duration_limitintegerMaximum session duration in seconds
data.is_paidbooleanIndicates if the session is under a paid plan
data.realtime_endpointstringURL for alpha real-time signaling features (optional)
data.livekit_agent_tokenstringToken for HeyGen's audio agents, only if using managed LiveKit

cURL Request

shell
curl --request POST \
--url https://api.konpro.ai/v1/streaming/new \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'x-api-key: <your-api-key>' \
--data '{
  "quality": "medium",
  "avatar_id": "default",
  "voice": {
    "rate": 1
  },
  "video_encoding": "VP8",
  "disable_idle_timeout": false,
  "version": "v1",
  "stt_settings": {
    "provider": "deepgram",
    "confidence": 0.55
  },
  "activity_idle_timeout": 120
}'

LANGUAGE

CREDENTIALS

HEADER

RESPONSE

Examples

Choose an example:

application/json
200 - Success
400 - Bad Request