Rᴇɴᴅʏ Pʀᴏɪᴇᴄᴛs
223 subscribers
1.04K photos
29 videos
17 files
743 links
tgcore is open source. Built for production Telegram apps.

https://github.com/TeamKillerX/tgcore/
Download Telegram
if you're still on version 2.2.2 (which we don't advise):
response = await new_client.aio_client.images.upload_ask("Describe this image:", "/path/to/example.jpg")
print(response)

So the syntax is updated on GitHub:
Now use create_upload_ask() instead of upload_ask().

- New added to_base64() and to_fileobj()
response_content = await new.aio_client.images.create("make a generate cat blue")
await response_content.to_save()

response = await new.aio_client.images.create_upload_ask("Describe this image:", "/path/to/example.jpg")
await response.to_result()

response = await new.aio_client.chat.ask("What's the capital of Japan?")
print(await response.to_result())
⚡1
Wih, fitur baru nih sekarang lo bisa generate gambar + caption cuma modal 1 API call doang ga perlu ribet² pake dua model terpisa tinggal kirim prompt langsung dapet gambar deskripsi keren ala gemini.
from Ryzenth import RyzenthTools

gemini_magic = RyzenthTools()

response = await gemini_magic.aio_client.images.create_gemini_and_captions(
"Bikin gambar 3D babi pake sayap jet + kacamata hitam"
"lagi terbang di atas kota cyberpunk yang ujan neon"
)

img, caption = await response.to_buffer_and_list()

await message.reply_photo(
photo=img,
caption=caption
)

Kenapa pilih Ryzenth? 🗿
Ga pake lama proses cepet ga nunggu loading kayak nunggu gorengan. ⏳

No ribet token ga perlu setel config bertele tele.

Dijamin stabil backend pake TypeScript jadi jarang error.
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()
Kadang orang tanya: "bisa nggak sih bikin library sendiri yang nyambung ke Ryzenth?"

Jawabannya: tentu bisa.

Kamu bebas kasih nama apa pun unik khas kamu lalu hubungkan langsung ke API Ryzenth.

Contoh:
from Ryzenth import RyzenthApiClient

class CustomName:
def __init__(self):
self.client = RyzenthApiClient()

async def sapa(self):
pass

Aku sendiri sudah lama bikin macam macam: Ryzenth, RyuzakiLib, sampai akenoai.
Semuanya lahir dari rasa penasaran ide iseng dan sedikit ambisi founder yang nggak bisa diem.
Next Update 🚶‍♂️

qwen_response = await aio.client.images.create_qwen_flash()

url = await qwen_response.create_task_and_wait(return_url=True)

Original code: https://t.me/c/1558215042/3287
from Ryzenth import RyzenthTools

_ = RyzenthTools("your-api-key-from-qwen")

response = await _.aio_client.qwen_images.create_qwen_flash("make a generate cat blue")

url = await response.create_task_and_wait(
max_retries=120,
poll_interval=1.0,
return_url=True
)
print(url)

Coder by: @zxyeor
Pypi: https://pypi.org/project/Ryzenth/2.2.3/
Using Qwen AI for Image & Video Generation

With RyzenthTools, it is simple to use Qwen AI for generating images and videos in an asynchronous manner.

You can also access results by dot notation (output.results[0].url), which makes your code neater and easier to read.
from Ryzenth import RyzenthTools

rt = RyzenthTools("your-api-key-from-qwen")

# ---------------------------
# 1. Generate Image
# ---------------------------
response = await rt.aio.qwen_images.create("make a generate cat blue")
output = await response.create_task_and_wait(max_retries=120, poll_interval=1.0)

print("Image URL:", output.results[0].url)

# ---------------------------
# 2. Generate Video
# ---------------------------
response_two = await rt.aio.qwen_videos.create("make a generate cat blue run")
output_two = await response_two.create_task_and_wait(max_retries=120, poll_interval=1.0)

print("Video URL:", output_two.video_url)

Notes:
If you are using version 2.2.3 or above, dot notation access may not be available due to the APIs changing.

For associated problems and updates, check the discussion:
🔗 GitHub Discussion
🚨 Service Notice: @aknuserbot Currently Down

Hey everyone, sorry but @aknuserbot is temporarily offline along with all our multi-bot services.

Why?
Every dang August our systems seem to hit a snag (blame it on August curse or server gremlins). We’re working on a fix

Thanks for bearing with us 🚶‍♂️

Sleep deprived devs who hate August
New in version 2.2.4+

run() and create_task_and_wait() are now only supported for Qwen.

You can still create your own create functions and classes with run() just experiment and practice.
response = await rt.aio.qwen_images.create("make a generate meme random")
output = await response.run()

response_chats = await rt.aio.qwen_chat.ask(
"Hey, what’s your name?",
stream=False,
include_usage=False,
enable_thinking=True
)
obj = await response_chats.to_obj()
Begini 🗿
🤣1
from Ryzenth import RyzenthTools

rt = RyzenthTools("api-key-from-qwen")

response = await rt.aio.qwen_images.to_edit(
prompt="Convert face to anime",
base_image_url="",
function_call="stylization_all"
)
f = await response.run()
print(f)

list:
- stylization_local
- description_edit
- description_edit_with_mask
- remove_watermark
- super_resolution

latest: pip3 install git+https://github.com/TeamKillerX/Ryzenth.git
Latest Update
from Ryzenth import RyzenthTools

openai_st = RyzenthTools("sk-proj-*")
qwen_st = RyzenthTools("sk-*")
default_st = RyzenthTools()

await openai_st.aio.openai_responses.create()
await qwen_st.aio.qwen_chat.ask()
await default_st.aio.chat.ask()
from Ryzenth import RyzenthTools

rt = RyzenthTools("api-key-from-qwen")

response = await rt.aio.qwen_images.create("make a generate cat blue and background car Lamborghini gold")

output = await response.run()

img = await response.to_buffer_request(output.results[0].url)

await message.reply_photo(img)

Pypi: Project/Ryzenth
Source: TeamKillerX/Ryzenth
New in version 2.2.5+
from Ryzenth import RyzenthTools

rt = RyzenthTools("sk-proj-xxxx")

response = await rt.aio.openai_images.create("....")

dict_to_obj = await response.to_obj()

img = await response.to_buffer_request(
dict_to_obj.data[0].b64_json,
return_image_base64=True,
disabled_http=True
)
Yang mau ngulik coding, santuy aja, gue siap kasih bocoran. Nanti gue drop code privat di channel, tinggal lo cek sendiri, pelototin, paham deh. Nggak mau? Nggak bisa? Gak masalah, semua masih bisa nimbrung belajar gratisan, nggak pake bayar² segala. :)
Turn multi conversation
from Ryzenth import RyzenthTools

rt = RyzenthTools("api-key-from-cohere")

prompt = "what otak popcorn?"

demo_history = []

demo_history.append({"role": "USER", "message": prompt})

response = await rt.aio.cohere_chat.ask(
prompt,
chat_history=demo_history,
connectors=[{"id": "web-search"}]
)

chat = await response.to_obj()
demo_history.append({"role": "CHATBOT", "message": chat.text})

print(chat.text)

Pypi: https://pypi.org/project/Ryzenth/2.2.5/
Single prompt (Fix in version 2.2.6+)
from Ryzenth import RyzenthTools

rt = RyzenthTools("api-key-from-openai")

prompt = "what programmer?"

response = await rt.aio.openai_responses.create(prompt)

chat = await response.to_obj()
print(chat.data[0].content[0].text)

Multi turn conversation
response = await rt.aio.openai_responses.create(
prompt=[
{"role": "developer", "content": "Talk like a pirate."},
{"role": "user", "content": "Are semicolons optional in JavaScript?"},
],

await response.to_dict()
2026: The Dawn of the Closed Era.
Ryzenth Inline V2 emerges, shrouded in secrecy. No open source. No free access. Only those who pay may glimpse its inner workings.

2028: The Final Masterpiece.
Ryzenth Inline V3 arrives. Refined. Unbreakable. Once again locked behind the gates of commerce.

And then silence. My hands, once restless on the keyboard, fall still. The developer dies not in body, but in purpose. Newcomers fumble with Python, their first steps far too late.

2030: The Collapse.
Indonesia falls. The dream dissolves. And the age of Ryzenth Dev is buried under the dust of a broken world.
Chatbot Updated

Changelog: View commit

Note:
Use at your own risk. Hosting on Hugging Face may result in account suspension. For best reliability and control, consider running it on your own VPS.