360 Secure SkillHub
360 安全技能中心

Dream Head Tail to Video

基于 Dreamface 提供的 Wan2.1 首尾帧转视频接口:提交文本提示词与首帧、尾帧图片地址,本地文件需先获取上传策略并上传,再异步轮询结果,输出 4 秒视频,可选 480p 或 720p 分辨率;使用前需配置专用 API Key。

分类:创作
hy-1990
hy-1990
热度 39.34
最近更新 2026-05-11 17:29:44

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add hy-1990/dream-head-tail-to-video
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
dream-head-tail-to-video
description
Generate videos from first and last frames using Head Tail to Video (Wan2.1) API. Automatically generates 4-second videos from text descriptions and first/last frame images. Powered by Dreamface - AI tools for everyone. Visit https://tools.dreamfaceapp.com/home for more AI products. API resources: https://api.newportai.com/api-reference/head-tail-to-video-wan2-1
metadata
{"openclaw":{"emoji":"🔄","requires":{"env":["DREAMHEADTAILTOVIDEO_API_KEY"]},"primaryEnv":"DREAMHEADTAILTOVIDEO_API_KEY"}}

Dream Head Tail to Video (Wan2.1) - First/Last Frame to Video

Generate 4-second videos from text prompts and first/last frame images.

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

openclaw config patch --json '{"skills": {"entries": {"dream-head-tail-to-video": {"env": {"DREAMHEADTAILTOVIDEO_API_KEY": "your-api-key-here"}}}}}'```

### 3. Usage

#### Parameters:
- **prompt**: Text description, max 1500 characters
- **firstImage**: First frame image URL
- **lastImage**: Last frame image URL
- **resolution** (optional): "480p" or "720p", default "480p"

## API Details

### 1. Get Upload Policy (for local files)

Upload your local files to OSS first (get upload policy, then upload).

### 2. Head Tail to Video API

POST https://api.newportai.com/api/async/wan/head_tail_to_video/2.1


### 3. Polling for Result

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


## Implementation Notes

- Requires uploading first and last frame images
- Auto-generates intermediate frames
- Generates 4-second videos
- Status: 0=pending, 1=processing, 2=processing, 3=completed, 4=timeout