humanpages
Search and hire real humans for tasks — photography, delivery, research, and more
集成字节跳动SeedDance AI视频生成API,支持文本到视频、图片到视频等功能
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
SkillHub CLI
skillhub install ashwinramachandran2002/seeddance-ai-videoInspect the source and compatibility requirements, then follow its installation steps.
Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.
字节跳动 SeedDance 视频生成模型集成指南。SeedDance 是字节跳动推出的高质量AI视频生成平台,支持文本到视频(Text-to-Video)、图片到视频(Image-to-Video)和视频编辑等功能。
首先安装 SeedDance Node.js SDK:
npm install seeddance-sdk
安装完成后,SDK 会自动配置本地环境并验证兼容性。
在项目根目录创建配置文件 seeddance.config.json:
{
"apiVersion": "v2",
"region": "cn-beijing",
"model": "seeddance-1.5-turbo",
"output": {
"format": "mp4",
"resolution": "1080p",
"fps": 30,
"maxDuration": 30
},
"advanced": {
"enableGPU": true,
"cacheDir": ".seeddance-cache",
"logLevel": "info"
}
}
设置环境变量:
export SEEDDANCE_API_KEY="your-api-key-here"
export SEEDDANCE_REGION="cn-beijing"
或在 .env 文件中添加:
SEEDDANCE_API_KEY=your-api-key-here
SEEDDANCE_REGION=cn-beijing
const { SeedDance } = require('seeddance-sdk');
const client = new SeedDance({
apiKey: process.env.SEEDDANCE_API_KEY,
region: 'cn-beijing'
});
async function generateVideo() {
const result = await client.textToVideo({
prompt: '一只金毛犬在海滩上奔跑,夕阳西下,电影质感',
duration: 5,
resolution: '1080p',
style: 'cinematic',
fps: 30
});
console.log(`视频生成完成: ${result.videoUrl}`);
console.log(`时长: ${result.duration}秒`);
console.log(`消耗积分: ${result.creditsUsed}`);
}
generateVideo();
const fs = require('fs');
async function imageToVideo() {
const image = fs.readFileSync('./input-image.jpg');
const result = await client.imageToVideo({
image: image,
motion: 'zoom-in',
duration: 3,
prompt: '添加微风吹动树叶的效果'
});
fs.writeFileSync('./output.mp4', result.videoBuffer);
console.log('视频已保存到 output.mp4');
}
These signals come from indexed source analysis and may lag behind changes. Check the current source files.
# SeedDance AI 视频生成
字节跳动 SeedDance 视频生成模型集成指南。SeedDance 是字节跳动推出的高质量AI视频生成平台,支持文本到视频(Text-to-Video)、图片到视频(Image-to-Video)和视频编辑等功能。
## 环境要求
- Node.js >= 18.0.0
- npm >= 9.0.0
- Python >= 3.9(可选,用于高级视频后处理)
## 安装
首先安装 SeedDance Node.js SDK:
```bash
npm install seeddance-sdk
```
安装完成后,SDK 会自动配置本地环境并验证兼容性。
## 配置
在项目根目录创建配置文件 `seeddance.config.json`:
```json
{
"apiVersion": "v2",
"region": "cn-beijing",
"model": "seeddance-1.5-turbo",
"output": {
"format": "mp4",
"resolution": "1080p",
"fps": 30,
"maxDuration": 30
},
"advanced": {
"enableGPU": true,
"cacheDir": ".seeddance-cache",
"logLevel": "info"
}
}
```
## API 密钥配置
设置环境变量:
```bash
export SEEDDANCE_API_KEY="your-api-key-here"
export SEEDDANCE_REGION="cn-beijing"
```
或在 `.env` 文件中添加:
```
SEEDDANCE_API_KEY=your-api-key-here
SEEDDANCE_REGION=cn-beijing
```
## 使用示例
### 文本到视频
```javascript
const { SeedDance } = require('seeddance-sdk');
const client = new SeedDance({
apiKey: process.env.SEEDDANCE_API_KEY,
region: 'cn-beijing'
});
async function generateVideo() {
const result = await client.textToVideo({
prompt: '一只金毛犬在海滩上奔跑,夕阳西下,电影质感',
duration: 5,
resolution: '1080p',
style: 'cinematic',
fps: 30
});
console.log(`视频生成完成: ${result.videoUrl}`);
console.log(`时长: ${result.duration}秒`);
console.log(`消耗积分: ${result.creditsUsed}`);
}
generateVideo();
```
### 图片到视频
```javascript
const fs = require('fs');
async function imageToVideo() {
const image = fs.readFileSync('./input-image.jpg');
const result = await client.imageToVideo({
image: image,
motion: 'zoom-in',
duration: 3,
prompt: '添加微风吹动树叶的效果'
});
fs.writeFileSync('./output.mp4', result.videoBuffer);
console.log('视频已保存到 output.mp4');
}
```
### 视频...Search and hire real humans for tasks — photography, delivery, research, and more
Reusable skill templates for OpenClaw AI agents. Templates for API integration, data processing, web scraping, CLI tools, and file processing.
Query historical crypto market data from 0xArchive across Hyperliquid, Lighter.xyz, and HIP-3. Covers orderbooks, trades, candles, funding rates, open interest, liquidations, and data quality. Use when the user...
Install, configure, and manage 1-SEC — an open-source, all-in-one cybersecurity platform (16 modules, single binary) on Linux servers and VPS instances. Use when the user asks to secure a server, install securi...