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.ai/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.ai/guides.

Metadata

Release files for uplinkswitch 0.1.2

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.2
File Size Uploaded Provenance Actions
uplinkswitch-0.1.2.tar.gz 3.3 kB Without provenance Details for uplinkswitch-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 7.2 kB

Release files / uplinkswitch-0.1.2.tar.gz

Download URL uplinkswitch-0.1.2.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
bf6a42bdd18660b7d95c363a00ab4c3ca62dd66eb37280c549a1bfaa04026d86
BLAKE2b-256 checksum
How to use checksums
ae04b5d92cdeb2be1a8c9502077a0d921c0b8e929bb9498041496dba50470803
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.2-py3-none-any.whl

Download URL uplinkswitch-0.1.2-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
471cd4462db873082855083c277f46a862df00c4e7544c37a28c0f0cd34e9d97
BLAKE2b-256 checksum
How to use checksums
a423ef0ab009e54db5469627ad0c9046f52413fbdf86156907008c48c33feac1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for uplinkswitch 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.

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