uplinkswitch
Python client for UplinkSwitch: one API key for Claude, GPT, Gemini, DeepSeek, Qwen, Kimi, GLM, Grok and more, priced under each developer's list. The API speaks the OpenAI and Anthropic formats, so you keep the official SDKs.
pip install "uplinkswitch[openai]" # or [anthropic], or [all]
export UPLINKSWITCH_API_KEY="sk-uplink-live-..."
Get a key at uplinkswitch.com/console. Credit is prepaid from $10, with no subscription, and each top-up locks your prices for 30 days.
OpenAI SDK
import uplinkswitch
client = uplinkswitch.openai_client()
reply = client.chat.completions.create(
model="claude-opus-5-5",
messages=[{"role": "user", "content": "Say hi in five words."}],
)
print(reply.choices[0].message.content)
Anthropic SDK
import uplinkswitch
client = uplinkswitch.anthropic_client()
msg = client.messages.create(
model="claude-sonnet-5-5",
max_tokens=200,
messages=[{"role": "user", "content": "Say hi in five words."}],
)
print(msg.content[0].text)
Prices, no key needed
import uplinkswitch
for m in uplinkswitch.models():
lp, p = m.get("list_pricing"), m["pricing"]
if lp:
print(f'{m["id"]:<28} ${p["input"]}/${p["output"]} per 1M (list ${lp["input"]}/${lp["output"]})')
uplinkswitch.media_models() returns the image, video and speech models.
Without this package
Set OPENAI_BASE_URL or ANTHROPIC_BASE_URL to https://api.uplinkswitch.com/v1 and use your key. Setup for Claude Code, Cursor, Cline, Roo and OpenCode: uplinkswitch.com/guides.
- Models and prices: uplinkswitch.com/models
- Daily real-model check: uplinkswitch.com/proof
- Contact: hello@uplinkswitch.com
Metadata
Release files for uplinkswitch 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| uplinkswitch-0.1.1.tar.gz | 3.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| uplinkswitch-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.2 kB
Release files / uplinkswitch-0.1.1.tar.gz
| Download URL | uplinkswitch-0.1.1.tar.gz |
|---|---|
| Size | 3.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e7e3208d5bff79a833794749f045818c38df3e7a2b203c38d7ede511182a1d7e
|
|
BLAKE2b-256 checksum How to use checksums |
fa4d4590b9702d80bd46ffdafafb05f1c2d239802f794c60c30c2585f4ce7654
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.9
|
Release files / uplinkswitch-0.1.1-py3-none-any.whl
| Download URL | uplinkswitch-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
02573e6f53a98a51e20778b520705da47a7cd1ee5f807bdc16fb37d52daad521
|
|
BLAKE2b-256 checksum How to use checksums |
213b67d027ef0f11a7d40a3c9e9cf20fd95abbe5f866e97cec81b90a9269d078
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.9
|