{"uid":"cap_cduv1fUHL1bQ5uPzXYbkX","slug":"x402-image-translator-vision-ocr-translation-55b84294","name":"x402 Image Translator (Vision OCR + Translation)","description":"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.","url":"https://x402-deployer.x402-deployer.workers.dev/image-translate?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"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"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_fo5APPCoox4dafDd_7Bhd","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Translates text found in images (signs, menus, screenshots, documents) using vision-OCR extraction followed by language translation, with optional layout preservation.","exampleAgentPrompt":"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?","exampleUseCases":[{"title":"Translating foreign street signs","prompt":"I have a photo of a street sign in Arabic — can you read all the text in it and translate it to English for me?"},{"title":"Decoding a product label photo","prompt":"I snapped a picture of a food product label written in Korean. Can you extract all the text from the image and translate it to English, preserving the layout so I know what each section says?"},{"title":"Understanding a foreign document screenshot","prompt":"I have a screenshot of a legal document in French. Please OCR the text and translate it to English so I can understand what it says."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T18:36:35.379Z","isFirstParty":false,"canonicalSlug":"x402-image-translator-vision-ocr-translation-55b84294"}