Image to Text
ImagetoTextImage to Text: Image to Text is an OCR and image to text API that extracts text from image files or remote image URLs using optical character recognition. Upload a JPG, PNG, or GIF up to 5 MB to receive the raw extracted text. (Cost: 10 credits)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ImagetoText"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | The URL of the image to extract text from | |
| image | No | Upload an image file to extract text from (supported formats: JPG, PNG, GIF, max 5MB) | |
| language | No | Language of the text, as ISO 639-1 codes; comma-separate several for mixed text (e.g. en,ja). Defaults to en |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| error | No | Error message, null on success | |
| status | No | "ok" on success |