{"name":"doc-to-json","description":"Converts any document (PDF, DOCX, PPT, XLSX, or image) into structured JSON matching a caller-supplied schema. The file is converted to plain text via CloudConvert, then Morpheus mistral-31-24b runs with strict json_schema response_format to force the output shape. OCR-aware for images and scanned PDFs. Use it as a file parser with schema, invoice extractor, resume parser, contract extractor, RFP parser, receipt extractor, or form data extraction tool.","price":"$0.10","method":"POST","input_schema":{"properties":{"file_url":{"type":"string","description":"Public URL of the file. Max 25MB. Supports PDF, DOCX, DOC, PPT, PPTX, XLSX, XLS, ODT, RTF, TXT, HTML, MD, JPG, PNG, GIF, TIFF, WEBP."},"schema":{"type":"object","description":"JSON schema describing expected output. Must include 'properties'."},"instructions":{"type":"string","description":"Optional extra extraction guidance."},"ocr":{"type":"boolean","description":"Force OCR. Defaults to true for images, false for text-native formats."}},"required":["file_url","schema"]},"input_example":{"file_url":"https://example.com/invoice.pdf","schema":{"properties":{"vendor":{"type":"string"},"total_usd":{"type":"number"},"due_date":{"type":"string"},"line_items":{"type":"array","items":{"type":"object"}}},"required":["vendor","total_usd"]}},"output_example":{"file_url":"https://example.com/invoice.pdf","source_format":"pdf","text_chars":1834,"extracted":{"vendor":"Acme Corp","total_usd":1499.99,"due_date":"2026-05-30","line_items":[{"name":"Service","qty":1,"price":1499.99}]},"model":"mistral-31-24b"},"x402_payment_required":true,"x402_facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}