AI Cartoon Generator
(Async)This API is asynchronous. Please save the task_id
or request_id
and then use 'Retrieve Task Results by task_id
’ or 'Retrieve Task Results by request_id
’ to obtain the task results.
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.
Request Parameters
Field | Required | Type | Scope | Default | Description |
---|---|---|---|---|---|
image |
YES | file |
|||
index |
YES | integer |
0 1 2 3 4 5 6 7 8 |
0 |
Cartoon effect. 0 : Vintage Comic.1 : 3D Fairy Tale.2 : Two-dimensional (2D).3 : Refreshing and Elegant.4 : Future Technology.5 : Traditional Chinese Painting Style.6 : General in a Hundred Battles.7 : Colorful Cartoon.8 : Graceful Chinese Style. |
Field | Required | Type | Description |
---|---|---|---|
image |
YES | file |
|
type |
YES | string |
Style. Please see the table below for the range of values. |
type
values.Category | Value | Description |
---|---|---|
default |
Auto | |
Male photo | boy-0 |
Basic I |
Male photo | boy-1 |
Literary I |
Male photo | boy-2 |
Literary II |
Male photo | boy-3 |
Sports |
Male photo | boy-4 |
Beautification |
Male photo | boy-5 |
Mature and steady |
Male photo | boy-6 |
Ink wash painting |
Male photo | boy-7 |
Oil painting |
Male photo | boy-8 |
Detail enhancement |
Male photo | boy-9 |
Sunny boy |
Male photo | boy-10 |
Skin beautification |
Male photo | boy-11 |
Face slimming |
Male photo | boy-12 |
Aestheticism |
Male photo | boy-13 |
Violet |
Male photo | boy-14 |
Marvel |
Male photo | boy-15 |
Makoto Shinkai |
Male photo | boy-16 |
Zelda |
Male photo | boy-17 |
Genshin Impact |
Male photo | boy-18 |
Japanese kimono |
Male photo | boy-19 |
Saint Seiya |
Male photo | boy-20 |
Chinese Hanfu |
Male photo | boy-21 |
Yoshihiro Togashi |
Male photo | boy-22 |
Akira Toriyama |
Male photo | boy-23 |
One Piece |
Male photo | boy-24 |
Smile I |
Male photo | boy-25 |
Smile II |
Male photo | boy-26 |
Basic II |
Male photo | boy-27 |
Big eyes |
Male group photo | boys-0 |
Basic I |
Male group photo | boys-1 |
Basic II |
Photos of women | girl-0 |
Sweet |
Photos of women | girl-1 |
Loli |
Photos of women | girl-2 |
Beautification I |
Photos of women | girl-3 |
Beautification + Big eyes |
Photos of women | girl-4 |
Beautification + Smile |
Photos of women | girl-5 |
Beautification II |
Photos of women | girl-6 |
Gaming |
Photos of women | girl-7 |
Anime, comics and games (ACG) |
Photos of women | girl-8 |
ACG + Big eyes |
Photos of women | girl-9 |
ACG + Smile |
Photos of women | girl-10 |
ACG + Big eyes + Smile |
Photos of women | girl-11 |
Detail enhancement I |
Photos of women | girl-12 |
Color sketch |
Photos of women | girl-13 |
Pure |
Photos of women | girl-14 |
Detail enhancement II |
Photos of women | girl-15 |
Genshin Impact |
Photos of women | girl-16 |
Zelda |
Photos of women | girl-17 |
Oil painting |
Photos of women | girl-18 |
Makoto Shinkai |
Photos of women | girl-19 |
The Snow Queen |
Photos of women | girl-20 |
Alice in Wonderland |
Photos of women | girl-21 |
Work attire |
Photos of women | girl-22 |
Retro girl |
Photos of women | girl-23 |
Chinese Hanfu |
Photos of women | girl-24 |
Violet |
Photos of women | girl-25 |
Elf |
Photos of women | girl-26 |
Saint Seiya |
Photos of women | girl-27 |
Wuxia |
Group photo of women | girls-0 |
Basic |
Group photo of women | girls-1 |
Chinese Hanfu |
Group photo of women | girls-2 |
Beautification |
Group photo of women | girls-3 |
Detail enhancement |
Group photo of multiple people | people-0 |
Basic I |
Group photo of multiple people | people-1 |
Basic II |
Group photo of multiple people | people-2 |
Basic III |
Animals | pet-0 |
Basic I |
Animals | pet-1 |
Basic II |
Animals | pet-2 |
Basic III |
Landscapes | scene-0 |
Basic |
Landscapes | scene-1 |
Ed Mell |
Landscapes | scene-2 |
Jessica Rossier |
Landscapes | scene-3 |
Violet |
Landscapes | scene-4 |
Ian McQue |
Landscapes | scene-5 |
Alice in Wonderland |
Field | Type | Description |
---|---|---|
error_code |
integer |
Error Code. |
error_msg |
string |
Error Message. |
request_id |
string |
Request ID. |
task_id |
string |
Task ID. |
Retrieve Task Results by task_id
Retrieve asynchronous task results by task_id
. An API more efficient than 'Retrieve Task Results by request_id
'.
Field | Required | Type | Description |
---|---|---|---|
task_id |
YES | string |
Task id:task_id |
Field | Type | Description |
---|---|---|
error_code |
integer |
Error Code. |
error_msg |
string |
Error Message. |
request_id |
string |
Request ID. |
task_status |
integer |
Asynchronous task status. 0 : The task is queued. 1 : Asynchronous processing. 2 : Processing was successful. |
data |
object |
The content of the result data returned. |
+status |
string |
Asynchronous task status. QUEUING : The task is queued. PROCESSING : Asynchronous processing. PROCESS_SUCCESS : Processing was successful. PROCESS_FAILED : Processing failed. TIMEOUT_FAILED : The task timeout did not complete. LIMIT_RETRY_FAILED : Exceeded maximum number of retries for processing failures. |
+result_url |
string |
Result URL address. Note: The URL address is a temporary address, valid for 24 hours, and will not be accessible after the expiration date. |
Retrieve Task Results by request_id
Retrieve asynchronous task results by request_id
.
Field | Required | Type | Scope | Example | Description |
---|---|---|---|---|---|
job_id |
YES | string |
- | 3A9BFC5E-3F7C-4D9A-9445-908C6D14AB5B | Task id:request_id |
type |
YES | string |
GENERATE_CARTOONIZED_IMAGE |
GENERATE_CARTOONIZED_IMAGE |
Asynchronous task type. GENERATE_CARTOONIZED_IMAGE : AI Cartoon Generator |
Field | Type | Description |
---|---|---|
error_code |
integer |
Error Code. |
error_msg |
string |
Error Message. |
request_id |
string |
Request ID. |
data |
object |
The content of the result data returned. |
+status |
string |
Asynchronous task status. QUEUING : The task is queued. PROCESSING : Asynchronous processing. PROCESS_SUCCESS : Processing was successful. PROCESS_FAILED : Processing failed. TIMEOUT_FAILED : The task timeout did not complete. LIMIT_RETRY_FAILED : Exceeded maximum number of retries for processing failures. |
+result_url |
string |
Result URL address. Note: The URL address is a temporary address, valid for 24 hours, and will not be accessible after the expiration date. |