Cyphr Python SDK
Official client for the Cyphr AI mixing API. Upload stems, run an automated AI mix, and download the finished WAV — all from Python.
Install
pip install cyphr-sdk
Requires Python 3.9+.
Authentication
- Sign in at cyphrmusic.com.
- Open Account → API keys and create a key (
cyphr_sk_…). - Pass it to the client or set
CYPHR_API_KEY.
The account page also shows the API base URL to use with base_url= or CYPHR_API_BASE_URL.
Quick start
from pathlib import Path
from cyphr import CyphrClient, StemSpec
client = CyphrClient(api_key="cyphr_sk_…")
mix_path = client.mix_project(
title="My Song",
stems=[
StemSpec("vocals.wav", "vox_lead", Path("vocals.wav")),
StemSpec("beat.wav", "multiple_instruments", Path("beat.wav")),
],
output_path="mix.wav",
)
print("Downloaded:", mix_path)
Step-by-step workflow
Use this when you want control over uploads or status polling:
from cyphr import CyphrClient
client = CyphrClient(api_key="cyphr_sk_…")
# 1. Create project — returns presigned upload URLs
created = client.create_project(
title="My Song",
stems=[
{"filename": "vocals.wav", "trackType": "vox_lead"},
{"filename": "beat.wav", "trackType": "multiple_instruments"},
],
)
# 2. Upload each stem (PUT to presigned URL; headers must match)
for upload, path in zip(created.uploads, ["vocals.wav", "beat.wav"]):
client.upload_stem(upload, path)
# 3. Queue for mixing
client.queue_project(created.project.id)
# 4. Wait until status is "completed"
project = client.wait_for_completion(created.project.id)
print(project.status)
# 5. Download the mix WAV (requires subscription)
client.download_mix(created.project.id, "mix.wav")
# Delete a project to free a slot on the free plan
client.delete_project(created.project.id)
Configuration
| Setting | Environment variable | Constructor kwarg |
|---|---|---|
| API key | CYPHR_API_KEY |
api_key= |
| API base URL | CYPHR_API_BASE_URL |
base_url= |
# Explicit configuration
client = CyphrClient(
api_key="cyphr_sk_…",
base_url="https://your-api-url.lambda-url.us-east-1.on.aws",
timeout=60.0, # HTTP timeout in seconds
)
If base_url is omitted, the SDK uses its built-in production URL when set, otherwise the dev API URL shipped with the package.
Track types
Every stem needs a trackType when creating a project:
| Value | Use for |
|---|---|
vox_lead |
Lead vocal |
vox_back |
Backing vocals / harmonies |
multiple_instruments |
Full beat or multi-instrument stem |
bass |
Bass line |
808 |
808 / sub bass |
drum_kit |
Full drum mix |
kick |
Kick drum |
snare |
Snare / clap |
hi_hat_cymbals |
Hats / cymbals |
keys |
Piano / synth keys |
guitar |
Guitar |
sfx |
Risers, sweeps, FX |
multi_normalize |
Already-processed stem (normalize only) |
Supported audio formats: .wav, .flac, .mp3, .m4a, .aiff, .aif
API reference
CyphrClient
| Method | Description |
|---|---|
verify() |
Check API key; returns { "userId": "…" } |
list_projects() |
List AI mix projects |
create_project(title, stems, genre=None) |
Create project + presigned upload URLs |
upload_stem(upload, source) |
Upload one stem file |
queue_project(project_id) |
Start mixing after uploads |
get_project(project_id) |
Get project status |
delete_project(project_id) |
Delete project and its files |
wait_for_completion(project_id, …) |
Poll until done |
get_mix_download(project_id) |
Presigned download URL (subscription required) |
download_mix(project_id, dest=None) |
Download WAV to disk |
mix_project(title, stems, …) |
End-to-end helper |
Types
StemSpec(filename, track_type, source)— local file to upload inmix_projectProject—id,title,status,mix_status, …StemUpload— presigned upload target fromcreate_projectMixDownload— presigned download URL fromget_mix_download
Exceptions
CyphrConfigError— missing API key or invalid client setupCyphrApiError— API returned an error (status_code,body)TimeoutError—wait_for_completionexceeded its timeout
In Python: help(CyphrClient) for full method documentation.
Project statuses
Typical flow: uploading → queued → pending → completed
If classification needs manual review in the app, status may become awaiting-review. Failed mixes return failed.
Free accounts are limited to 3 AI mix projects. Downloading finished mixes requires an active subscription.
License
MIT
Metadata
Release files for cyphr-sdk 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cyphr_sdk-0.1.2.tar.gz | 11.1 kB | Without provenance | Details for cyphr_sdk-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cyphr_sdk-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for cyphr_sdk-0.1.2-py3-none-any.whl |
Total release size: 22.4 kB
Release files / cyphr_sdk-0.1.2.tar.gz
| Download URL | cyphr_sdk-0.1.2.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bd7f3ef42b2c425a1d0b1ca6d5c67d42844477938ecfacfb138cff64e78ad5d7
|
|
BLAKE2b-256 checksum How to use checksums |
359d5845755f60312c74c9cba453d59462265416c0a98a05bb430ac2ef03dfbc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|
Release files / cyphr_sdk-0.1.2-py3-none-any.whl
| Download URL | cyphr_sdk-0.1.2-py3-none-any.whl |
|---|---|
| Size | 11.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ef345ee8166ce6df070f796a407ad22f9b3c81ada9e9c3dc8eba29650b2af5d5
|
|
BLAKE2b-256 checksum How to use checksums |
42c249f57c2dfb4451bbabb6de9b76b9eb5a5da741b08a5d35376e54e02398ad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|
Security for cyphr-sdk 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.