# \OmniHumanApi

All URIs are relative to *http://localhost*

Method | HTTP request | Description
------------- | ------------- | -------------
[**query_img_recognition_status_api_ark_omnihuman_task_status_get**](OmniHumanApi.md#query_img_recognition_status_api_ark_omnihuman_task_status_get) | **GET** /api/ark/omnihuman/task/status | 查询任务状态
[**submit_img_recognition_api_ark_omnihuman_img_recognition_post**](OmniHumanApi.md#submit_img_recognition_api_ark_omnihuman_img_recognition_post) | **POST** /api/ark/omnihuman/img/recognition | 提交图片检测任务,图片中是否包含人、类人、拟人等主体
[**submit_video_generate_task_api_ark_omnihuman_video_submit_task_post**](OmniHumanApi.md#submit_video_generate_task_api_ark_omnihuman_video_submit_task_post) | **POST** /api/ark/omnihuman/video/submit/task | 提交视频生成任务



## query_img_recognition_status_api_ark_omnihuman_task_status_get

> serde_json::Value query_img_recognition_status_api_ark_omnihuman_task_status_get(task_id, task_type)
查询任务状态

Args:      task_type: face_detect: 人脸检测结果, video_generate: 视频生成结果 Returns:

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**task_id** | **String** | 任务id | [required] |
**task_type** | Option<**String**> | 任务类型,支持 face_detect, video_generate |  |[default to face_detect]

### Return type

[**serde_json::Value**](serde_json::Value.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## submit_img_recognition_api_ark_omnihuman_img_recognition_post

> serde_json::Value submit_img_recognition_api_ark_omnihuman_img_recognition_post(img_url, img_file)
提交图片检测任务,图片中是否包含人、类人、拟人等主体

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**img_url** | Option<**String**> |  |  |
**img_file** | Option<**std::path::PathBuf**> |  |  |

### Return type

[**serde_json::Value**](serde_json::Value.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: multipart/form-data
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)


## submit_video_generate_task_api_ark_omnihuman_video_submit_task_post

> serde_json::Value submit_video_generate_task_api_ark_omnihuman_video_submit_task_post(img_url, img_file, audio_url, audio_file)
提交视频生成任务

Args:      img_input: 输入的图片, 支持链接 + 文件流      audio_input: 输入的音频, 支持链接 + 文件流  Returns: {\"status\": True, 'data': '任务id', 'msg': '信息'}

### Parameters


Name | Type | Description  | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**img_url** | Option<**String**> |  |  |
**img_file** | Option<**std::path::PathBuf**> |  |  |
**audio_url** | Option<**String**> |  |  |
**audio_file** | Option<**std::path::PathBuf**> |  |  |

### Return type

[**serde_json::Value**](serde_json::Value.md)

### Authorization

No authorization required

### HTTP request headers

- **Content-Type**: multipart/form-data
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

