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 (
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
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
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+
You can still create your own create functions and classes with
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()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.gitLatest 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
Pypi: https://pypi.org/project/Ryzenth/2.2.5/
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+)
Multi turn conversation
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.
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.
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.
Manual Task ID
Or https://t.me/c/1558215042/3305
from Ryzenth import RyzenthTools
rt = RyzenthTools()
response = await rt.aio.qwen_images.create("...")
obj = await response.to_obj()
task_id = obj.output.task_id
response_status = (await rt.aio.qwen_images.get_task(task_id)).to_obj()
if response_status.output.task_status == "SUCCEEDED":
print(response_status.output)
Or https://t.me/c/1558215042/3305
Why isn’t Ryzenth Inline V2 open source?
Because it offers far more plugin features compared to regular premium userbots.
If you’re looking for an open-source alternative, you can check out: https://github.com/TeamKillerX/Ryzenth, A multi-API project using only
Thanks for the reminder🎗️
Because it offers far more plugin features compared to regular premium userbots.
If you’re looking for an open-source alternative, you can check out: https://github.com/TeamKillerX/Ryzenth, A multi-API project using only
aiohttp and httpx for features like AI, downloader, etc., without requiring a large list of dependencies.Thanks for the reminder🎗️
Example usage:
- Get your API key: https://aistudio.google.com/apikey
- Pypi Updated: https://pypi.org/project/Ryzenth/2.2.6/
Warning/Error you might encounter:
Cause:
You tried calling
Fix:
Instead of:
Do:
from Ryzenth import RyzenthTools
rt = RyzenthTools("api-key-from-gemini")
results = await rt.aio.gemini_chat.ask([
{"role": "system", "content": "You are a helpful assistant"},
{"role": "user", "content": "What is Gemini?"}
], model="gemini-2.5-flash")
print(await results.to_dict())
- Get your API key: https://aistudio.google.com/apikey
- Pypi Updated: https://pypi.org/project/Ryzenth/2.2.6/
Warning/Error you might encounter:
coroutine 'ResponseResult.to_dict' was never awaited
return await locals()["__aexec"]
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
Cause:
You tried calling
.to_dict() without await. Since .to_dict() is asynchronous, it must be awaited.Fix:
Instead of:
results = (await rt.aio.gemini_chat.ask([...])).to_dict()
print(await results)
Do:
results = await rt.aio.gemini_chat.ask([...])
print(await results.to_dict())
New in version 2.2.7+ 🫥
- Added
- Added
- Added
to_json_dumps()- Added
stream, extra_body, tools, tool_choice, reasoning_effortfrom Ryzenth import RyzenthTools
rt = RyzenthTools("api-key-from-gemini")
results = await rt.aio.gemini_chat.ask([
{"role": "user", "content": "What's the weather like in Chicago today?"}
], tools=[
{
"type": "function",
"function": {
"name": "get_weather",
"description": "Get the current weather in a given location",
"parameters": {
"type": "object",
"properties": {
"location": {
"type": "string",
"description": "The city and state, e.g. Chicago, IL"
},
"unit": {
"type": "string",
"enum": ["celsius", "fahrenheit"]
}
},
"required": ["location"]
}
}
}
],tool_choice="auto")
print(await results.to_json_dumps())
Chatbot Updated
Changelog: View Commit (You forgot to use
Added
Next features (Tomorrow afternoon):
- History limit -> auto cleanup
Changelog: View Commit (You forgot to use
pip3 install motor) 🗿Added
MONGO_URL and GEMINI_API_KEY (Multi turn conversation)Next features (Tomorrow afternoon):
- History limit -> auto cleanup
Kok bisa akun udah 5 tahun masih aman?
Ternyata akun lama gua @zxyeor ini emang kayak anti banned/deak. 😎
- Gak pernah broadcast pake userbot
- Broadcast pun cuma lewat bot
- Gak pernah nyepam PM orang
- Gak pernah join grup random (apalagi grup drama developer yang suka pamer)
- Gua cuma pilih join grup santai kayak Kurigram, Telegram Bot, Telegram Talk
Gua solo dev, owner Ryzenth library semua codingan gua bikin sendiri, gak ada kontribusi orang lain (dan iya… ada aja yang gak ngasih kredit)
Ternyata akun lama gua @zxyeor ini emang kayak anti banned/deak. 😎
- Gak pernah broadcast pake userbot
- Broadcast pun cuma lewat bot
- Gak pernah nyepam PM orang
- Gak pernah join grup random (apalagi grup drama developer yang suka pamer)
- Gua cuma pilih join grup santai kayak Kurigram, Telegram Bot, Telegram Talk
Gua solo dev, owner Ryzenth library semua codingan gua bikin sendiri, gak ada kontribusi orang lain (dan iya… ada aja yang gak ngasih kredit)
Forwarded from Gemini AI Dev [02-05-2025]
Cinematic overhead shot of a person standing with hands in pockets on a brick city sidewalk, wearing a red wine formal blazer. A motion blurred crowd rushes past around them. Moody lighting with a 35mm film look. Shallow depth of field, sharp focus on the person. Portrait orientation 4:3, face unchanged.