Skip to main content

Uncensored AI Python Package

A lightweight Python client for the Uncensored AI API

Features

  • Chat completions - with streaming support
  • Fine-tuning
  • Model listing
  • Image generation
  • CLI for easy account management
  • Both global and client-based usage patterns

Installation

pip install uncensored

Usage

import uncensored

# Global usage
uncensored.api_key = "YOUR-KEY-HERE"

response = uncensored.ChatCompletion.create(
    model="model-t",
    messages=[{"role": "user", "content": "Say wasa"}],
    stream=True,
)

for chunk in response:
    print(chunk)

# OR using an optional client-like usage
client = uncensored.Client(api_key="YOUR-KEY-HERE")
models = client.list_models()
print(models)

CLI

# Log in (fetch/store API key)
uncensored login

# Check your usage/balance
uncensored balance

# List available models
uncensored list-models

contact: devs@uncensored.com

by uncensored.com

Release files for uncensored 0.0.1

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

Source distribution (sdist)

Source distribution for uncensored 0.0.1
File Size Uploaded
uncensored-0.0.1.tar.gz 7.9 kB Details

Built distribution (wheel)

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

Total release size: 18.5 kB

Release files / uncensored-0.0.1.tar.gz

Download URL uncensored-0.0.1.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a239b648fbe37cabc54c8415629b6c80dd2178f65282dd083740f49adb397f4e
BLAKE2b-256 checksum
How to use checksums
a486226673536f7b83b473c46a56b70fec6855fcdca7b9e1fe3fb423db00a014
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.6

Release files / uncensored-0.0.1-py3-none-any.whl

Download URL uncensored-0.0.1-py3-none-any.whl
Size 10.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
09849bfb12f8f85378563f59884e5dd2f07d554c4fb725cdf3cfe6e42d7c1556
BLAKE2b-256 checksum
How to use checksums
2d48875abec7a24ca2bb45ff7f81471b294de56d962ed2ee3155955179c8d984
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.10.6

Release history Release notifications | RSS feed

This release

0.0.1 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