Use the API to colorize sketch image automatically.
API call cost
Each API call consumes 2 credits.
Request
- Method: POST
- URL:https://yimeta.ai/api/v1/auto-coloring-generator
Request Header
Parameter |
Type |
Description |
authorization |
string |
|
Request Body
Parameter |
Type |
Required |
Description |
img_url |
string |
Required |
URL or file of the original image1 |
model |
string |
No (defalut: FiBell_v1.safetensors) |
The Stable Diffusion model used to generate the fusion image |
lora |
list |
No (defalut: null) |
Lora model |
prompt |
string |
No (defalut: 'masterpiece, best quality') |
Positive prompt describing the resulted image. |
negative_prompt |
string |
No (defalut: '(worst quality, low quality:1.4)') |
Negative prompt |
{
"img_url": "",
"model": "FiBell_v1.safetensors", // optional
"lora": [], // optional
"prompt": "(masterpiece), best quality" // optional
"negative_prompt": "(worst quality, low quality:1.4)", // 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"
}