# Image to Text (OCR) via Google Lens

> Image to Text (OCR) via Google Lens is a paid API for AI agents from agents.openwebninja.com, paid per call via MPP, price unknown, status unknown (last checked 2026-10-14).

Extracts full text from an image URL with paragraph, sentence, and word-level bounding box detections using Google Lens.

## Facts

- Endpoint: GET https://agents.openwebninja.com/realtime-lens-data/ocr?utm_source=zero.xyz
- Price: price unknown
- Payment: MPP
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Provider: agents.openwebninja.com
- Website: https://agents.openwebninja.com
- Canonical page: https://www.zero.xyz/c/agents-openwebninja-com-image-to-text-ocr-via-google-lens-31c8a583
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4i1nLSw-GkCYLWYXygpd4

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agents-openwebninja-com-image-to-text-ocr-via-google-lens-31c8a583
```

Example prompt: Can you extract all the text from this image — https://example.com/receipt.jpg — and give me the full text along with word-level positions? Use English as the output language.

## When to prefer this

Choose this endpoint when you need structured, multi-level OCR output (paragraph, sentence, and word with bounding boxes) powered by Google Lens, especially for images publicly accessible via URL. It is ideal when positional layout information matters alongside raw text — such as document parsing, form reading, or sign recognition — and when you need multilingual support via ISO 639-1 language codes.

## Known failure modes

- Invalid or inaccessible image URL returns an error status
- Unsupported language code may fall back to default or return an error
- Low-quality or extremely small images may produce empty or incomplete text extraction
- Non-image URLs (e.g. HTML pages) will fail or return no text
- Rate limit or payment issues may return a 402 or 429 response

## How this service works

Extract text from an image and get paragraph, sentence and word level text detections from Google Lens.

## Output

Returns the full extracted text string, detected language, and a structured breakdown of paragraphs, sentences, and words — each with pixel-level bounding box coordinates (top, left, width, height). Also includes a request ID and status field for tracking.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "url"
 ],
 "properties": {
  "url": {
   "type": "string",
   "description": "URL of an image from which to extract text."
  },
  "language": {
   "type": "string",
   "default": "en",
   "description": "Set the language of the results. Allowed values: 2-letter language code, see ISO 639-1."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object",
   "properties": {
    "text": {
     "type": "string",
     "description": "The full extracted text content"
    },
    "language": {
     "type": "string",
     "description": "The language of the extracted text"
    },
    "paragraphs": {
     "type": "array",
     "items": {
      "type": "object",
      "properties": {
       "box": {
        "type": "object",
        "properties": {
         "top": {
          "type": "number",
          "description": "The y-coordinate of the top edge of the paragraph box"
         },
         "left": {
          "type": "number",
          "description": "The x-coordinate of the left edge of the paragraph box"
         },
         "width": {
          "type": "number",
          "description": "The width of the paragraph box"
         },
         "height": {
          "type": "number",
          "description": "The height of the paragraph box"
         }
        }
       },
       "sentences": {
        "type": "array",
        "items": {
         "type": "object",
         "properties": {
          "box": {
           "type": "object",
           "properties": {
            "top": {
             "type": "number",
             "description": "The y-coordinate of the top edge of the sentence box"
            },
            "left": {
             "type": "number",
             "description": "The x-coordinate of the left edge of the sentence box"
            },
            "width": {
             "type": "number",
             "description": "The width of the sentence box"
            },
            "height": {
             "type": "number",
             "description": "The height of the sentence box"
            }
           }
          },
          "words": {
           "type": "array",
           "items": {
            "type": "object",
            "properties": {
             "box": {
              "type": "object",
              "properties": {
               "top": {
                "type": "number",
                "description": "The y-coordinate of the top edge of the word box"
               },
               "left": {
                "type": "number",
                "description": "The x-coordinate of the left edge of the word box"
               },
               "width": {
                "type": "number",
                "description": "The width of the word box"
               },
               "height": {
                "type": "
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agents-openwebninja-com-image-to-text-ocr-via-google-lens-31c8a583/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.openwebninja.com](https://www.zero.xyz/host/agents.openwebninja.com/llms.txt)
