介绍
- 本插件适配智谱清言的cogvideox视频生成模型API,具有文字生成视频和图文生成视频的功能。
- 使用cogvideox-flash模型免费
安装
-
手动安装
git clone https://github.com/Alpaca4610/nonebot_plugin_cogvideox.git下载完成后在bot项目的pyproject.toml文件手动添加插件:
plugin_dirs = ["xxxxxx","xxxxxx",......,"下载完成的插件路径/nonebot_plugin_cogvideox.git"] -
使用 pip
pip install nonebot-plugin-cogvideox.git
配置文件
在Bot根目录下的.env文件中追加如下内容:
zhipu_key = "" # (必填)智谱清言清影API KEY
video_model: str = "cogvideox-flash" # (可选)视频模型,cogvideox-flash免费
video_quality: str = "quality" # (可选)输出模式,"quality"为质量优先,"speed"为速度优先
video_size: str = "1920x1080" # (可选)视频分辨率,支持最高4K(如: "3840x2160")
video_fps : str = 30 # (可选)帧率,可选为30或60
效果
使用方法
- AI视频 文字提示词(图片)
Release files for nonebot-plugin-cogvideox 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nonebot_plugin_cogvideox-0.1.4.tar.gz | 3.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nonebot_plugin_cogvideox-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.2 kB
Release files / nonebot_plugin_cogvideox-0.1.4.tar.gz
| Download URL | nonebot_plugin_cogvideox-0.1.4.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6dd40574a27b58acb6aa920995b2b659067b864b73efa47ef114f54b1c120f64
|
|
BLAKE2b-256 checksum How to use checksums |
6aa789017ab9dc8bf1f3cc899cd5d6a9c89608398ae54dac85f1d7ae70f2059f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.5 CPython/3.8.0 Windows/10
|
Release files / nonebot_plugin_cogvideox-0.1.4-py3-none-any.whl
| Download URL | nonebot_plugin_cogvideox-0.1.4-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2dbe05582a3c3052df20b4824023562d814b0f43a30a7c8dc6fef4cfc8923324
|
|
BLAKE2b-256 checksum How to use checksums |
6d3a649682d29bb35eda44740cb9964eed3ced9d379868dd609d25a23bf3d8a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.5 CPython/3.8.0 Windows/10
|