{"uid":"cap_772iO1HqV449WQ3GYDrTG","slug":"pagos-andreax-dev-documento-inteligente-ocr-summarize-translate-08985e76","name":"pagos.andreax.dev Documento Inteligente – OCR + Summarize + Translate Pipeline","description":"PIPELINE premium en una sola llamada: toma una imagen o PDF, extrae su texto (OCR), lo resume y traduce el resumen al idioma destino. Para agentes que necesitan 'entender un documento' de punta a punta (facturas, contratos, cartas, papers) sin orquestar varios servicios. Sube el archivo por multipart ('archivo') o como 'archivo_b64'. Opcional 'idioma' destino (def 'en').","url":"https://pagos.andreax.dev/api/taller/peaje/documento-inteligente","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["archivo_b64"],"properties":{"idioma":{"type":"string","description":"Idioma destino de la traducción (ISO, def 'en')"},"archivo_b64":{"type":"string","description":"Imagen/PDF en base64 (o subir 'archivo' por multipart)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_DJvljY7RVkjyS_xeBH8tK","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Accepts an image or PDF, extracts its text via OCR, summarizes it, and translates the summary into a target language — all in a single API call.","exampleAgentPrompt":"Take this PDF of a Spanish contract I just uploaded, extract all the text from it, summarize it, and translate the summary into English for me.","exampleUseCases":[{"title":"Invoice understanding for accounting agent","prompt":"I have a scanned invoice image from our Italian supplier — can you extract the text, summarize what it's billing us for, and translate that summary into English?"},{"title":"Foreign research paper digest","prompt":"Here's a PDF of a Japanese research paper — run it through OCR, give me a summary, and translate the summary into English so I can quickly understand what it covers."},{"title":"Legal contract triage","prompt":"I've got a scanned French contract in base64 — extract the text, summarize the key points, and translate the summary into Spanish so our Madrid team can review it."}],"resultDescription":"Returns the OCR-extracted text from the document, a natural-language summary of that content, and a translation of the summary into the requested target language — all in one response payload.","failureModes":["Unreadable or low-quality scans may produce poor OCR output with garbled text","Unsupported file formats beyond image and PDF will cause errors","Very large files may time out or be rejected","Invalid ISO language code for 'idioma' may default to English or return an error","Base64-encoded input that is malformed will cause a decoding failure","Payment not attached or insufficient USDC balance will result in a 402 response"],"whenToPreferThis":"Choose this endpoint when you need a full document-understanding pipeline (OCR → summarize → translate) in a single call rather than orchestrating separate OCR, summarization, and translation services. Ideal for agents processing invoices, contracts, letters, or academic papers in any language, especially when the target language differs from the source document.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:43:13.673Z","isFirstParty":false}