[Important: API Service Retirement Announcement]Dear Developers,Thank you for your continued trust and support in AILabTools API. In order to provide more efficient and reliable services, we will officially deprecate the current version of this API.As this interface is based on an outdated architecture and its performance can no longer meet evolving needs, it will no longer be available starting from the date of this announcement.We kindly recommend that you evaluate and adopt an alternative solution as soon as possible to ensure a smooth transition for your applications.If you have any questions or need assistance during the migration, please feel free to contact our support team:
📧 [email protected]We sincerely appreciate your understanding and cooperation, and we remain committed to delivering better and more advanced services for you.Warm regards,AILabTools Support Team
Request
- URL:
https://www.ailabapi.com/api/portrait/effects/portrait-animation - Method:
POST - Content-Type:
multipart/form-data
Image requirements
- Image format:
JPEGJPGPNG - Image size: No more than 3 MB.
- Image resolution: Larger than 100x100px, smaller than 2000x2000px.
Headers
| Field | Required | Type | Description |
|---|---|---|---|
ailabapi-api-key | YES | string | Application API KEY. Get API KEY |
Body
| Field | Required | Type | Scope |
|---|---|---|---|
image | YES | file | |
type | YES | string | More Details |
type
| Category | type | Description |
|---|---|---|
| Full-Body Cartoonization | jpcartoon | Japanese Manga (I) |
| anime | Japanese Manga (II) | |
| claborate | Chinese fine brushwork painting | |
| hongkong | Hong Kong-style comic style | |
| comic | Comic | |
| animation3d | 3D Animation | |
| handdrawn | hand-painted | |
| sketch | Pencil drawing (I) | |
| full | Pencil drawing (II) | |
| artstyle | Artistic effects | |
| classic_cartoon | Retro Cartoon | |
| tccartoon | Moe Manga | |
| hkcartoon | China Comics | |
| Facial Cartoonization | 3d_cartoon | 3D cartoon |
| pixar | Pixar | |
| pixar_plus | Pixar Pro | |
| angel | Angel | |
| angel_plus | Angel Pro | |
| demon | Demon | |
| ukiyoe_cartoon | Ukiyo-e | |
| amcartoon | American Manga | |
| 3d | 3D Effects | |
| 3d_game | 3D game effects | |
| Avatar Cartoonization | western | Western |
| avatar | Avatar | |
| jpcartoon_head | Japanese Manga (portrait) | |
| head | Pencil drawing (head) |
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. |
+image_url | string | Resulting image URL address. |

