Agnes免费生成视频模型

SKILL前端设计
前端设计 未标注权限 许可证不明确
安装这个技能

使用 Agnes Video 2.5 Flash 模型生成视频,支持文生视频、首尾帧控制和图片/音频参考生成。当用户要生成视频、做短视频片段、把一段画面描述变成视频、让一张图动起来(首尾帧或参考图驱动)、或按参考音频/图片生成视频时使用。异步任务接口,固定 720P,时长 4–12 秒,支持多种画幅。触发词:生成视频、做视频、文生视频、图生视频、首尾帧、参考图生视频、Agnes 视频、视频片段、让图片动起来。

累计安装 未标注 本周 未标注
GitHub 星标 未标注 仓库 未标注
下载量 未标注 技能市场下载数
权限级别 未标注权限 安装前请确认风险范围
许可证 许可证不明确 未说明

安装

未标注
在支持 Skills 的客户端里执行,装完问一句「你有哪些技能」验证
skillhub install user_34b5d879/agnes-video

技能档案

前端设计
字段来自技能仓库与公开索引,中文说明由本站标注
作者 / 维护方user_34b5d879仓库 未标注 · 版本 未标注
宿主客户端未标注技能可被这些客户端加载
安装方式未标注安装包 community
权限级别未标注权限安装前请确认风险范围
许可证未说明许可证不明确,商用前请自行确认条款
仓库可用性available技能仓库当前是否可访问
最近核验未标注上游最后核验时间 · 数据更新 1791723107
正文体量8.1 KBSKILL.md 原文大小,越大说明说明书写得越细

SKILL.md 全文

8.1 KB
模型实际读到的说明书原文,来自技能仓库

Agnes Video — Agnes Video v2.0 视频模型

Overview

Agnes Video v2.0 is Sapiens AI's cinematic video generation model. It uses
an asynchronous task workflow: create a generation task, then poll until
complete. Supports four workflows:

  1. Text-to-Video — generate video from text description
  2. Image-to-Video — animate a static image
  3. Multi-Image-to-Video — transition between multiple images
  4. Keyframe Animation — frame-by-frame control
  • Model ID: agnes-video-v2.0
  • Base URL: https://apihub.agnes-ai.com/v1
  • Pricing: Free tier ($0/second)
  • Auth: Authorization: Bearer YOUR_API_KEY
  • Create endpoint: POST /v1/videos
  • Query endpoint: GET /v1/videos/{task_id}
  • Workflow: Async — submit task → poll → get video URL

Quick Start

Python

import os
import time
import httpx

API_KEY = os.environ["AGNES_API_KEY"]
BASE = "https://apihub.agnes-ai.com"
HEADERS = {"Authorization": f"Bearer {API_KEY}"}

# Step 1: Create video task
resp = httpx.post(
    f"{BASE}/v1/videos",
    headers=HEADERS,
    json={
        "model": "agnes-video-v2.0",
        "prompt": "A cinematic shot of waves crashing on rocky shores at sunset",
        "height": 768,
        "width": 1152,
        "num_frames": 121,
        "frame_rate": 24,
    },
)
task = resp.json()
task_id = task["task_id"]

# Step 2: Poll until complete
while True:
    r = httpx.get(f"{BASE}/v1/videos/{task_id}", headers=HEADERS)
    data = r.json()
    if data["status"] == "completed":
        print("Video URL:", data["remixed_from_video_id"])
        break
    elif data["status"] == "failed":
        print("Failed:", data.get("error"))
        break
    time.sleep(5)

cURL (Create Task)

curl https://apihub.agnes-ai.com/v1/videos \
  -H "Authorization: Bearer $AGNES_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "agnes-video-v2.0",
    "prompt": "A cat walking on the beach at sunset, cinematic",
    "height": 768,
    "width": 1152,
    "num_frames": 121,
    "frame_rate": 24
  }'

cURL (Query Status)

curl https://apihub.agnes-ai.com/v1/videos/TASK_ID \
  -H "Authorization: Bearer $AGNES_API_KEY"

Endpoints

Operation Method URL
Create task POST https://apihub.agnes-ai.com/v1/videos
Query task GET https://apihub.agnes-ai.com/v1/videos/{task_id}

Request Parameters

Parameter Type Required Description Recommended
model string Yes agnes-video-v2.0 —
prompt string Yes Video scene description —
image string/array For img2vid Input image URL(s) —
height integer No Video height in pixels 768
width integer No Video width in pixels 1152
num_frames integer No Total frames (8n+1, ≤441) 121
frame_rate number No Frames per second (1-60) 24
seed integer No Random seed for reproducibility —
negative_prompt string No What to avoid in the video —
num_inference_steps integer No Inference steps default
mode string No ti2vid or keyframes —
extra_body.image array For multi-img Multiple input image URLs —
extra_body.mode string For keyframes "keyframes" —

Critical: num_frames Constraint

num_frames MUST satisfy both conditions:

1. num_frames ≤ 441
2. num_frames = 8n + 1  (n is a positive integer)

Valid Values

81, 121, 161, 201, 241, 281, 321, 361, 401, 441

Video Duration Formula

Duration (seconds) = num_frames / frame_rate
Target num_frames frame_rate Duration
~3 sec 81 24 3.375s
~5 sec 121 24 5.042s
~7 sec 161 24 6.708s
~10 sec 241 24 10.042s
~18 sec 441 24 18.375s

> Tip: Lower frame_rate (e.g. 12) for longer videos; raise it (e.g. 30) for smoother motion.

Task States

Status Meaning Action
queued Waiting in queue Continue polling
in_progress Generating Continue polling
completed Done — video URL in remixed_from_video_id Download video
failed Generation failed Check error field

Create Response (Task Created)

{
  "id": "task_xxx",
  "task_id": "task_xxx",
  "object": "video",
  "model": "agnes-video-v2.0",
  "status": "queued",
  "progress": 0,
  "created_at": 1780457477,
  "seconds": "10.0",
  "size": "1280x768"
}

Query Response (Completed)

{
  "id": "task_xxx",
  "model": "agnes-video-v2.0",
  "object": "video",
  "status": "completed",
  "progress": 100,
  "seconds": "10.0",
  "size": "1280x768",
  "error": null,
  "remixed_from_video_id": "https://storage.../video_xxxxxx.mp4"
}

The video file URL is in remixed_from_video_id.

Four Workflows

1. Text-to-Video

Generate video purely from text description:

{
    "model": "agnes-video-v2.0",
    "prompt": "A majestic eagle soaring over snow-capped mountains, cinematic drone shot",
    "num_frames": 121,
    "frame_rate": 24,
}

2. Image-to-Video

Animate a static image — provide image URL:

{
    "model": "agnes-video-v2.0",
    "prompt": "The waves crash and foam, seagulls fly across the sky, clouds drift slowly",
    "image": "https://example.com/beach-photo.png",
    "num_frames": 121,
}

3. Multi-Image-to-Video

Transition between multiple images via extra_body.image:

{
    "model": "agnes-video-v2.0",
    "prompt": "Smooth morphing transition from day to night scene",
    "extra_body": {
        "image": [
            "https://example.com/day.png",
            "https://example.com/night.png"
        ]
    },
    "num_frames": 161,
}

4. Keyframe Animation

Precise keyframe control with extra_body.mode: "keyframes":

{
    "model": "agnes-video-v2.0",
    "prompt": "Smooth interpolation between keyframes with natural motion",
    "extra_body": {
        "image": ["keyframe1.png", "keyframe2.png", "keyframe3.png"],
        "mode": "keyframes"
    },
    "num_frames": 241,
}

Prompt Writing Guide

[主体 Subject] + [动作 Motion] + [场景 Setting] + [镜头 movement] + [光照 Lighting] + [风格 Style]

Example:

A golden retriever puppy running through a field of sunflowers,
camera slowly tracking alongside, warm golden hour sunlight,
cinematic film look with shallow depth of field

For image-to-video, describe what SHOULD move/change while keeping the
static elements stable.

Bundled Scripts

scripts/generate.py

Generate video from the command line:

# Text-to-video
python scripts/generate.py --prompt "A waterfall in a lush forest" --frames 121

# Image-to-video
python scripts/generate.py --prompt "Water flows, trees sway" --input-image beach.png

# Custom duration (~10 sec)
python scripts/generate.py --prompt "City timelapse" --frames 241 --fps 24

# Download result
python scripts/generate.py --prompt "Ocean waves" --output waves.mp4

Reads AGNES_API_KEY from environment. Polls automatically until complete.

Reference

See references/api_reference.md for error codes, parameter details,
and advanced configuration.

热门专题

按场景挑技能
全部专题 →

技能内容以作者仓库为准;分类、权限级别与许可证状态的中文说明为中文整理,最近核验 未标注。