Metadata-Version: 2.4
Name: unrestrictable
Version: 0.1.0
Summary: Python client for Unrestrictable: uncensored AI chat, images and video on one prepaid key, through the OpenAI and Anthropic SDKs.
Author-email: Uplink Switch LLC <hello@unrestrictable.ai>
License: MIT
Project-URL: Homepage, https://unrestrictable.ai
Project-URL: Models, https://unrestrictable.ai/models
Project-URL: Media, https://unrestrictable.ai/media
Project-URL: Pricing, https://unrestrictable.ai/pricing
Project-URL: UncensoredLLM, https://uncensoredllm.ai
Project-URL: PentestLLM, https://pentestllm.ai
Project-URL: RelaySwitch, https://relayswitch.io
Project-URL: UplinkSwitch, https://uplinkswitch.ai
Keywords: ai,uncensored,llm,api,openai-compatible,anthropic,image-generation,video-generation
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Libraries
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: openai
Requires-Dist: openai>=1.40; extra == "openai"
Provides-Extra: anthropic
Requires-Dist: anthropic>=0.34; extra == "anthropic"
Provides-Extra: all
Requires-Dist: openai>=1.40; extra == "all"
Requires-Dist: anthropic>=0.34; extra == "all"
Dynamic: license-file

# unrestrictable

Python client for [Unrestrictable](https://unrestrictable.ai): uncensored AI chat, images and video, with no ID, no phone and no prompt logs. Try it free with no sign-up, then pay by card, WeChat Pay or crypto from $10. The API speaks the OpenAI and Anthropic formats, so you keep the official SDKs.

```bash
pip install "unrestrictable[openai]"      # or [anthropic], or [all]
export UNRESTRICTABLE_API_KEY="..."
```

Get a key at [app.unrestrictable.ai/console](https://app.unrestrictable.ai/console). Credit is prepaid from $10, with no subscription.

## OpenAI SDK

```python
import unrestrictable

client = unrestrictable.openai_client()
reply = client.chat.completions.create(
    model="glm-5.3-uncensored",
    messages=[{"role": "user", "content": "Say hi in five words."}],
)
print(reply.choices[0].message.content)
```

## Anthropic SDK

```python
import unrestrictable

client = unrestrictable.anthropic_client()
msg = client.messages.create(
    model="deepseek-v4-pro-uncensored",
    max_tokens=200,
    messages=[{"role": "user", "content": "Say hi in five words."}],
)
print(msg.content[0].text)
```

## No SDK at all

```python
import unrestrictable

print(unrestrictable.chat("glm-5.3-uncensored", "Say hi in five words."))
```

## Prices, no key needed

```python
import unrestrictable

for m in unrestrictable.models():
    p = m["pricing"]
    print(f'{m["id"]:<40} ${p["input"]}/${p["output"]} per 1M tokens')
```

The public catalog at [api.unrestrictable.ai/v1/catalog](https://api.unrestrictable.ai/v1/catalog) carries every model, every price and every endpoint with no key and no rate limit worth worrying about.

## Without this package

Set `OPENAI_BASE_URL` or `ANTHROPIC_BASE_URL` to `https://api.unrestrictable.ai/v1` and use your key.

- Chat in the browser, no key: [unrestrictable.ai/chat](https://unrestrictable.ai/chat)
- Models and prices: [unrestrictable.ai/models](https://unrestrictable.ai/models)
- Images and video: [unrestrictable.ai/media](https://unrestrictable.ai/media)
- Daily real-model check: [unrestrictable.ai/proof](https://unrestrictable.ai/proof)

Run by Uplink Switch LLC.

## Sister sites

The same gateway, sold each on its own key and console:

- [UncensoredLLM](https://uncensoredllm.ai): the uncensored and abliterated builds as an API, priced per token.
- [PentestLLM](https://pentestllm.ai): uncensored AI for hacking and pentesting.
- [RelaySwitch](https://relayswitch.io): one API key for coding agents, paid by card or crypto.
- [UplinkSwitch](https://uplinkswitch.ai): the gateway itself: one key and one base URL for every model.

All of them: [UplinkSwitch](https://uplinkswitch.ai) for every model, [UncensoredLLM](https://uncensoredllm.ai) for abliterated builds, [Unrestrictable](https://unrestrictable.ai) for chat in the browser, [PentestLLM](https://pentestllm.ai) for security work, [RelaySwitch](https://relayswitch.io) for coding agents.
