Skip to content

Omnihuman 1.5 Human Identification ​

This page is generated from the upstream official OpenAPI documentation. Endpoints, parameters and examples match the official docs; brand and API domain are replaced with ModelFold.

Endpoint ​

POST /jobs/createTask

Full URL: https://ai.modelfold.online/v1/jobs/createTask

Authentication: every request must include the Authorization: Bearer <API_KEY> header.

Create Task ​

Calling this interface creates a new task for recognizing human portraits, human-like figures, or anthropomorphic subjects. Upload a portrait image, and the model will detect and identify the human subjects in the image.

  • Get Task Details — After submission, use the unified query endpoint to check task progress and retrieve results

TIP

For production use, we recommend providing the callBackUrl parameter so your service can receive completion notifications instead of polling for task status.

File Upload ​

TIP

Need to upload files before calling this endpoint? See File Upload API Quickstart.

TIP

This endpoint is free.

Request Parameters ​

Body (application/json) ​

ParameterTypeRequiredDescription
modelstringYesThe model name used for human identification. This field is required.
- This endpoint must use the omnihuman-1-5/human-identification model Default:"omnihuman-1-5/human-identification"。 Allowed values:omnihuman-1-5/human-identification。 示例:omnihuman-1-5/human-identification。
inputobjectYesInput parameters for the human identification task.
  input.image_urlstringYesPortrait image URL. Requirements: JPG/PNG/JPEG format, less than 5MB, resolution under 4096x4096. Recommended: single person facing forward, with the face occupying a large proportion of the image. Accepted file types: image/jpeg, image/png, image/jpg. Max file size: 5MB.
callBackUrlstringNoCallback URL. Once the task is fully completed, ModelFold will send the result to the business webhook URL. To verify callbacks, see Webhook Verification Guide.

Request Example ​

bash
curl -X POST "https://ai.modelfold.online/v1/jobs/createTask" \
  -H "Authorization: Bearer $MODELFOLD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "omnihuman-1-5/human-identification",
  "input": {
    "image_url": "https://your-domain.com/image/portrait.png"
  },
  "callBackUrl": "https://your-domain.com/api/callback"
}'
json
{
  "model": "omnihuman-1-5/human-identification",
  "input": {
    "image_url": "https://your-domain.com/image/portrait.png"
  },
  "callBackUrl": "https://your-domain.com/api/callback"
}

Response ​

200 — Request successful ​

json
{
  "code": 200,
  "msg": "success",
  "data": {
    "taskId": "task_omnihuman-1-5-human-identification_1234567890"
  }
}

Callback ​

videoTaskCompleted ​

Callback URL: {request.body#/callBackUrl} (the callBackUrl in the request body).

The system sends this callback when the omnihuman-1-5/human-identification task succeeds or fails.

Callback body parameters

参数类型必填说明
codeinteger是Unified callback code: 200 for success, 501 for failure. Allowed values:200 / 501。 示例:200。
msgstring是Unified callback message. Allowed values:Playground task completed successfully. / Playground task failed.。 示例:Playground task completed successfully.。
dataobject是—
  data.taskIdstring是The unique task identifier.
  data.modelstring是The model used for the task. Allowed values:omnihuman-1-5/human-identification。 示例:omnihuman-1-5/human-identification。
  data.statestring是Terminal task state. Allowed values:success / fail。 示例:success。
  data.paramstring是JSON string containing the submitted task parameters.
  data.resultJsonstring否JSON string containing resultUrls, firstFrameUrl, lastFrameUrl, or resultObject when successful. Present only when state is success.
  data.failCodestring否Failure code, a numeric string such as "400" or "500". Present only when state is fail.
  data.failMsgstring否Failure reason. Present only when state is fail.
  data.costTimeinteger否Processing time in seconds. Present on both success and failure callbacks.
  data.completeTimeinteger否Task completion timestamp.
  data.createTimeinteger否Task creation timestamp.
  data.updateTimeinteger否Use completeTime as the completion time; updateTime may equal createTime.
  data.creditsConsumednumber否Credits consumed by the task; 0 for failed tasks.

Task completed successfully

json
{
  "code": 200,
  "msg": "Playground task completed successfully.",
  "data": {
    "taskId": "task_example_video_webhook_001",
    "model": "omnihuman-1-5/human-identification",
    "state": "success",
    "param": "{\"input\":\"{\\\"image_url\\\":\\\"https://example.com/input-image.jpg\\\"}\",\"callBackUrl\":\"https://example.com/callback\",\"model\":\"omnihuman-1-5/human-identification\"}",
    "resultJson": "{\"resultObject\":{\"subject_status\":1}}",
    "costTime": 12,
    "completeTime": 1234567890,
    "createTime": 1234560000,
    "updateTime": 1234567890,
    "creditsConsumed": 1.23
  }
}

Task failed

json
{
  "code": 501,
  "msg": "Playground task failed.",
  "data": {
    "taskId": "task_example_video_webhook_001",
    "model": "omnihuman-1-5/human-identification",
    "state": "fail",
    "param": "{\"input\":\"{\\\"image_url\\\":\\\"https://example.com/input-image.jpg\\\"}\",\"callBackUrl\":\"https://example.com/callback\",\"model\":\"omnihuman-1-5/human-identification\"}",
    "failCode": "400",
    "failMsg": "<error detail>",
    "costTime": 12,
    "creditsConsumed": 0
  }
}

ModelFold — one API for all the best AI models.