Ryzenth is a flexible Multi-API SDK with built-in support for API key management and database integration.
Project description
Ryzenth Library
Ryzenth is a powerful Multi-API SDK designed to seamlessly handle API keys and database connections with ease.
It provides native support for both synchronous and asynchronous operations, making it ideal for modern applications including AI APIs, Telegram bots, REST services, and automation tools.
Built with httpx and aiohttp integration, comprehensive logging features (including Telegram alerts), and database storage capabilities like MongoDB, Ryzenth empowers developers with a flexible, scalable, and customizable API client solution.
๐จ Important Notes
HTTP 403 Error Fix
If you're encountering 403 Forbidden errors, ensure you're setting proper headers:
# โ
CORRECT - Always use proper headers
from Ryzenth import RyzenthApiClient
clients = RyzenthApiClient(
tools_name=["your-tool"],
api_key={"your-tool": [{"Authorization": "Bearer your-token"}]},
rate_limit=100,
use_default_headers=True # ๐ฅ IMPORTANT: Set this to True
)
# โ
CORRECT - Custom headers example
clients = RyzenthApiClient(
tools_name=["your-tool"],
api_key={"your-tool": [{
"Authorization": "Bearer your-token",
"Accept": "application/json",
"Content-Type": "application/json"
}]},
rate_limit=100,
use_default_headers=True
)
# โ WRONG - Missing headers will cause 403 errors
clients = RyzenthApiClient(
tools_name=["your-tool"],
api_key={"your-tool": [{}]}, # Empty headers
use_default_headers=False # No default headers
)
Required Headers Format
The library automatically adds these headers when use_default_headers=True:
User-Agent: Ryzenth/Python v-{version}Accept: application/jsonContent-Type: application/json
Javascript Your own API
const ua = req.headers['User-Agent'];
const gh = req.headers['X-Github-Source'];
const ghVersion = req.headers['X-Ryzenth-Version'];
console.log(gh) // check valid whitelist TeamKillerX/Ryzenth
โจ Features
- ๐ Dual Mode Support: Works with both
syncandasyncclients - ๐ Smart API Key Management: Built-in API key handling and rotation
- ๐ค AI-Ready: Seamless integration with modern AI services (image generation, text processing, etc.)
- โก High Performance: Built on
httpxfor optimal speed and reliability - ๐ Comprehensive Logging: Built-in logging with optional Telegram notifications
- ๐ก๏ธ Error Handling: Robust error handling with automatic retries
- ๐ฏ Context Managers: Proper resource management with async context support
- ๐ฆ Database Integration: MongoDB and other database connectors included
๐ฆ Installation
Standard Installation
pip3 install ryzenth[fast]
Development Installation (Latest Features)
pip3 install git+https://github.com/TeamKillerX/Ryzenth.git
๐ Quick Start
๐ New Chaining API Support
Modern fluent API with method chaining:
from Ryzenth import RyzenthAuthClient
# ๐ Fluent API with chaining
response = await RyzenthAuthClient()\
.with_credentials("68750d3b92828xxxxxxxx", "sk-ryzenth-*")\
.use_tool("instatiktok")\
.set_parameter("&url={url}&platform=facebook")\
.retry(2)\
.cache(True)\
.timeout(10)\
.execute()
print(response)
# ๐ง Traditional client approach
clients = await RyzenthApiClient(
tools_name=["ryzenth-v2"],
api_key={"ryzenth-v2": [{}]},
rate_limit=100,
use_default_headers=True
)
๐ค AI Features (No API Key Required)
Supports multiple AI models: grok, deepseek-reasoning, evil, unity, sur, rtist, hypnosis-tracy, llama-roblox
from Ryzenth import RyzenthTools
rt = RyzenthTools()
# ๐ฌ Chat Ultimate - Multiple AI Models
response_grok = await rt.aio.chat.ask_ultimate(
"What is Durov's role in Telegram?",
model="grok"
)
print(await response_grok.to_result())
# ๐ฏ OpenAI V2 Integration
response_openai = await rt.aio.chat.ask("What's the capital of Japan?")
print(await response_openai.to_result())
# ๐จ Image Generation
response_content = await rt.aio.images.create("generate a blue cat")
await response_content.to_save()
# ๐ Image Analysis with Upload
response_see = await rt.aio.images.create_upload_to_ask(
"Describe this image:",
"/path/to/example.jpg"
)
result = await response_see.to_result()
# ๐งน Proper cleanup
await rt.aio.chat.close()
await rt.aio_client.images.close()
๐ฅ Advanced AI Features
# ๐ผ๏ธ Multiple image operations
await rt.aio.images.create()
await rt.aio.images.create_gemini_and_captions()
await rt.aio_client.images.create_gemini_to_edit(
"add Lamborghini background",
"/path/to/example.jpg"
) # Use response.to_buffer_and_list()
await rt.aio.images.create_upload_to_ask()
await rt.aio.images.create_multiple()
# ๐ญ Chat operations
await rt.aio.chat.ask()
await rt.aio.chat.ask_ultimate()
๐ฌ Image & Video Generation with Qwen AI
Generate high-quality images and videos using Qwen AI with dot notation access:
from Ryzenth import RyzenthTools
rt = RyzenthTools("your-qwen-api-key")
# ๐ผ๏ธ Generate Image
response = await rt.aio.qwen_images.create("generate a blue cat running")
output = await response.create_task_and_wait(max_retries=120, poll_interval=1.0)
print("๐จ Image URL:", output.results[0].url)
# ๐ฌ Generate Video
response_video = await rt.aio.qwen_videos.create("blue cat running in slow motion")
output_video = await response_video.create_task_and_wait(max_retries=120, poll_interval=1.0)
print("๐ฅ Video URL:", output_video.video_url)
โ ๏ธ Version Note: Dot notation access may be limited in version
2.2.3+due to API changes. Check our GitHub Discussions for updates.
๐ ๏ธ Developer Tools & Supported APIs
Pricing & Free Tier (Ryzenth)
| Endpoints | Free | Description |
|---|---|---|
kimi-latest |
โ Free | Kimi AI |
openai-v2/oss |
โ Free | GPT oss |
ultimate-chat |
โ Free | Custom Model |
openai-v2 |
โ Free | openAI |
openai-v2/image-vision |
โ Free | openAI image vision |
gemini-latest/imagen/edit |
โ Free | Gemini imagen edit |
gemini-latest/imagen |
โ Free | Gemini imagen |
tools/generate-image |
โ Free | Tool Generate image |
Available API Tools
Choose from our extensive list of supported APIs:
| Tool Name | Status | Description |
|---|---|---|
itzpire |
โ Dead | Legacy API service |
ryzenth |
โ Active | Main Ryzenth API |
ryzenth-v2 |
โ Active | Enhanced Ryzenth API |
siputzx |
โ Active (Auto block) | Community API |
fgsi |
โ Active | FGSI API Service |
onrender |
โ Active | Render-based API |
deepseek |
โ Active | DeepSeek AI API |
cloudflare |
โ Active | Cloudflare Workers API |
paxsenix |
โ Active | PaxSenix API |
exonity |
โ Active | Exonity API |
yogik |
โ Dead | Legacy API |
ytdlpyton |
โ Active | YouTube downloader |
openai |
โ Active | OpenAI API |
cohere |
โ Active | Cohere AI API |
claude |
โ Active | Anthropic Claude API |
grok |
โ Active | Grok AI API |
alibaba |
โ Active | Alibaba Qwen API |
gemini |
โ Active | Google Gemini API |
gemini-openai |
โ Active | Gemini OpenAI Compatible |
๐ง Custom API Implementation
from Ryzenth import RyzenthApiClient
# ๐ฏ Example with SiputZX API
clients = RyzenthApiClient(
tools_name=["siputzx"],
api_key={"siputzx": [{"Authorization": "Bearer test"}]},
rate_limit=100,
use_default_headers=True # ๐ฅ Always enable for 403 fix
)
# Your implementation logic here
response = await clients.get(
tool="siputzx",
path="/api/endpoint",
params={"query": "your-query"}
)
๐ Resources:
- Example plugins:
/dev/modules/paxsenix.py- Shared domains:
/Ryzenth/_shared.py#L4
๐๏ธ Legacy Examples (Deprecated)
Async Example
from Ryzenth import ApiKeyFrom
from Ryzenth.types import QueryParameter
ryz = ApiKeyFrom(..., is_ok=True)
await ryz.aio.send_message(
"hybrid",
QueryParameter(query="hello world!")
)
Sync Example
from Ryzenth import ApiKeyFrom
from Ryzenth.types import QueryParameter
ryz = ApiKeyFrom(..., is_ok=True)
ryz._sync.send_message(
"hybrid",
QueryParameter(query="hello world!")
)
๐ค Multi-Platform AI Support
Grok AI Integration
from Ryzenth.tool import GrokClient
g = GrokClient(api_key="sk-grok-xxxx")
response = await g.chat_completions(
messages=[
{
"role": "system",
"content": "You are Grok, a chatbot inspired by the Hitchhiker's Guide to the Galaxy."
},
{
"role": "user",
"content": "What is the meaning of life, the universe, and everything?"
}
],
model="grok-3-mini-latest",
reasoning_effort="low",
temperature=0.7,
timeout=30
)
print(response)
๐ API Keys & Documentation
๐ค AI Platform Documentation
- OpenAI: Platform Documentation
- Google Gemini: AI Development Guide
- Cohere: API Documentation
- Alibaba Qwen: Model Studio Guide
- Anthropic Claude: API Reference
- Grok AI: X.AI Documentation
๐ Get Your API Keys
| Platform | Get API Key | Official Website |
|---|---|---|
| Ryzenth | Get Key | Official Ryzenth Portal |
| OpenAI | Get Key | OpenAI Platform |
| Cohere | Get Key | Cohere Dashboard |
| Alibaba | Get Key | Alibaba Console |
| Claude | Get Key | Anthropic Console |
| Grok | Get Key | X.AI Console |
๐ API Provider Partners (NB Friends)
- PaxSenix - PaxSenix
- Itzpire - Itzpire
- Ytdlpyton - Unesa
- Exonity - Exonity
- Yogik - Yogik (Legacy)
- Siputzx - Siputzx
- FGSI - FGSI
๐ Credits Developer
- xtdevs - Lead Developer & Creator
- X-API-JS - Ryzenth DLR JavaScript Solo Dev
- Ryzenth V2 - Ryzenth TypeScript Solo Dev
- TeamKillerX - Solo Dev
- AkenoX Project - Original inspiration and foundation
- Google Developer Tools - AI integration support
- Open Source Community - Contributions and feedback
๐ Support Development
Your support helps us continue building and maintaining this project!
๐ฐ Donation Options
- Bank Transfer (DANA): Send to Bank Jago
100201327349 - Cryptocurrency: Contact us for wallet addresses
- GitHub Sponsors: Sponsor on GitHub
Every contribution, no matter the size, makes a difference! ๐
๐ License
MIT License ยฉ 2025 Ryzenth Developers from TeamKillerX
This project is open source and available under the MIT License.
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 ryzenth-2.2.9.tar.gz.
File metadata
- Download URL: ryzenth-2.2.9.tar.gz
- Upload date:
- Size: 40.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd0efb28268ee503061a2ff092b9402f3d61fbdd104880593c659d595200867f
|
|
| MD5 |
58bdf9c10df1d10d917c27042297390e
|
|
| BLAKE2b-256 |
23916502ac152dd0ca7ab0f25c6922ee46c4e6b24cbb43dd54faf62aff27057f
|
File details
Details for the file ryzenth-2.2.9-py3-none-any.whl.
File metadata
- Download URL: ryzenth-2.2.9-py3-none-any.whl
- Upload date:
- Size: 80.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffe3a1135fc76a6cd0e735babca24ea208dca38226da9d17ce31eccd26692f28
|
|
| MD5 |
9db9b0c0a71c311b9adb9cd9e6cc0760
|
|
| BLAKE2b-256 |
2fb18359417868e5235633dba463519209e17bd129f3d5098ea7ae91f45fb8bb
|