← Back to Skills Marketplace
hy-1990

Dream Avatar

by hy · GitHub ↗ · v1.2.1 · MIT-0
cross-platform ✓ Security Clean
505
Downloads
3
Stars
2
Active Installs
7
Versions
Install in OpenClaw
/install dream-avatar
Description
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:...
README (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
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install dream-avatar
  3. After installation, invoke the skill by name or use /dream-avatar
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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
Metadata
Slug dream-avatar
Version 1.2.1
License MIT-0
All-time Installs 2
Active Installs 2
Total Versions 7
Frequently Asked Questions

What is 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:... It is an AI Agent Skill for Claude Code / OpenClaw, with 505 downloads so far.

How do I install Dream Avatar?

Run "/install dream-avatar" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Dream Avatar free?

Yes, Dream Avatar is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Dream Avatar support?

Dream Avatar is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Dream Avatar?

It is built and maintained by hy (@hy-1990); the current version is v1.2.1.

💬 Comments