MDClaw 多模态

MDClaw OpenClaw API 技能,支持文字转语音(TTS)、文生图(Text to Image)、文生视频(Text to Video)、图生视频(Image to Video)等多模态 AI 能力。通过网关服务统一调用,支持账号注册、图片上传、任务轮询等完整功能。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "MDClaw 多模态" with this command: npx skills add cnskycn/mdclaw-openclaw

MDClaw 多模态 技能

功能描述

通过 MDClaw OpenClaw API 网关访问多模态 AI 能力:

  • 文字转语音 (TTS) - 将文本转换为自然语音,支持多种音色
  • 文生图 (Text to Image) - 根据文字描述生成图片,支持多种宽高比和模型
  • 文生视频 (Text to Video) - 根据文字描述生成视频(异步任务)
  • 图生视频 (Image to Video) - 将图片转换为视频(异步任务)
  • 图片上传 - 上传本地图片获取 URL,用于图生视频
  • 全网搜索 - AI 驱动的全网搜索
  • 天气查询 / 网页总结 - 实用辅助功能

认证方式

API Key 是主要认证方式,通过 X-API-Key 请求头传递。

获取 API Key 的方式:

client = MDClawClient()
result = client.agent_register("用户名", "密码")
api_key = result["result"]["api_key"]

或设置环境变量:

export MDCLAW_API_KEY="你的API Key"

API 参考

请求格式

POST https://backend.appmiaoda.com/projects/supabase287606411725160448/functions/v1/openclaw-skill-gateway

Headers:
  X-API-Key: 你的API Key
  Content-Type: application/json

Body:
  {"skill_id": "技能名称", "parameters": {...}}

技能列表

技能参数说明
text_to_speechtext, model?, voice_id?文字转语音
text_to_imageprompt, model?, aspect_ratio?, n?文生图
text_to_videoprompt, model?, duration?文生视频(异步)
image_to_videoimage, prompt?, model?, duration?图生视频(异步)
video_statustask_id查询视频任务状态
ai_searchquery全网搜索
weather_querycity天气查询
web_summaryurl网页总结

视频生成说明

视频生成是异步操作:

  1. 调用 text_to_videoimage_to_video 获取 task_id
  2. video_status(task_id) 轮询状态
  3. 状态流转: PreparingQueueingProcessingSuccess / Fail

注意: 不要传递 resolution 参数,否则 API 不返回 task_id

使用示例

from mdclaw_client import MDClawClient

# 初始化(从环境变量读取 API Key)
client = MDClawClient()

# 文字转语音
result = client.text_to_speech("你好,这是语音测试")
audio_url = result["result"]["audio_url"]

# 文生图
result = client.text_to_image("一只可爱的橘猫在阳光下伸懒腰", aspect_ratio="9:16")
image_url = result["result"]["image_urls"][0]

# 文生视频(异步)
result = client.text_to_video("一只金毛犬在公园快乐地奔跑", duration=6)
task_id = result["result"]["task_id"]

# 等待视频完成
video_result = client.wait_for_video(task_id)
video_url = video_result["result"]["url"]

# 上传图片并生成视频
upload = client.upload_image("local_image.jpg")
image_url = upload["result"]["url"]
result = client.image_to_video(image_url, "让画面动起来")

错误处理

result = client.text_to_image("prompt")

if not result.get("success"):
    print(f"错误: {result.get('error')}")

依赖

requests>=2.31.0

版本: v2.0.0 更新日期: 2026-03-24

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Huo15 Openclaw Enhance

火一五·克劳德·龙虾增强插件 v5.7.8 — 全面适配 openclaw 2026.4.24:peerDep ^4.24 + build/compat 同步到 4.24 + 14 处 api.on 全部去掉 as any 改成 typed hook(hookName 联合类型 + handler 自动推断 Pl...

Registry SourceRecently Updated
General

Content Trend Analyzer

Aggregates and analyzes content trends across platforms to identify hot topics, user intent, content gaps, and generates data-driven article outlines.

Registry SourceRecently Updated
General

Prompt Debugger

Debug prompts that produce unexpected AI outputs — diagnose failure modes, identify ambiguity and conflicting instructions, test variations, compare model re...

Registry SourceRecently Updated
General

Indie Maker News

独行者 Daily - 变现雷达。读对一条新闻,少走一年弯路。每天5分钟,给创业者装上商业雷达。聚焦一人公司、副业、创业变现资讯,智能分类,行动导向。用户下载即能用,无需本地部署!

Registry SourceRecently Updated