🎬 Generate images & videos with: Gemini 3 Pro Image + Qwen Wan 2.6 (video) via one API key — Generate工具

v1.0.0

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

2· 1.0k·0 当前·0 累计
by @aisadocs (AIsa)·MIT-0
下载技能包
License
MIT-0
最后更新
2026/2/28
0
安全扫描
VirusTotal
无害
查看报告
OpenClaw
安全
high confidence
The skill's code, instructions, and required AISA_API_KEY are coherent with its stated purpose (image + video generation via the AIsa API); nothing in the package requests unrelated credentials or performs unexpected actions.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv1.0.02026/2/8

**Major update: Introduced pricing details, clarified use cases, and emphasized unique advantages of the API.** - Added comprehensive pricing comparisons and highlighted cost savings over competitors. - Introduced a new "Use Cases" section for various audiences (AI agents, content creators, developers, businesses). - Added a "Why AIsa for Media Generation?" section listing unique benefits. - Python client example references remain unchanged in usage, but relocation of the script file: moved `media_gen_client.py` out of the `scripts/` folder to the root directory. - All content/instructions now in English; legacy Chinese content removed for clarity and consistency.

无害

安装命令

点击复制
官方npx clawhub@latest install openclaw-aisa-llm-image-video-qwen-wan26-gemini-3-pro-image
🇨🇳 镜像加速npx clawhub@latest install openclaw-aisa-llm-image-video-qwen-wan26-gemini-3-pro-image --registry https://cn.longxiaskill.com

技能文档

Generate images and videos with one AIsa API key:

  • Image: gemini-3-pro-image-预览 (Gemini GenerateContent)
  • Video: wan2.6-t2v (Qwen Wan 2.6 / Tongyi Wanxiang, 异步 task)

API Reference: AIsa API Reference (all pages available at https://aisa.mintlify.app/llms.txt)

🎯 Pricing Advantage

Video Generation (WAN) - Cost Comparison

ResolutionAIsa (Contract)AIsa (Official)Bailian (Official)OpenRouter
720P$0.06/sec~$0.08~$0.10
1080P$0.09/sec~$0.12~$0.15
Pro/Animate$0.108–0.156~$0.18~$0.25
键 Benefits:
  • 25-40% cheaper 比 Bailian official pricing
  • OpenRouter doesn't support video - AIsa 仅 unified API 带有 video generation
  • Contract pricing 可用 对于 production workloads
  • Single API 键 对于 both image 和 video generation

🔥 什么 您 可以 做

Image Generation (Gemini)

"Generate a cyberpunk cityscape at night, neon lights, rainy, cinematic"

Video Generation (Wan 2.6)

"Use a reference image to generate a 5-second shot: slow camera push-in, wind blowing hair, cinematic, shallow depth of field"

Quick 开始

export AISA_API_KEY="your-key"

🖼️ Image Generation (Gemini)

Endpoint

  • Base URL: https://api.aisa.one/v1
  • POST /models/{模型}:generateContent

Documentation: google-gemini-chat (GenerateContent) at https://aisa.mintlify.app/api-reference/chat/chat-api/google-gemini-chat.md

curl 示例 (returns inline_data 对于 images)

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"}]}
    ]
  }'
Note: Response may contain candidates[].parts[].inline_data (typically with base64 data and mime type); client script automatically parses and saves the file.

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

创建 Task

  • Base URL: https://api.aisa.one/apis/v1
  • POST /services/aigc/video-generation/video-synthesis
  • 页头: X-DashScope-异步: enable (必填 对于 异步)

Documentation: video-generation at https://aisa.mintlify.app/api-reference/aliyun/video/video-generation.md

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 Status

  • 获取 /services/aigc/tasks?task_id=...

Documentation: task at https://aisa.mintlify.app/api-reference/aliyun/video/task.md

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

Python Client

# Generate image (save to local file)
python3 {baseDir}/scripts/media_gen_client.py image \
  --prompt "A cute red panda, cinematic lighting" \
  --out "out.png"

# Create video task (requires 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

# Poll task status python3 {baseDir}/scripts/media_gen_client.py video-status --task-id YOUR_TASK_ID

# Wait until success (optional: print video_url on success) python3 {baseDir}/scripts/media_gen_client.py video-wait --task-id YOUR_TASK_ID --poll 10 --timeout 600

# Wait until success and auto-download mp4 python3 {baseDir}/scripts/media_gen_client.py video-wait --task-id YOUR_TASK_ID --download --out out.mp4

💡 使用 Cases

  • AI Agents: Automate visual content generation 对于 social media, marketing materials
  • Content Creators: Generate custom images 和 videos programmatically
  • Developers: Build apps 带有 multimodal generation capabilities
  • Businesses: Cost-effective alternative 到 Bailian 带有 better pricing

🚀 为什么 AIsa 对于 Media Generation?

  • Unified API: Single 键 对于 both images (Gemini) 和 videos (WAN)
  • Best Pricing: 25-40% cheaper 比 alternatives
  • Production 就绪: Contract pricing 和 enterprise support 可用
  • 否 Competition: OpenRouter doesn't support video generation
  • Simple Integration: Python client 带有 异步 task management built-在...中
数据来源:ClawHub ↗ · 中文优化:龙虾技能库