Omnihuman 1.5 主体识别
接口
POST /videos/generations
完整 URL: https://modelfold.ai/v1/videos/generations
鉴权:所有请求都需要
Authorization: Bearer <API_KEY>请求头。
模型参数直接放在 JSON 请求体中,不要套 input。请求等待生成完成后返回 data[].url;支持的媒体模型也可使用 异步创建、轮询及回调。示例素材地址须替换为自己的公开可访问文件。计费及错误说明见 API 网关。
人像识别任务的输入参数。
请求参数
请求体 (application/json)
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
model | string | 是 | 用于人像识别的模型名称。必填字段。 - 该端点必须使用 omnihuman-1-5/human-identification 模型 默认值:"omnihuman-1-5/human-identification"。 可选值:omnihuman-1-5/human-identification。 示例:omnihuman-1-5/human-identification。 |
image_url | string | 是 | 肖像图片 URL。要求:JPG/PNG/JPEG 格式,小于 5MB,分辨率低于 4096x4096。建议:单人正面照,面部占比较大。支持的文件类型:image/jpeg、image/png、image/jpg。最大文件大小:5MB。 |
请求示例
bash
curl -X POST "https://modelfold.ai/v1/videos/generations" \
-H "Authorization: Bearer $MODELFOLD_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "omnihuman-1-5/human-identification",
"image_url": "https://example.com/reference.png"
}'json
{
"model": "omnihuman-1-5/human-identification",
"image_url": "https://example.com/reference.png"
}响应
200 — 生成完成。usage 返回实际计费明细;结果地址仅作结构示例。
json
{
"ok": true,
"created": 1792134000,
"data": [
{
"url": "https://modelfold.ai/uploads/outputs/result.json"
}
],
"usage": {}
}