AILabTools API - Hitchcock special effects - API:V1.0.0
This API has been discontinued. Please refer to the latest API documentation.Request
- URL:
https://www.ailabapi.com/api/portrait/effects/hitchcock-effects - Method:
POST - Content-Type:
multipart/form-data
Image requirements
- Image format:
JPEGJPGPNGBMP - Image size: No more than 5 MB.
- Image resolution: Less than 4096x4096px.
Headers
| Field | Required | Type | Description |
|---|---|---|---|
ailabapi-api-key | YES | string | Application API KEY. Get API KEY |
Body
| Field | Required | Type | Scope | Default | Description |
|---|---|---|---|---|---|
image_target | YES | file | |||
video_type | NO | integer | 0, 1, 2 | 0 | 0`: Play forward.`, 1: Play backward., “2: Play before and after. |
device_type | NO | integer | 0, 1 | 0 | 0`: Non-Apple phones.`, 1: Apple phone. |
video_length | NO | float | [0.5, 5] | 2.5 | Output video duration (seconds). |
Response
Response Field Handling Flow-
Handle
Public Response FieldsParse and validate thePublic Response Fields, checking the status code or response message to ensure the request is successful and error-free. -
Handle
Business Response FieldsIf thePublic Response Fieldsare valid and error-free, proceed with processing the business logic in theBusiness Response Fields.
Public Response Fields
Viewing Public Response Fields and Error CodesBusiness Response Fields
| Field | Type | Description |
|---|---|---|
data | object | The content of the result data returned. |
+video | string | Returns the base64 encoded string of the generated video. |

