TajikGPT Python SDK
Official Python client for TajikGPT API.
Installation
pip install tajikgpt
Quick Start
from tajikgpt import TajikGPT
client = TajikGPT(api_key="sk-tj-your-key")
# Chat
response = client.chat.completions.create(
model="tj-1.0",
messages=[{"role": "user", "content": "Привет!"}]
)
print(response.choices[0].message.content)
# Image generation
image = client.images.generate(
prompt="Sunset over Tajikistan mountains",
image_model="tj-image-1.0"
)
print(image.url)
# Video generation (Plus/Pro only)
video = client.video.generate(
prompt="A beautiful mountain landscape timelapse"
)
print(video.url)
Models
| Model | Description | Tier |
|---|---|---|
tj-0.5 |
Legacy | Free |
tj-1.0-mini |
Fast, simple tasks | Free |
tj-1.0 |
Balanced speed & quality | Free |
tj-1.0-pro |
Smart + Vision, Web Search | Plus+ |
tj-1.0-ultra |
Top model | Plus+ |
tj-coder |
Code assistant | Free |
tj-image-1.0 |
High quality images | All |
tj-image-0.5 |
Legacy images | All |
tj-video-1.0 |
Video generation (Alpha) | Plus/Pro |
API Endpoints
| Method | Endpoint | Description |
|---|---|---|
| POST | /tj/chat |
Chat with AI |
| POST | /tj/images/generate |
Generate images |
| POST | /tj/video/generate |
Generate video |
| GET | /tj/models |
List models |
| GET | /tj/models/{id} |
Get model info |
Error Handling
from tajikgpt import TajikGPT, AuthenticationError, RateLimitError
client = TajikGPT(api_key="sk-tj-your-key")
try:
response = client.chat.completions.create(
model="tj-1.0",
messages=[{"role": "user", "content": "Hello"}]
)
except AuthenticationError:
print("Invalid API key")
except RateLimitError:
print("Too many requests, wait and retry")
Get API Key
- Go to tajikgpt.com/pricing
- Subscribe to Pro plan
- Find your API key in profile
Links
Metadata
Release files for tajikgpt 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tajikgpt-1.2.0.tar.gz | 4.4 kB | Without provenance | Details for tajikgpt-1.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tajikgpt-1.2.0-py3-none-any.whl | Python 3 | none | any | Details for tajikgpt-1.2.0-py3-none-any.whl |
Total release size: 9.4 kB
Release files / tajikgpt-1.2.0.tar.gz
| Download URL | tajikgpt-1.2.0.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c4895575e96edc9d5246651d36bb999c8ef0f56ed3a561863125fb4342fb732
|
|
BLAKE2b-256 checksum How to use checksums |
e60830604282e97d86010f79b228dfda1f335b6ccd6eaa23c34ad226b74bffde
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / tajikgpt-1.2.0-py3-none-any.whl
| Download URL | tajikgpt-1.2.0-py3-none-any.whl |
|---|---|
| Size | 5.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5d17aa34be59bd3324cc925570b48243854da02ba693f2a95fbbffe69c04162f
|
|
BLAKE2b-256 checksum How to use checksums |
95fd37834235fcccc25ac5b816c284aef384483cae295d383571b23a7c79c994
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for tajikgpt 1.2.0
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.