Runway · AsyncAPI Specification
Runway Characters Realtime Events
Version 2024-11-06
The Runway Characters realtime event interface describes the WebRTC-based communication protocol for live conversational avatar sessions powered by GWM-1. Once a realtime session is created via the REST API, clients connect to a WebRTC room and exchange audio, video, and data channel messages with the avatar in real time. Sessions support bidirectional audio and video streams with a maximum duration of 5 minutes.
View Spec
View on GitHub
Video GenerationImage GenerationArtificial IntelligenceMachine LearningGenerative AIAvatarsCharactersWebRTCCreative ToolsAsyncAPIWebhooksEvents
Channels
/session/audio
Send user audio to avatar
Bidirectional audio channel for real-time voice communication between the user and the avatar. The user sends microphone audio, and the avatar responds with synthesized speech audio.
/session/video
Receive avatar video stream
Video channel carrying the avatar's real-time generated video stream to the user. The avatar produces photorealistic or animated video frames showing facial expressions, lip movements, and gestures synchronized with the conversation.
/session/data
Send session control message
Data channel for exchanging session control messages and metadata between the client and server, including session state changes, errors, and transcript data.
Messages
AudioStream
Audio Stream
Real-time audio data for bidirectional voice communication.
VideoStream
Video Stream
Real-time video frames from the avatar showing facial expressions and lip movements synchronized with speech.
SessionControlMessage
Session Control Message
Client-initiated control message for managing session behavior.
SessionStateEvent
Session State Event
Server-sent event indicating a change in session state.
TranscriptEvent
Transcript Event
Server-sent event containing transcript data from the conversation, including both user speech and avatar responses.
SessionErrorEvent
Session Error Event
Server-sent event indicating an error occurred during the session.
Servers
wss
realtimeServer
{serverUrl}
WebRTC signaling server for realtime avatar sessions. The server URL is provided dynamically when a session is created via the REST API.