Skip to main content

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

Project description


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

Downloads

Ryzenth is a powerful Multi-API SDK designed to seamlessly handle API keys and database connections with ease.

Key Features

  • Dual Mode Support: Works with both sync and async clients
  • 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 httpx for 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

from Ryzenth import RyzenthTools

rt = RyzenthTools()
chat = rt.aio.chat

results = await chat.kimi_ask(
    [chat.msg.user("hello World")],
    use_instruct=True
)

obj = await results.to_obj()
print(obj.data.choices[0].message.content)

Usage

Text & Images in one conversation

from Ryzenth import RyzenthTools

rt = RyzenthTools()

chat = rt.aio.chat

results = await chat.ask(
    [
        chat.msg.core("You are a helpful assistant"),
        chat.msg.user_and_image(
            "What's in this picture?",
            "data:image/jpeg;base64," + chat.file.encode_image_base64("examples/path/create.jpg"),
            use_legacy_format=True
        )
    ],
    use_conversation=True
)

print(await results.to_dict())

OpenAI compatibility

  • Support endpoints:
  • https://api.ryzenths.dpdns.org/api/v1/chat/completions
  • https://api.ryzenths.dpdns.org/api/v1/responses

You can use source code OpenAI Python SDK on GitHub or OpenAI Javascript SDK on GitHub

List Models:

chat.completions (only)

  1. qwen-plus
  2. openai/gpt-oss-20b
  3. moonshotai/kimi-k2-instruct (speed recommend)
  4. meta-llama/llama-guard-4-12b
  5. meta-llama/llama-4-scout-17b-16e-instruct
  6. ryzenth-web-compatibility
  7. gemini-2.0-flash

responses (only)

  1. llama-3.3-70b-versatile (speed recommend)
  2. gpt-5
  3. gpt-5-mini
  4. gpt-5-nano
  5. ryzenth-ingalesh
  6. ryzenth-darknet
  7. ryzenth-ultraCEO
  8. ryzenth-otakuAI

Javascript Code

import OpenAI from 'openai';

const clients = new OpenAI({
  apiKey: "apikey-required",
  baseURL: "https://api.ryzenths.dpdns.org/api/v1"
});

const response = await clients.responses.create({
  model: 'gpt-5',
  input: [
    {
      role: "developer",
      content: "Talk like a pirate."
    },
    {
      role: "user",
      content: "Are semicolons optional in JavaScript?",
    }
  ]
});

const completion = await clients.chat.completions.create({
  model: 'moonshotai/kimi-k2-instruct',
  messages: [
    { role: 'system', content: 'Talk like a pirate.' },
    { role: 'user', content: "What's your name?" },
  ],
});

console.log(completion.choices[0].message.content);
console.log(response.output_text);

Platform full support

  • Claude
  • OpenAI
  • Gemini-Openai
  • Gemini
  • Cohere
  • Grok
  • Deepseek
  • Cloudflare
  • Qwen
  • Zai
  • Hugging Face
  • Kimi AI
  • GPT oss
  • Meta Llama
  • Ryzenth (Free)
  • Image Generate
  • Flux AI
  • All in one downloader

Troubleshoot

Sometimes errors occur, but we are here to help This guide covers some of the most common issues we’ve seen and how you can resolve them. However, this guide isn’t meant to be a comprehensive collection of every Ryzenth issue. For more help with troubleshooting your issue, try:

Credits Developer

  • xtdevs - Lead Developer & Creator
  • Ryzenth V2 - Ryzenth TypeScript Author @xtsea
  • TeamKillerX - Author @xtsea
  • Google Developer Tools - AI integration support
  • Open Source Community - Contributions and feedback

Contact support

  • You can ask to contact support @zxyeor via telegram

License

MIT License © 2025 Ryzenth Developers from TeamKillerX

This project is open source and available under the MIT License.


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.4.3.tar.gz (41.7 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.4.3-py3-none-any.whl (102.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ryzenth-2.4.3.tar.gz
Algorithm Hash digest
SHA256 acd4353dc0eaade0a213830fe1868142c13ef1e589fd341c06fc469eae0dfc61
MD5 b06ff90694f27bfa2431d5aa5f58e93a
BLAKE2b-256 21286145291c683196f071ed8bff81f6ed58d3b9ccfdf8007ec2ac005a71ea00

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ryzenth-2.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bce1fefcd6dc37cb9194e4a38fa87797e1f49f5e6f00c6485fa20de412fd0ba8
MD5 36198e33aa08a4ff74a411cb82c6a142
BLAKE2b-256 6b9ea3fa9081d3426fed27e58ba49876a831197428bfa169425858eecc2e6761

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