zf-kbot/manga-image-translator
Public
794
runs
Run zf-kbot/manga-image-translator with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
Input schema
The fields you can use to run this model with an API. If you don't give a value for a field its default value will be used.
| Field | Type | Default value | Description |
|---|---|---|---|
| image |
string
|
Manga/comic page (jpg, png or webp).
|
|
| mode |
None
|
full
|
full: OCR + LLM translate + render in one call. "
"ocr: detection/OCR only. render: mask/inpaint/render only. "
"Every mode returns an image file and regions.json; identify them by extension, not list order.
|
| regions |
string
|
|
mode=render only: JSON text read from regions.json returned by mode=ocr.
|
| mask |
string
|
mode=render only: URL or uploaded mask.png returned by mode=ocr.
|
|
| translations |
string
|
|
mode=render only: JSON array of translated lines in region '
'order, e.g. ["你好","再见"], or [{"index":0,"translation":"你好"}].
|
| target_lang |
None
|
CHS
|
Target language. CHS/CHT=Chinese, ENG=English, JPN=Japanese, "
"KOR=Korean; the rest follow upstream's codes (see README).
|
| api_base |
string
|
https://api.openai.com/v1
|
mode=full only: OpenAI-compatible API base URL, including /v1.
|
| api_key |
string
|
mode=full only: API key for the LLM endpoint. "
"Any dummy value works for local servers.
|
|
| model |
string
|
|
mode=full only: model name, e.g. gpt-4o-mini, deepseek-chat.
|
{
"type": "object",
"title": "Input",
"required": [
"image"
],
"properties": {
"mask": {
"type": "string",
"title": "Mask",
"format": "uri",
"x-order": 3,
"nullable": true,
"description": "mode=render only: URL or uploaded mask.png returned by mode=ocr."
},
"mode": {
"enum": [
"full",
"ocr",
"render"
],
"type": "string",
"title": "mode",
"description": "full: OCR + LLM translate + render in one call. \"\n \"ocr: detection/OCR only. render: mask/inpaint/render only. \"\n \"Every mode returns an image file and regions.json; identify them by extension, not list order.",
"default": "full",
"x-order": 1
},
"image": {
"type": "string",
"title": "Image",
"format": "uri",
"x-order": 0,
"description": "Manga/comic page (jpg, png or webp)."
},
"model": {
"type": "string",
"title": "Model",
"default": "",
"x-order": 8,
"description": "mode=full only: model name, e.g. gpt-4o-mini, deepseek-chat."
},
"api_key": {
"type": "string",
"title": "Api Key",
"format": "password",
"x-order": 7,
"nullable": true,
"writeOnly": true,
"description": "mode=full only: API key for the LLM endpoint. \"\n \"Any dummy value works for local servers.",
"x-cog-secret": true
},
"regions": {
"type": "string",
"title": "Regions",
"default": "",
"x-order": 2,
"description": "mode=render only: JSON text read from regions.json returned by mode=ocr."
},
"api_base": {
"type": "string",
"title": "Api Base",
"default": "https://api.openai.com/v1",
"x-order": 6,
"description": "mode=full only: OpenAI-compatible API base URL, including /v1."
},
"target_lang": {
"enum": [
"CHS",
"CHT",
"ENG",
"JPN",
"KOR",
"CSY",
"NLD",
"FRA",
"DEU",
"HUN",
"ITA",
"POL",
"PTB",
"ROM",
"RUS",
"ESP",
"TRK",
"UKR",
"VIN",
"ARA",
"CNR",
"SRP",
"HRV",
"THA",
"IND",
"FIL"
],
"type": "string",
"title": "target_lang",
"description": "Target language. CHS/CHT=Chinese, ENG=English, JPN=Japanese, \"\n \"KOR=Korean; the rest follow upstream's codes (see README).",
"default": "CHS",
"x-order": 5
},
"translations": {
"type": "string",
"title": "Translations",
"default": "",
"x-order": 4,
"description": "mode=render only: JSON array of translated lines in region '\n 'order, e.g. [\"\u4f60\u597d\",\"\u518d\u89c1\"], or [{\"index\":0,\"translation\":\"\u4f60\u597d\"}]."
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"title": "Output"
}