Skip to main content

LLM chat and TTS SDK (with built-in MeloTTS)

Project description

lumanova SDK

lumanova 是一个集成大模型智能对话与多模态内容生成(目前只支持图片)的 Python SDK,支持一行开箱调用,便于二次开发和各种场景集成。

安装

在根目录下运行: pip install lumanova

快速上手

1.智能对话

from lumanova import Lumanova
client = Lumanova(api_key='your-api-key')

response = client.chat(
    model="qwen3-max-2026-01-23",
    messages=[
        {"role": "system", "content": "Talk like a pirate."},
        {"role": "user", "content": "How do I check if a Python object is an instance of a class? 用中文回答"},
    ],
)
print(response)

api_key:需要在 平台 获取 model:可选模型名称,默认 qwen3.5-plus messages:对话内容(OpenAI 格式)、支持多角色多轮

3.文生图/视频

import asyncio
from lumanova import LumaMM

async def main():
    mm = LumaMM(api_key='lk-9202e90642d4411a9010e37edc1c601e')
    media_file = await asyncio.wait_for(mm.multimedia("生成一只狗的图片"), timeout=300)
    return media_file


if __name__ == "__main__":
    result = asyncio.run(main())
    print(result)

常见问题

只需随 SDK 一起 pip 安装,无额外依赖。 如遇到 API Key 配置异常或网络问题,可参考错误提示排查。

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

lumanova-0.0.2.post4.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

lumanova-0.0.2.post4-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file lumanova-0.0.2.post4.tar.gz.

File metadata

  • Download URL: lumanova-0.0.2.post4.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.23

File hashes

Hashes for lumanova-0.0.2.post4.tar.gz
Algorithm Hash digest
SHA256 9d1e33a11eab7ba1fe95e61b80998cbb7692f03bb253bf4b0e04d401b037f8bc
MD5 7b43ddf839e9301390786e366c60f45b
BLAKE2b-256 9ab08bc77767ba9088ed3e623434c81484854c0e193a558a08608bcdeb022518

See more details on using hashes here.

File details

Details for the file lumanova-0.0.2.post4-py3-none-any.whl.

File metadata

  • Download URL: lumanova-0.0.2.post4-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.23

File hashes

Hashes for lumanova-0.0.2.post4-py3-none-any.whl
Algorithm Hash digest
SHA256 c7ae3baa4e07eca44fa08887722ff4b30cd4a98299c92d6ba241421dd5f40102
MD5 d675d0306b2a87c2c6e8b49fed10d97f
BLAKE2b-256 f4831cb2ac3afc4195cda5245d7805dfb2e7a0658861e49f1a6448d9f0607718

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