Official Python client library for the Sintelli API
Project description
Sintelli API Client (Python)
Official Python client library for the Sintelli API.
Installation
pip install sintelli_api_client
Usage
from sintelli_api_client import APIClient
client = APIClient(api_key="your_api_key_here")
# Generator returns a stream of responses
for response in client.generate(
prompt="Explain quantum computing in simple terms",
model_id="rand0mdevel0per/l0.sydney@latest"
):
if response is not None:
if isinstance(response[0], tuple) and len(response[0]) == 2:
# Text/Image data and step info
(text, image), (step, tokens) = response
if text:
print(text, end="", flush=True)
elif isinstance(response, tuple) and len(response) == 2:
# Billing information
cost, cost_per_mtk = response
print(f"\n\nCost: {cost}, Cost per million tokens: {cost_per_mtk}")
Documentation
For detailed documentation, please refer to the main repository.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sintelli_api_client-0.1.0.tar.gz.
File metadata
- Download URL: sintelli_api_client-0.1.0.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5cbaf3b0ecb229c4918d609ae08b7cb3b433377eb02a3fa72c838a2040a6ebe
|
|
| MD5 |
3c434ee2c1fa59b86874fcbc1b0ae124
|
|
| BLAKE2b-256 |
6fa5937dd4fab9980818a08f8b26c63d19873515b4714846a078fbedbb54132c
|
File details
Details for the file sintelli_api_client-0.1.0-py3-none-any.whl.
File metadata
- Download URL: sintelli_api_client-0.1.0-py3-none-any.whl
- Upload date:
- Size: 1.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9467708ef403178ca3095dd018aeca4197221446c6c65ccbe8df69e81cd308b0
|
|
| MD5 |
b2234da333fdc9cf1cdf9c258aec78a9
|
|
| BLAKE2b-256 |
0b5e8281f9ddc04651068a717af67f3888bb328d0b7e0292597dba127b69d060
|