AILabTools API - Hitchcock special effects - API
Request
- URL:
https://www.ailabapi.com/api/portrait/effects/hitchcock-effects
- Method:
POST
- Content-Type:
multipart/form-data
Image requirements
- Image format:
JPEG
JPG
PNG
BMP
- Image size: No more than 5 MB.
- Image resolution: Less than 4096x4096px.
Header
Field | Required | Type | Description |
---|---|---|---|
ailabapi-api-key | YES | string | Application API KEY. |
Body
Field | Required | Type | Scope | Default | Description |
---|---|---|---|---|---|
image_target | YES | file | |||
video_type | NO | integer | 0 1 2 | 0 | Video playback direction. 0 : Play forward.1 : Play backward.2 : Play before and after. |
device_type | NO | integer | 0 1 | 0 | Device Type. 0 : Non-Apple phones.1 : Apple phone. |
video_length | NO | float | [0.5, 5] | 2.5 | Output video duration (seconds). |
Response
Parameters
Field | Type | Description |
---|---|---|
error_code | integer | Status Code. |
error_code_str | string | Error Code. |
error_msg | string | Error Message. |
request_id | string | Request ID. |
log_id | string | Log ID. |
data | object | The content of the result data returned. |
+video | string | Returns the base64 encoded string of the generated video. |
Example
{
"error_code": 0,
"error_code_str": "",
"error_msg": "",
"request_id": "",
"log_id": "",
"data": {
"video": ""
}
}