Skip to main content

Kupe Python SDK

Official client for the Kupe voice API.

pip install kupe

Local checkout:

pip install -e ./kupe-sdk

Quickstart

from kupe import Kupe

client = Kupe()  # KUPE_API_KEY
session = client.realtime.sessions.create(agent_id="agt_...", voice="priya")
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)

Auth is Authorization: Bearer sk-kupe-... (or a Supabase JWT). Default base is https://x.kupe.in. Env: KUPE_API_KEY, optional KUPE_BASE_URL.

Every HTTP path is {base}/v1/.... Passing base_url="https://x.kupe.in/v1" is fine — the client will not drop /v1.

When org_id / project_id are omitted, they are filled from GET /v1/me.

Resources

client.agents, realtime, sessions, inbound, campaigns, recipient_lists, tools, composio, analyses, databases, knowledge_bases, phones, voices, providers, logs, billing, usage, orgs, projects.

Realtime audio is PCM16 mono at 24 kHz (rt.append_audio(pcm)). Voice clone / patch / delete require a user JWT — calling them with an API key raises JWTRequiredError.

Payments, credit checkout, and per-service usage breakdown are not included.

See examples/realtime_text_turn.py.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kupe-0.1.1.tar.gz (17.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kupe-0.1.1-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

Details for the file kupe-0.1.1.tar.gz.

File metadata

  • Download URL: kupe-0.1.1.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for kupe-0.1.1.tar.gz
Algorithm Hash digest
SHA256 efbb8fbc47bd1e02df05a9cfab297440047b90990f1f96331f6d06a36f492a8f
MD5 6d8e83051ebeee3f2944451e21382f68
BLAKE2b-256 83afc1c55d7332ccc4967f8449216de9b1e7fbc57df4910fc8b7912a1f2500d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for kupe-0.1.1.tar.gz:

Publisher: publish.yml on kupe-ai/kupe-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file kupe-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: kupe-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 22.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for kupe-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 60aeda80c81b2edb079a84c6d492da1b12a414df0a677e26608281508a1e62bf
MD5 25eaa11ef3416d0404d3ff258578922c
BLAKE2b-256 3327b75212235e9e743684a5bc31a7a0a79f72a706291359ba798b376e5fd773

See more details on using hashes here.

Provenance

The following attestation bundles were made for kupe-0.1.1-py3-none-any.whl:

Publisher: publish.yml on kupe-ai/kupe-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

This release

0.1.1 This release

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page