← 返回 Skills 市场
hy-1990

Dream Avatar

作者 hy · GitHub ↗ · v1.2.1 · MIT-0
cross-platform ✓ 安全检测通过
505
总下载
3
收藏
2
当前安装
7
版本数
在 OpenClaw 中安装
/install dream-avatar
功能描述
Generate digital human talking avatar videos from images and audio using DreamAvatar 3.0 Fast API. Powered by Dreamface - AI tools for everyone. Visit https:...
使用说明 (SKILL.md)

DreamAvatar - Digital Human Video Generator

Generate talking avatar videos from images and audio using DreamAvatar 3.0 Fast API.

Quick Start

1. Get API Key

Before using this skill, you need a DreamAPI API key. Visit https://api.newportai.com/api-reference/get-started to sign up and get your API key.

For more AI tools, please visit: https://tools.dreamfaceapp.com/home

2. Configure API Key

Users must set their DreamAPI key in OpenClaw config:

openclaw config patch --json '{"skills": {"entries": {"dream-avatar": {"env": {"DREAM_API_KEY": "your-api-key-here"}}}}}'

Or add to ~/.openclaw/openclaw.json:

{
  "skills": {
    "entries": {
      "dream-avatar": {
        "env": {
          "DREAM_API_KEY": "your-api-key"
        }
      }
    }
  }
}

3. Generate Video

You can provide input in two ways:

Option A: Local Files (Recommended)

  • image: Path to a local image file (jpg, jpeg, png, webp, gif)
  • audio: Path to a local audio file (mp3, wav, mp4, max 3 minutes)
  • prompt: Description of the expression/behavior
  • resolution (optional): "480p" or "720p", default "480p"

The skill will automatically upload your local files and generate the video.

Option B: Public URLs

  • image: URL to a publicly accessible image (jpg, jpeg, png, webp, gif)
  • audio: URL to a publicly accessible audio (mp3, wav, mp4, max 3 minutes)
  • prompt: Description of the expression/behavior
  • resolution (optional): "480p" or "720p", default "480p"

API Details

1. Get Upload Policy

POST https://api.newportai.com/api/file/v1/get_policy

Headers:

Authorization: Bearer {DREAM_API_KEY}
Content-Type: application/json

Request Body:

{
  "scene": "Dream-CN"
}

Response:

{
  "code": 0,
  "message": "success",
  "data": {
    "accessId": "LTAI5tF1QzxoHGvEcziVACyc",
    "policy": "eyJ0...",
    "signature": "G2TzrhlybemHbfFakysY4j2EI2I=",
    "dir": "tmp/dream/2024-11-19/5369207820989002/",
    "host": "https://...",
    "expire": "1732005888",
    "callback": "eyJ0..."
  }
}

2. Upload File to OSS

Form Data:

Parameter Type Required Description
policy string Yes Upload policy from get_policy API
OSSAccessKeyId string Yes Access ID from get_policy API
success_action_status string Yes Fixed value: "200"
signature string Yes Signature from get_policy API
key string Yes Full path: dir + filename
callback string Yes Callback from get_policy API
file binary Yes File content (must be last parameter)

Response:

{
  "code": 0,
  "message": "success",
  "data": {
    "verifyStatus": false,
    "reqId": "732c9caa-0a2e-4aa1-87d9-52430a8f0314"
  }
}

The uploaded file URL will be: {host}/{key}

3. Generate Video (Image to Video)

POST https://api.newportai.com/api/async/dreamavatar/image_to_video/3.0fast

Headers:

Authorization: Bearer {DREAM_API_KEY}
Content-Type: application/json

Request Body:

{
  "image": "https://.../photo.jpg",
  "audio": "https://.../speech.mp3",
  "prompt": "a person smiling and speaking",
  "resolution": "480p"
}

Response (Task Submission):

{
  "code": 0,
  "message": "success",
  "data": {
    "taskId": "aa4bf173ffd84c2f8734d536d6a7b5a7"
  }
}

4. Polling for Result

Use the taskId to poll for results:

POST https://api.newportai.com/api/getAsyncResult

Request body:

{
  "taskId": "your-task-id"
}

Response When Complete:

{
  "code": 0,
  "message": "success",
  "data": {
    "task": {
      "taskId": "aa4bf173ffd84c2f8734d536d6a7b5a7",
      "status": 3,
      "taskType": "dreamavatar/image_to_video/3.0fast"
    },
    "videos": [
      {
        "videoType": "mp4",
        "videoUrl": "https://...video.mp4"
      }
    ]
  }
}

Implementation Notes

  • Local files: The skill handles upload automatically. Files are uploaded to OSS and URLs are generated.
  • URL input: Image and audio URLs must be publicly accessible (not behind authentication)
  • Audio duration: Cannot exceed 3 minutes
  • The API is async: You must poll for results
  • Poll every 2-3 seconds, with a timeout of ~60 seconds
  • Status codes: 0 = pending, 1 = processing, 2 = processing (not failed!), 3 = completed, 4 = timeout
  • Uploaded file URLs: Only valid for 1 day (Storage service is free but for AI program support only)

Upload Process Flow

Local File → Get Upload Policy → Upload to OSS → Get Public URL → Generate Video

The skill implements this flow automatically when local files are provided:

  1. Call get_policy to receive OSS credentials
  2. Upload image/audio to OSS
  3. Construct public URL from host + key
  4. Call DreamAvatar API with the uploaded URLs
  5. Poll for video completion
  6. Return the final video URL
安全使用建议
This skill appears to do what it says, but before installing: (1) confirm you trust the remote service (api.newportai.com / Dreamface) because local images and audio will be uploaded to third-party storage; (2) be aware the SKILL.md suggests writing your DREAM_API_KEY into OpenClaw config (~/.openclaw/openclaw.json), which persists the secret — consider using a scoped or short-lived key and protect the config file; (3) avoid uploading sensitive or private images/audio (faces, IDs, medical or legal recordings) unless you accept that they will be stored/processed externally; (4) provenance is limited (no homepage/source details), so if you need stronger assurance verify the API endpoints and vendor independently and consider revoking the API key after testing.
功能分析
Type: OpenClaw Skill Name: dream-avatar Version: 1.2.1 The dream-avatar skill is a legitimate integration for the DreamAvatar 3.0 API (newportai.com) used to generate talking avatar videos. The SKILL.md file provides clear instructions for the agent to handle local file uploads to OSS and poll for task completion, which is consistent with the stated purpose. No evidence of data exfiltration, malicious execution, or prompt injection was found.
能力评估
Purpose & Capability
The name/description (DreamAvatar video generation) aligns with the runtime instructions (get upload policy, upload image/audio to OSS, call image_to_video API, poll for result). Required env var DREAM_API_KEY is appropriate. Minor provenance concern: skill source/homepage are missing (no homepage URL and source 'unknown'), so you cannot easily verify the publisher or service beyond the API domains referenced in the SKILL.md.
Instruction Scope
SKILL.md explicitly instructs the agent to upload local image/audio files to the service's OSS (third-party storage) and to poll the remote API for results. It also includes CLI instructions that write the API key into the OpenClaw config (~/.openclaw/openclaw.json). These behaviors are expected for this functionality but have privacy implications (your files and the key are sent/stored externally). The instructions do not ask the agent to read unrelated files or other environment variables.
Install Mechanism
This is an instruction-only skill with no install spec and no bundled code, so nothing is written or executed on install by the skill itself. That is the lowest-risk install profile.
Credentials
Only DREAM_API_KEY is required and declared as the primary credential — this matches the documented API usage. Be aware the SKILL.md recommends storing the key in OpenClaw config or ~/.openclaw/openclaw.json, which persists the secret on disk; consider the security of that storage and prefer short-lived or scoped keys if possible.
Persistence & Privilege
always is false and the skill does not request elevated persistent privileges or to modify other skills or system-wide settings beyond storing its own env entry. Autonomous invocation is allowed (platform default) but not a new privilege introduced by this skill.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install dream-avatar
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /dream-avatar 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.2.1
- Added .clawhub/origin.json to the repository. - SKILL.md updated to include an additional resource link to Dreamface AI tools. - Minor text edits for clarity in the quick start and API sections. - No changes to skill functionality or interface.
v1.2.0
Fixed polling logic - status 2 is intermediate, not failed. Added Dreamface promotion.
v1.1.0
Support local file upload - automatically uploads images and audio to OSS before generating video
v1.0.3
- Added primaryEnv metadata field for DREAM_API_KEY environment variable. - No changes to core functionality or documentation content.
v1.0.2
- Added metadata indicating DREAM_API_KEY is a required environment variable. - No other user-facing changes.
v1.0.1
- Added metadata with an emoji identifier for the skill. - Shortened the description for clarity and conciseness. - Added two metadata/configuration files: .clawhub/origin.json and _meta.json.
v1.0.0
🎉 Initial release! Generate digital human talking avatar videos from images + audio using DreamAvatar 3.0 Fast API. 📌 API Key 获取: https://api.newportai.com/api-reference/get-started Features: - Image + Audio → Talking Avatar Video - Supports multiple languages - Mirrors facial expressions and vocal tone
元数据
Slug dream-avatar
版本 1.2.1
许可证 MIT-0
累计安装 2
当前安装数 2
历史版本数 7
常见问题

Dream Avatar 是什么?

Generate digital human talking avatar videos from images and audio using DreamAvatar 3.0 Fast API. Powered by Dreamface - AI tools for everyone. Visit https:... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 505 次。

如何安装 Dream Avatar?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install dream-avatar」即可一键安装,无需额外配置。

Dream Avatar 是免费的吗?

是的,Dream Avatar 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Dream Avatar 支持哪些平台?

Dream Avatar 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Dream Avatar?

由 hy(@hy-1990)开发并维护,当前版本 v1.2.1。

💬 留言讨论