{"name":"multilingual-doc-brief","description":"Turn a foreign-language document into a plain-English brief in one call: send a PDF and get back extracted text, the detected source language, an English (or target-language) translation, a summary, and a PII risk flag. Built for agents that need doc translation, a multilingual document brief, or to translate and summarize a foreign doc without chaining five separate calls themselves. Composite: one call runs pdf-to-text first, then detect-language + translate-text + summarize-text + detect-pii in parallel on the extracted text, and merges the results into {text, detected_language, translation, summary, pii}. Send a PDF URL (`url` or `file`) and an optional `target_lang` (default 'en'). Enrichment legs are LLM-backed and degrade gracefully if one fails; extraction failure fails the call.","price":"$0.06","method":"POST","input_schema":{"properties":{"url":{"type":"string","description":"URL of the foreign-language PDF/document to fetch and process. Provide 'url' or 'file'."},"file":{"type":"string","description":"Alternate field for the document URL, used interchangeably with 'url'. Provide 'url' or 'file'."},"target_lang":{"type":"string","description":"Target language for the translation, ISO code or name (e.g. 'en', 'Spanish'). Defaults to 'en'."}},"required":[]},"input_example":{"url":"https://raw.githubusercontent.com/py-pdf/sample-files/main/001-trivial/minimal-document.pdf","target_lang":"en"},"output_example":{"input":{"url":"https://raw.githubusercontent.com/py-pdf/sample-files/main/001-trivial/minimal-document.pdf","file":null,"target_lang":"en"},"text":"Bonjour, ceci est un rapport annuel...","page_count":4,"source_url":"https://raw.githubusercontent.com/py-pdf/sample-files/main/001-trivial/minimal-document.pdf","detected_language":{"language_code":"fr","language_name":"French","confidence":0.97},"translation":{"translated_text":"Hello, this is an annual report...","target_language":"en"},"summary":{"summary":"A short annual report covering revenue and headcount.","style":"tldr"},"pii":{"matches":[],"match_count":0,"risk_level":"none"},"composed_of":["pdf-to-text","detect-language","translate-text","summarize-text","detect-pii"],"components":[{"name":"pdf-to-text","ok":true,"ms":8200},{"name":"detect-language","ok":true,"ms":640},{"name":"translate-text","ok":true,"ms":1900},{"name":"summarize-text","ok":true,"ms":1450},{"name":"detect-pii","ok":true,"ms":1100}],"degraded":false},"x402_payment_required":true,"x402_facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}