Skip to main content

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. New accounts get $1 of free credit.

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.

Metadata

Release files for uplinkswitch 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for uplinkswitch 0.1.0
File Size Uploaded
uplinkswitch-0.1.0.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for uplinkswitch 0.1.0
File Interpreter ABI Platform
uplinkswitch-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.2 kB

Release files / uplinkswitch-0.1.0.tar.gz

Download URL uplinkswitch-0.1.0.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
ca1570c7c6703fb210bef58b44d2f595f7b6c6e073187682fa064fca59909714
BLAKE2b-256 checksum
How to use checksums
f7d44b8c59d550047ab316a49bf803e22e1ac4fe1528a3a0d0a2da15849ca1d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / uplinkswitch-0.1.0-py3-none-any.whl

Download URL uplinkswitch-0.1.0-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
55c7847447d43ca19197e0e11594bd64317203e731b53b8fdfb4d8825a72b318
BLAKE2b-256 checksum
How to use checksums
165a453173b1237560f03eceb15b26d8036363f4127892121e35f4459c743f45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release history Release notifications | RSS feed

0.1.1

2 release files

This release

0.1.0 This release

2 release 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