Blog Post

Azure AI Foundry Blog
7 MIN READ

Working with the Realtime API of gpt-4o in python

srikantan's avatar
srikantan
Icon for Microsoft rankMicrosoft
Dec 30, 2024

Unlike the chat completions API endpoints in GPT-4o, working with the Realtime API is more complex. It involves an intermediate layer that uses WebSockets to connect to the API, and there are various events to manage for building an end-to-end application experience. This post captures these details.

This post is organized into sections that cover how to: Connect to the Realtime API Handle audio conversations Handle text conversations Handle tool calling The sample web application i...
Updated Dec 27, 2024
Version 1.0