# x402 Image Translator (Vision OCR + Translation)

> x402 Image Translator (Vision OCR + Translation) is a paid API for AI agents from x402-deployer.x402-deployer.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-29).

Translates text found in images (signs, menus, screenshots, documents) using vision-OCR extraction followed by language translation, with optional layout preservation.

## Facts

- Endpoint: POST https://x402-deployer.x402-deployer.workers.dev/image-translate?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-image-translator-vision-ocr-translation-55b84294
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cduv1fUHL1bQ5uPzXYbkX

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 x402-image-translator-vision-ocr-translation-55b84294 -d '<json body>'
```

Example prompt: I took a photo of a Japanese restaurant menu — can you extract all the text and translate it to English, keeping the layout so I can see which items correspond to which prices?

## When to prefer this

Choose this endpoint when you need to both extract text from an image AND translate it in a single API call, particularly for real-world photos (signs, menus, packaging, handwritten notes, documents) where the text is embedded in image pixels rather than machine-readable. It is distinct from pure OCR (no translation) or pure text translation (no image input). The preserve_layout option makes it especially useful when spatial context matters, such as menus, forms, or multi-column documents. Backed by Venice AI for translation quality.

## Known failure modes

- Image URL inaccessible or invalid — returns error indicating the image could not be fetched
- Image contains no readable text — returns empty or minimal OCR result
- Unsupported or ambiguous target language code — may return translation error
- Low-quality or blurry image — OCR may produce garbled or incomplete source text
- Very large image file — may time out on the Cloudflare Worker edge runtime
- Unsupported image format — returns format/MIME type error

## How this service works

Image translator. Translate text in any image — signs, menus, screenshots, photos of documents — by running vision-OCR plus Venice translation. Returns the detected source text plus the target-language translation. Optional preserve_layout mode keeps the original spatial arrangement.

## Output

Returns the detected source text extracted via vision-OCR from the image, along with the translated text in the target language. When preserve_layout mode is enabled, the spatial arrangement of text blocks from the original image is maintained in the output, so positional context (like menu columns or sign sections) is preserved.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [
      "image_url",
      "target_language"
     ],
     "properties": {
      "image_url": {
       "type": "string",
       "description": "URL of the image to OCR and translate. Must use http or https."
      },
      "preserve_layout": {
       "type": "boolean",
       "description": "Boolean, default true. Keeps original line breaks and spatial layout in the translation."
      },
      "target_language": {
       "type": "string",
       "description": "Language to translate detected text into (e.g. 'English', 'Japanese', 'es')."
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "translation": {
       "type": "string"
      },
      "detected_text": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-image-translator-vision-ocr-translation-55b84294/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-deployer.x402-deployer.workers.dev](https://www.zero.xyz/host/x402-deployer.x402-deployer.workers.dev/llms.txt)
