Skip to main content

图片转视频 MCP Server - 基于百度千帆 viduq2-turbo 模型

Project description

img-to-video-dkx

图片转视频 MCP Server - 基于百度千帆 viduq2-turbo 模型

功能特性

  • MCP Protocol: 完全兼容 Model Context Protocol
  • 图片转视频: 使用百度千帆 viduq2-turbo 模型
  • OSS 集成: 自动上传图片到阿里云 OSS
  • 异步处理: 后台生成视频,任务状态追踪

安装

# 从 PyPI 安装
pip install img-to-video-dkx

# 从源码安装
pip install .

快速开始

配置环境变量

# 百度千帆 API
export QIANFAN_API_KEY=your_api_key
export QIANFAN_APPID=your_appid

# 阿里云 OSS
export ALIYUN_ACCESS_KEY_ID=your_access_key
export ALIYUN_ACCESS_KEY_SECRET=your_access_secret
export ALIYUN_OSS_ENDPOINT=oss-cn-hangzhou.aliyuncs.com
export ALIYUN_OSS_BUCKET=your_bucket_name

启动服务

# 使用命令行入口
img-to-video-mcp

# 或直接运行
python -m img_to_video_dkx.server

MCP Tools

generate_video_from_image

将静态图片转换为动态视频。

参数 类型 默认值 说明
image_base64 str 必需 图片的 Base64 编码
prompt str "嘴巴动起来" 视频动作描述
duration int 4 视频时长(秒)
resolution str "1080p" 分辨率
movement_amplitude str "auto" 运动幅度

check_video_status

查询视频生成任务状态。

参数 类型 说明
task_id str 任务 ID

数据流

MCP 请求 → 图片上传 OSS → viduq2-turbo API → 返回视频 URL

License

MIT

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

img_to_video_dkx-0.1.3.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

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

img_to_video_dkx-0.1.3-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file img_to_video_dkx-0.1.3.tar.gz.

File metadata

  • Download URL: img_to_video_dkx-0.1.3.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.20

File hashes

Hashes for img_to_video_dkx-0.1.3.tar.gz
Algorithm Hash digest
SHA256 1ec199eaaf828c446c79c93f6f0c2dfbb17b986dd680bbb9b664e2d90d658de1
MD5 8efcfb817c81097058689402f6f8caa9
BLAKE2b-256 88e2ab10517fe9e51f54bc3e31ddf6e0503ad79ca85adac252de853ea2e4391c

See more details on using hashes here.

File details

Details for the file img_to_video_dkx-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for img_to_video_dkx-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b2efa35cc616ed7df41c061fb97d784623e4233225d7283a2931438c90c7e7f1
MD5 610b41a506d9582713dd6a7caca02008
BLAKE2b-256 15a8d911ee3680015da440b5dfa90165fa3e2bd9627e6571c1bd9f4a3ea96268

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