# AnimateAnyone动作模板生成

**方法**: `POST`
**路径**: `/qwen/api/v1/services/aigc/image2video/aa-template-generation/`

[官方api 文档](https://help.aliyun.com/zh/model-studio/animate-anyone-template-api)

AnimateAnyone动作模板生成模型，可基于人物运动视频提取人物动作，并生成可供AnimateAnyone视频生成模型使用的人物动作模板。本文档介绍了该模型提供的动作模板生成能力的API调用方法。

## 请求参数

### Header 参数

```text
X-DashScope-Async
string
必需
示例:
enable
Content-Type
string
必需
示例:
application/json
Authorization
string
可选
默认值:
Bearer {{YOUR_API_KEY}}
```

### Body 参数 application/json 必填

```text
model
string
必需
input
object
必需
video_url
string
可选
用户上传的视频 URL，用于生成基于指定视频的动作模板。
视频文件不大于200MB
视频边长不低于200，不大于2048
视频帧率≥24fps，视频编码采用H.264或H.265
视频时长不小于2s且不大于60s
视频长宽比介于1:3到3:1
视频格式支持：mp4、avi、mov
parameters
object
必需
示例
{
"model"
:
"animate-anyone-template-gen2"
,
"input"
:
{
"video_url"
:
"http://xxx/1.mp4"
}
,
"parameters"
:
{
}
}
```

## 请求示例代码

### Shell

```bash
curl --location --request POST '/qwen/api/v1/services/aigc/image2video/aa-template-generation/' \
--header 'X-DashScope-Async: enable' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "animate-anyone-template-gen2",
    "input": {
        "video_url": "http://xxx/1.mp4"
    },
    "parameters": {
    }
  }'
```

## 返回响应

### 🟢 200 成功

**内容类型**: `application/json`

#### 响应结构

```text
object
```

#### 示例

```json
{}
```
