Skip to main content

Ryzenth is a flexible Multi-API SDK with built-in support for API key management and database integration.

Project description

Ryzenth Library

Open Source Love Maintenance License PRs Welcome Ryzenth - Version pre-commit.ci status

Downloads API Tests

Image


Ryzenth is this cool Multi-API SDK that's got your back when it comes to handling API keys and hooking up to databases.

It plays nice with both sync and async stuff right off the bat. That means it's perfect for all sorts of things these days, like AI APIs, Telegram bots, regular REST services, and automation tools.

Because it works hand-in-hand with things like httpx and aiohttp, has some neat logging features (you can even get alerts on Telegram if you want), and can store data in databases like MongoDB, Ryzenth is made for developers who want an API client that's easy to work with, can grow as needed, and can be tweaked to fit their needs.

Features

  • Works with both sync and async clients, so whatever you're using, it's got you covered.
  • Makes it easy to handle API Keys right out of the box.
  • Plays well with today's AI stuff like making images, searching, writing text and all that.
  • Uses httpx to keep things moving fast.
  • And more!

Installation

pip3 install ryzenth[fast]

Or Just update from github

pip3 install git+https://github.com/TeamKillerX/Ryzenth.git

Getting Started

New chaining Support

from Ryzenth import RyzenthAuthClient

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)

# Optional Client:
clients = await RyzenthApiClient(tools_name=["ryzenth-v2"], api_key={"ryzenth-v2": [{}]}, rate_limit=100, use_default_headers=True)

Ryzenth API without API Key

  • Support Grok, OpenAI V2, vision, image generation

  • Chat ultimate Supported Models: grok, deepseek-reasoning, evil, unity, sur, rtist, hypnosis-tracy, llama-roblox

from Ryzenth import RyzenthTools

new = RyzenthTools()

# Chat ultimate
response_grok = await new.aio_client.chat.ask_ultimate("what is durov on telegram?", model="grok")

print(await response_grok.to_result())

# OpenAI V2
response_openai = await new.aio_client.chat.ask("What's the capital of Japan?")
print(await response_openai.to_result())

# After close
await new.aio_client.chat.close()

# Image generation
response_content = await new.aio_client.images.create("make a generate cat blue")

await response_content.to_save()

# Upload + Ask
response_see = await new.aio_client.images.create_upload_to_ask("Describe this image:", "/path/to/example.jpg")
await response_see.to_result()

# After close
await new.aio_client.images.close()
  • New Method 🌟
await new.aio_client.images.create()
await new.aio_client.images.create_gemini_and_captions()
await new.aio_client.images.create_gemini_to_edit("add background Lamborghini", "/path/to/example.jpg") # use response.to_buffer_and_list()
await new.aio_client.images.create_upload_to_ask()
await new.aio_client.images.create_multiple()
await new.aio_client.chat.ask()
await new.aio_client.chat.ask_ultimate()

Tool for developers

Custom Name:

  • itzpire (dead)
  • ryzenth
  • ryzenth-v2
  • siputzx
  • fgsi
  • onrender (next auto free month)
  • deepseek
  • cloudflare
  • paxsenix
  • exonity
  • yogik (dead)
  • ytdlpyton
  • openai
  • cohere
  • claude
  • grok
  • alibaba
  • gemini
  • gemini-openai

Example plugins: /dev/modules/paxsenix.py

Share domain module: /Ryzenth/_shared.py#L4

from Ryzenth import RyzenthApiClient

clients = RyzenthApiClient(
    tools_name=["siputzx"],
    api_key={"siputzx": [{"Authorization": f"Bearer test"}]},
    rate_limit=100,
    use_default_headers=True
)
# your logic code here

Async Example (Deprecated)

  • Old endpoint has been deprecated and will no longer be supported.
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 (Deprecated)

  • Old endpoint has been deprecated and will no longer be supported.
from Ryzenth import ApiKeyFrom
from Ryzenth.types import QueryParameter

ryz = ApiKeyFrom(..., is_ok=True)
ryz._sync.send_message(
    "hybrid",
    QueryParameter(
        query="hello world!"
    )
)

Multi-Support

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 Hitchhikers 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)

Tool Developer

~ Artificial Intelligence

How to get api key?

Credits

Web Developers

  • Made with love by xtdevs
  • Got the idea from the early AkenoX API project
  • Big thanks to Google Dev tools for the AI stuff
  • The web scraper is all our own work

Donation

Your gift makes a difference and lets us keep doing what we do

To donate using DANA, send your payment to Bank Jago account number 100201327349.

Thanks a bunch!

License

MIT License © 2025 Ryzenth Developers from TeamKillerX

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ryzenth-2.2.3.tar.gz (33.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ryzenth-2.2.3-py3-none-any.whl (65.9 kB view details)

Uploaded Python 3

File details

Details for the file ryzenth-2.2.3.tar.gz.

File metadata

  • Download URL: ryzenth-2.2.3.tar.gz
  • Upload date:
  • Size: 33.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ryzenth-2.2.3.tar.gz
Algorithm Hash digest
SHA256 c81dfa7a9303ba5c3210cc86ae1c90a50c2098ff188e53ba722cb9a12011d2c5
MD5 145ed0a30b6f9e2598e190f4506a3cf9
BLAKE2b-256 32827629d27a9ce354f581aa7300659ac763e48ff15bae167d8ac7bcd8371193

See more details on using hashes here.

File details

Details for the file ryzenth-2.2.3-py3-none-any.whl.

File metadata

  • Download URL: ryzenth-2.2.3-py3-none-any.whl
  • Upload date:
  • Size: 65.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ryzenth-2.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8768e0f13876470843a71c3ea0730ee1b57bf2a950c65ffdc248133fe7d58aaa
MD5 c0c1b018ab27438bb94e1511a3020313
BLAKE2b-256 3f80bd40830da9aad94c8ea8205caa1a71aa9ed2e32ff909fa6aeca225f81d65

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page