openclaw 网盘下载
OpenClaw

技能详情(站内镜像,无评论)

首页 > 技能库 > AIsa Media Gen

Generate images & videos with AIsa. Gemini 3 Pro Image (image) + Qwen Wan 2.6 (video) via one API key.

媒体与内容

许可证:MIT-0

MIT-0 ·免费使用、修改和重新分发。无需归因。

版本:v1.0.0

统计:⭐ 1 · 1.4k · 1 current installs · 1 all-time installs

1

安装量(当前) 1

🛡 VirusTotal :良性 · OpenClaw :良性

Package:aisapay/aisa-media-gen

安全扫描(ClawHub)

  • VirusTotal :良性
  • OpenClaw :良性

OpenClaw 评估

The skill's code, instructions, and requested credential match its stated purpose (image/video generation via the AIsa API); nothing in the package appears disproportionate or misaligned.

目的

Name/description, SKILL.md, and the included Python client all target AIsa image/video generation. Requiring AISA_API_KEY and python3 is appropriate; curl is requested because the README shows curl examples (but the runtime client is Python).

说明范围

The instructions and script stay within the stated purpose (call AIsa endpoints, poll tasks, save returned media). One behavioral note: the client will download arbitrary URLs supplied as img_url and will fetch signed video URLs returned by the API — this is expected for media download but means a user-supplied or agent-supplied URL could cause the client to make network requests to arbitrary hosts (possible SSRF/internal requests) or to write…

安装机制

No install spec (instruction-only) and the code is bundled as a single Python script. Nothing is downloaded or extracted at install time.

证书

Only AISA_API_KEY is required and declared as the primary credential, which is proportionate for an API client that authenticates to AIsa. The SKILL.md and script do not read other environment variables or unrelated credentials.

持久

The skill is not set always:true and does not request system-wide configuration changes. Model invocation is allowed (default) which is normal for skills; no excessive persistence or cross-skill config writes are present.

综合结论

This skill appears coherent for generating images and videos through AIsa using a single AISA_API_KEY. Before installing: (1) only provide an API key scoped appropriately (least privilege) and avoid sharing other secrets; (2) be aware the client will fetch user-provided img_url values and will download returned video URLs to disk — do not pass internal or sensitive endpoints (risk of SSRF or data leakage if an attacker can control URLs); (3) v…

安装(复制给龙虾 AI)

将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。

请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「AIsa Media Gen」。简介:Generate images & videos with AIsa. Gemini 3 Pro Image (image) + Qwen Wan 2.6 (…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/aisapay/aisa-media-gen/SKILL.md
(来源:yingzhi8.cn 技能库)

SKILL.md

打开原始 SKILL.md(GitHub raw)

---
name: openclaw-media-gen
description: "Generate images & videos with AIsa. Gemini 3 Pro Image (image) + Qwen Wan 2.6 (video) via one API key."
homepage: https://openclaw.ai
metadata: {"openclaw":{"emoji":"🎬","requires":{"bins":["python3","curl"],"env":["AISA_API_KEY"]},"primaryEnv":"AISA_API_KEY"}}
---

# OpenClaw Media Gen 🎬

用 AIsa API 一把钥匙生成**图片**与**视频**:

- **图片**:`gemini-3-pro-image-preview`(Gemini GenerateContent)
- **视频**:`wan2.6-t2v`(通义万相 / Qwen Wan 2.6,异步任务)

API 文档索引见 [AIsa API Reference](https://aisa.mintlify.app/api-reference/introduction)(可从 `https://aisa.mintlify.app/llms.txt` 找到所有页面)。

## 🔥 你可以做什么

### 图片生成(Gemini)
```
"生成一张赛博朋克风格的城市夜景,霓虹灯,雨夜,电影感"
```

### 视频生成(Wan 2.6)
```
"用一张参考图生成 5 秒镜头:镜头缓慢推进,风吹动头发,电影感,浅景深"
```

## Quick Start

```bash
export AISA_API_KEY="your-key"
```

---

## 🖼️ Image Generation (Gemini)

### Endpoint

- Base URL: `https://api.aisa.one/v1`
- `POST /models/{model}:generateContent`

文档:`google-gemini-chat`(GenerateContent)见 `https://aisa.mintlify.app/api-reference/chat/chat-api/google-gemini-chat.md`。

### curl 示例(返回 inline_data 时为图片)

```bash
curl -X POST "https://api.aisa.one/v1/models/gemini-3-pro-image-preview:generateContent" 
  -H "Authorization: Bearer $AISA_API_KEY" 
  -H "Content-Type: application/json" 
  -d '{
    "contents":[
      {"role":"user","parts":[{"text":"A cute red panda, ultra-detailed, cinematic lighting"}]}
    ]
  }'
```

> 说明:该接口的响应中可能出现 `candidates[].parts[].inline_data`(通常包含 base64 数据与 mime 类型);客户端脚本会自动解析并保存文件。

---

## 🎞️ Video Generation (Qwen Wan 2.6 / Tongyi Wanxiang)

### Create task

- Base URL: `https://api.aisa.one/apis/v1`
- `POST /services/aigc/video-generation/video-synthesis`
- Header:`X-DashScope-Async: enable`(必填,异步)

文档:`video-generation` 见 `https://aisa.mintlify.app/api-reference/aliyun/video/video-generation.md`。

```bash
curl -X POST "https://api.aisa.one/apis/v1/services/aigc/video-generation/video-synthesis" 
  -H "Authorization: Bearer $AISA_API_KEY" 
  -H "Content-Type: application/json" 
  -H "X-DashScope-Async: enable" 
  -d '{
    "model":"wan2.6-t2v",
    "input":{
      "prompt":"cinematic close-up, slow push-in, shallow depth of field",
      "img_url":"https://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Cat03.jpg/320px-Cat03.jpg"
    },
    "parameters":{
      "resolution":"720P",
      "duration":5,
      "shot_type":"single",
      "watermark":false
    }
  }'
```

### Poll task

- `GET /services/aigc/tasks?task_id=...`

文档:`task` 见 `https://aisa.mintlify.app/api-reference/aliyun/video/task.md`。

```bash
curl "https://api.aisa.one/apis/v1/services/aigc/tasks?task_id=YOUR_TASK_ID" 
  -H "Authorization: Bearer $AISA_API_KEY"
```

---

## Python Client

```bash
# 生成图片(保存到本地文件)
python3 {baseDir}/scripts/media_gen_client.py image 
  --prompt "A cute red panda, cinematic lighting" 
  --out "out.png"

# 创建视频任务(需要 img_url)
python3 {baseDir}/scripts/media_gen_client.py video-create 
  --prompt "cinematic close-up, slow push-in" 
  --img-url "https://upload.wikimedia.org/wikipedia/commons/thumb/3/3a/Cat03.jpg/320px-Cat03.jpg" 
  --duration 5

# 轮询任务状态
python3 {baseDir}/scripts/media_gen_client.py video-status --task-id YOUR_TASK_ID

# 等待直到成功(可选:成功后打印 video_url)
python3 {baseDir}/scripts/media_gen_client.py video-wait --task-id YOUR_TASK_ID --poll 10 --timeout 600

# 等待直到成功并自动下载 mp4
python3 {baseDir}/scripts/media_gen_client.py video-wait --task-id YOUR_TASK_ID --download --out out.mp4
```