Install the SDKs

pip install kupe · npm install kupe-sdk · docs.kupe.in

TypeScript: npm install kupe-sdk. Python: pip install kupe. Set KUPE_API_KEY. Base URL defaults to https://x.kupe.in — do not append /v1.

Coding agents: install Kupe MCP at https://mcp.kupe.in/mcp.

pip install kupe
from kupe import Kupe

client = Kupe()  # KUPE_API_KEY
session = client.realtime.sessions.create(
    name="Priya",
    voice="priya",
    prompt="You collect overdue EMIs. Be warm and brief.",
    greeting="Hi, this is Priya from the bank.",
)
with client.realtime.connect(session) as rt:
    rt.send_text("Hi — remind them EMI is due tomorrow.")
    for event in rt:
        if event.type == "response.output_audio_transcript.done":
            print(event.transcript)
npm install kupe-sdk
import { Kupe } from "kupe-sdk";

const kupe = new Kupe(); // reads KUPE_API_KEY / KUPE_BASE_URL
const session = await kupe.realtime.sessions.create({
  name: "Priya",
  voice: "priya",
  prompt: "You collect overdue EMIs. Be warm and brief.",
  greeting: "Hi, this is Priya from the bank.",
});
const rt = await kupe.realtime.connect(session);
rt.send_text("Hi — remind them EMI is due tomorrow.");
for await (const event of rt) {
  if (event.type === "response.output_audio_transcript.done") {
    console.log(event.transcript);
  }
}