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.

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"
}