火山引擎SDK,支持大模型文本生成、视觉模型文生图、语音合成、视频生成等API
Project description
vesdk
火山引擎SDK,支持以下功能:
- 大模型文本生成(chat接口)
- 视觉模型文生图接口
- 语音合成模型生成audio接口
- 视觉模式生成视频video接口
- 会话记忆相关接口
- 知识库相关接口
安装
pip install vesdk
使用示例
from vesdk import VolcEngineClient
# 初始化客户端
client = VolcEngineClient(
access_key_id="your_access_key_id",
secret_access_key="your_secret_access_key",
api_key="your_api_key"
)
# 文本生成示例
response = client.text_generation.chat(
model="doubao-1-5-pro-32k-250115",
messages=[
{"role": "user", "content": "你好!"}
]
)
print(response)
文档
请参考官方文档获取更多信息。
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
vesdk-1.0.0.tar.gz
(13.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
vesdk-1.0.0-py3-none-any.whl
(19.9 kB
view details)
File details
Details for the file vesdk-1.0.0.tar.gz.
File metadata
- Download URL: vesdk-1.0.0.tar.gz
- Upload date:
- Size: 13.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af23afa7dd806b5ec11c36e67ad006f1ead965f2ea18ef92fadab0f9ad7ab7e2
|
|
| MD5 |
4b3522585972dc60992ccbebf4e7a901
|
|
| BLAKE2b-256 |
11cd5461d10235e087202e27cf11aa1b51415f3682cd3b06d2c51fe3974ddf34
|
File details
Details for the file vesdk-1.0.0-py3-none-any.whl.
File metadata
- Download URL: vesdk-1.0.0-py3-none-any.whl
- Upload date:
- Size: 19.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3c7a75dd4058fea4d91761e30f7ae08921ca8676a81c73fb8686eec44bb0709
|
|
| MD5 |
70d4b6d9cd80c213b1cca6bd0746a8fc
|
|
| BLAKE2b-256 |
4a08493b3222b3ea91132ed06f23836ce55c803200d0b69f52eef8e499b051dd
|