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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kupe-0.1.0.tar.gz.
File metadata
- Download URL: kupe-0.1.0.tar.gz
- Upload date:
- Size: 16.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
632fbf3dd93be09075ae4f213be1a11a814ca8020f7a1d0b12ddb6cd6055b8f0
|
|
| MD5 |
5002e54ed6f7ba693d1a1ceeae7937ba
|
|
| BLAKE2b-256 |
6a941da70a76172626324cad808fbd978ae8ef0a6dac856f6abc1c8cd8e48c4f
|
Provenance
The following attestation bundles were made for kupe-0.1.0.tar.gz:
Publisher:
publish.yml on kupe-ai/kupe-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kupe-0.1.0.tar.gz -
Subject digest:
632fbf3dd93be09075ae4f213be1a11a814ca8020f7a1d0b12ddb6cd6055b8f0 - Sigstore transparency entry: 2582077865
- Sigstore integration time:
-
Permalink:
kupe-ai/kupe-sdk@bca538ab01d63af8b0b4a716cde874ff2093e03e -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/kupe-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@bca538ab01d63af8b0b4a716cde874ff2093e03e -
Trigger Event:
push
-
Statement type:
File details
Details for the file kupe-0.1.0-py3-none-any.whl.
File metadata
- Download URL: kupe-0.1.0-py3-none-any.whl
- Upload date:
- Size: 22.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b90a2cf45a5db2222ca046d414116d9a3973a19b730bf6c597e592603572498a
|
|
| MD5 |
8bd12ef025326c4e16af7a01d7c3667f
|
|
| BLAKE2b-256 |
4f954593e60d064d0279b529ec4430bf06673b0e07bbd10ab6b30f78f3708792
|
Provenance
The following attestation bundles were made for kupe-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on kupe-ai/kupe-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
kupe-0.1.0-py3-none-any.whl -
Subject digest:
b90a2cf45a5db2222ca046d414116d9a3973a19b730bf6c597e592603572498a - Sigstore transparency entry: 2582077871
- Sigstore integration time:
-
Permalink:
kupe-ai/kupe-sdk@bca538ab01d63af8b0b4a716cde874ff2093e03e -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/kupe-ai
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@bca538ab01d63af8b0b4a716cde874ff2093e03e -
Trigger Event:
push
-
Statement type: