Skip to content
EN

获取动作模板

方法: GET路径: /higgsfield/tpl/motions

HIGGSFIELD.5.1 获取动作模板列表 [视频动作]

请求参数

Query 参数

text
size
integer
返回的模板数量
可选
示例:
30
search
string
搜索关键词
可选

Header 参数

text
Authorization
string
可选
默认值:
Bearer {{YOUR_API_KEY}}

Body 参数 application/json

text
size
integer
每页返回数量
可选
默认值:
30
search
string
搜索关键词
可选
示例
{
"size"
:
30
,
"search"
:
"string"
}

请求示例代码

Shell

bash
curl --location --request GET '/higgsfield/tpl/motions?size=30&search=' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "size": 30,
    "search": "string"
}'

返回响应

🟢 200 成功

内容类型: application/json

响应结构

text
Array of:
id
string
可选
name
string
可选
media
object
可选
width
integer
必需
height
integer
必需
url
string
必需
type
string
必需
priority
integer
可选
tags
array
[string]
可选
params
null
可选
categories
array
[string]
可选

示例

json
[
  {
    "id": "f226ac67-43d3-4726-ad9c-132608bda8b3",
    "name": "Eyes In",
    "media": {
      "width": 320,
      "height": 202,
      "url": "https://d1xarpci4ikg0w.cloudfront.net/a8caa3db-bcf2-4e30-b5fe-37fafdd59140.webp",
      "type": "animated"
    },
    "priority": -1,
    "tags": [],
    "params": null,
    "categories": ["vfx", "epic_camera_control"]
  }
]