Generates a sketch image(coloring page) from input text prompt
API call cost
Each API call consumes 1 credits.
Request
- Method: POST
- URL:https://yimeta.ai/api/v1/coloring-page-generator
Request Header
Parameter |
Type |
Description |
authorization |
string |
|
Request Body
Parameter |
Type |
Required |
Description |
prompt |
string |
Required |
The text prompt for makeing coloring page image |
width |
int |
No. Defalut value: 1024 |
The AI-generated image width |
height |
int |
No. Defalut value: 1024 |
The AI-generated image height |
{
"prompt": "one pikachu",
"width": 1024, // optional
"height": 1024, //optional
}
Respones
Response Body
Parameter |
Type |
Description |
status |
string |
API task status |
task_id |
string |
The unique ID of the task. |
result |
list |
result image |
Example
####successed
{
"stauts": "successed",
"task_id": "f12400e2-5546-4286-92e9-2263d2f5c3fd",
"result": ["https://art-global.yimeta.ai/workflow/aa4a777e2644f16372fd0cf4b5baffcb.webp"]
}
####over time
{
"status": "executing",
"task_id": "f12400e2-5546-4286-92e9-2263d2f5c3fd"
}
####failed
{
"status": "failed",
"error": "error message"
}