Documentation Index
Fetch the complete documentation index at: https://ailabtools.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
[Important Notice: API Integration Update Required]Dear Developers,Thank you for your continued support of the AILabTools API.We would like to inform you that the current API has been updated with changes to the request and response specifications. These changes involve adjustments to parameters and response fields, and may affect existing integrations that rely on the previous API behavior.To ensure your application continues to work correctly, we strongly recommend that you review and update your current API integration as soon as possible.If you have any questions or need assistance with updating your integration, please feel free to contact our support team:
📧 support@ailabtools.comThank you for your understanding and cooperation. We appreciate your continued trust in AILabTools.Best regards,AILabTools Support Team
Request
- URL:
https://www.ailabapi.com/api/image/effects/ai-anime-generator
- Method:
POST
- Content-Type:
multipart/form-data
Image requirements
- Image format:
JPEG PNG JPG BMP WEBP
- Image size: No more than 10 MB.
- Can support any resolution output, to ensure the generation quality, it is recommended that the image resolution does
not exceed 1280x720px.
| Field | Required | Type | Description |
|---|
ailabapi-api-key | YES | string | Application API KEY. Get API KEY |
Body
| Field | Required | Type | Scope | Default | Description |
|---|
task_type | YES | string | async | async | “async: Asynchronous tasks. |
image | YES | file | | | |
type | YES | string | | | Style. Range of values |
The range of type values.
| Category | Value | Description |
|---|
| default | Auto |
| Male photo | boy-0 | Basic I |
| boy-1 | Literary I |
| boy-2 | Literary II |
| boy-3 | Sports |
| boy-4 | Beautification |
| boy-5 | Mature and steady |
| boy-6 | Ink wash painting |
| boy-7 | Oil painting |
| boy-8 | Detail enhancement |
| boy-9 | Sunny boy |
| boy-10 | Skin beautification |
| boy-11 | Face slimming |
| boy-12 | Aestheticism |
| boy-13 | Violet |
| boy-14 | Marvel |
| boy-15 | Makoto Shinkai |
| boy-16 | Zelda |
| boy-17 | Genshin Impact |
| boy-18 | Japanese kimono |
| boy-19 | Saint Seiya |
| boy-20 | Chinese Hanfu |
| boy-21 | Yoshihiro Togashi |
| boy-22 | Akira Toriyama |
| boy-23 | One Piece |
| boy-24 | Smile I |
| boy-25 | Smile II |
| boy-26 | Basic II |
| boy-27 | Big eyes |
| Male group photo | boys-0 | Basic I |
| boys-1 | Basic II |
| Photos of women | girl-0 | Sweet |
| girl-1 | Loli |
| girl-2 | Beautification I |
| girl-3 | Beautification + Big eyes |
| girl-4 | Beautification + Smile |
| girl-5 | Beautification II |
| girl-6 | Gaming |
| girl-7 | Anime, comics and games (ACG) |
| girl-8 | ACG + Big eyes |
| girl-9 | ACG + Smile |
| girl-10 | ACG + Big eyes + Smile |
| girl-11 | Detail enhancement I |
| girl-12 | Color sketch |
| girl-13 | Pure |
| girl-14 | Detail enhancement II |
| girl-15 | Genshin Impact |
| girl-16 | Zelda |
| girl-17 | Oil painting |
| girl-18 | Makoto Shinkai |
| girl-19 | The Snow Queen |
| girl-20 | Alice in Wonderland |
| girl-21 | Work attire |
| girl-22 | Retro girl |
| girl-23 | Chinese Hanfu |
| girl-24 | Violet |
| girl-25 | Elf |
| girl-26 | Saint Seiya |
| girl-27 | Wuxia |
| Group photo of women | girls-0 | Basic |
| girls-1 | Chinese Hanfu |
| girls-2 | Beautification |
| girls-3 | Detail enhancement |
| Group photo of multiple people | people-0 | Basic I |
| people-1 | Basic II |
| people-2 | Basic III |
| Animals | pet-0 | Basic I |
| pet-1 | Basic II |
| pet-2 | Basic III |
| Landscapes | scene-0 | Basic |
| scene-1 | Ed Mell |
| scene-2 | Jessica Rossier |
| scene-3 | Violet |
| scene-4 | Ian McQue |
| scene-5 | Alice in Wonderland |
Response
Response Field Handling Flow
-
Handle
Public Response Fields
Parse and validate the Public Response Fields, checking the status code or response message to ensure the request is successful and error-free.
-
Handle
Business Response Fields
If the Public Response Fields are valid and error-free, proceed with processing the business logic in the Business Response Fields.
Public Response Fields
Viewing Public Response Fields and Error Codes
Business Response Fields
| Field | Type | Scope | Description |
|---|
task_type | string | async | Task Type. “async: Asynchronous tasks. |
task_id | string | | Asynchronous task ID. Please use this field when calling the Querying Async Task Results API. |
Response Example
,
"task_type": "",
"task_id": ""
}
This API is asynchronous, please keep task_id and call Querying Async Task Results to get the final results.
Asynchronous task results are valid for 24 hours. It is recommended that asynchronous task results be queried every 5 seconds.
Querying Async Task Results Response
Response Field Handling Flow
-
Handle
Public Response Fields
Parse and validate the Public Response Fields, checking the status code or response message to ensure the request is successful and error-free.
-
Handle
Business Response Fields
If the Public Response Fields are valid and error-free, proceed with processing the business logic in the Business Response Fields.
Public Response Fields
Viewing Public Response Fields and Error Codes
Business Response Fields
| Field | Type | Scope | Description |
|---|
task_status | integer | 0, 1, 2 | Asynchronous task status. 0`: The task is queued.` 1: Asynchronous processing. “2: Processing was successful. |
data | object | | The content of the result data returned. |
+result_url | string | | Result URL address. |
The URL address is a temporary address, valid for 24 hours, and will not be accessible after it expires. If you need to save the file for a long time or permanently, please visit the URL address within 24 hours and download the file to your own storage space.
Response Example
,
"task_status": 0,
"data":
}
Sample Code
👉 Online Experience 👈
If you’d like to see the actual effects, please visit the experience page for a trial.