Gemini Live api + Twilio

is there a simple working sample code for Twilio - Gemini Live Api?

Not an official sample (And I’d be surprised if there ever was honestly)
but,
GitHub - AlexITC/twimini-bot: Voice calls from Twilio with Gemini's Live API with a nice streaming pipeline

Seems like it does what you’re asking about, if you just want some pointers/references to look at.

1 Like

Hi niko,

While there isn’t an official end-to-end sample for Twilio with Gemini Live API, you can usually combine Twilio’s webhook handling with the Gemini streaming endpoints. The basic approach is to use Twilio to capture incoming messages or calls, then forward the content to the Gemini Live API for processing, and finally return the generated response back through Twilio. Make sure to handle streaming responses asynchronously to avoid timeouts and to keep the user experience smooth. Checking both Twilio’s docs and the Gemini API reference side-by-side is a good starting point for building a working prototype.