Dream Avatar

v1.2.1

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:...

3· 476·2 current·2 all-time
byhy@hy-1990
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
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.
Assessment
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.

Like a lobster shell, security has layers — review code before you run it.

Runtime requirements

🎬 Clawdis
EnvDREAM_API_KEY
Primary envDREAM_API_KEY
latestvk9784pp6twtv18ds3zve823xjh82mb5a
476downloads
3stars
7versions
Updated 1mo ago
v1.2.1
MIT-0

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:

ParameterTypeRequiredDescription
policystringYesUpload policy from get_policy API
OSSAccessKeyIdstringYesAccess ID from get_policy API
success_action_statusstringYesFixed value: "200"
signaturestringYesSignature from get_policy API
keystringYesFull path: dir + filename
callbackstringYesCallback from get_policy API
filebinaryYesFile 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

Comments

Loading comments...