{"service":"mart402","version":"0.1.0","payment":{"x402":{"enabled":true,"network":"base"},"dev_free_mode":false},"receipts":{"note":"every paid call returns X-Receipt-Id; GET /v1/receipts/{id} re-fetches the result for free (payments are never lost). Retrying the same X-PAYMENT is idempotent.","retention_days":30},"errors":{"quote_expired_or_unknown":{"retryable":true,"action":"requote"},"receipt_not_found":{"retryable":false,"action":"fix_input"},"not_a_pdf":{"retryable":false,"action":"fix_input"},"too_large_20mb":{"retryable":false,"action":"fix_input"},"llm_route_pending_supplier_approval":{"retryable":true,"action":"wait"},"payment_verify_failed":{"retryable":true,"action":"retry_payment"},"fetch_error":{"retryable":true,"action":"retry"},"use_post_with_json_body":{"retryable":false,"action":"fix_input"},"not_an_image":{"retryable":false,"action":"fix_input"},"too_large_10mb":{"retryable":false,"action":"fix_input"},"provide_image_url_or_base64":{"retryable":false,"action":"fix_input"},"ocr_engines_unavailable":{"retryable":true,"action":"retry"},"company_required":{"retryable":false,"action":"fix_input"},"resolve_failed":{"retryable":false,"action":"fix_input"},"site_unreachable":{"retryable":true,"action":"retry"},"blocked_internal_target":{"retryable":false,"action":"fix_input"}},"products":[{"id":"extract","endpoint":"POST /v1/extract","description":"URL -> main-content Markdown + metadata. JS-heavy sites are auto-rendered","price_usd":{"fast":0.002,"heavy_auto_fallback":0.006,"cache_hit":"half price"},"input":{"url":"string","mode":"auto|fast|heavy","ttl":"cache seconds (0=no cache)"},"policy":{"robots_txt":"respected","terms":"/terms (target-site rights are caller's responsibility)"}},{"id":"parse","endpoint":"POST /v1/parse/quote -> POST /v1/parse","description":"PDF -> structured Markdown. Free quote first (page count, route, final price), then pay via x402. Text-embedded and scanned PDFs are auto-routed","price_usd":{"text_embedded_flat_per_doc":0.005,"scanned_ocr_per_page":0.012,"max_sync_pages":20,"quote":"free (valid 1h); the quoted price is final"},"input":{"quote":{"url":"PDF url"},"parse":{"quote_id":"from quote"}},"note":"scanned PDFs return consensus{confidence,flags} + ocr_quality (hallucination-guarded, Mistral+Google Vision)"},{"id":"ocr","endpoint":"POST /v1/ocr","description":"Single image -> text with hallucination-guarded quality signals: dual-engine consensus (VLM + traditional OCR), calibrated confidence, per-segment corroboration. Japanese-strong","price_usd":{"per_image":0.005},"input":{"image_url":"string (or image_base64)","image_base64":"string (PNG/JPEG/WebP/GIF/BMP/TIFF, max 10MB)","lang":"japanese|latin (default japanese; affects hallucination checks)"}},{"id":"enrich","endpoint":"POST /v1/enrich","description":"Company name/domain/URL -> verified company profile from primary sources: official-site extraction + free authoritative registries (GLEIF LEI). Every field carries evidence (source URL + match grade) and calibrated confidence; missing fields are honest nulls, never guesses","price_usd":{"per_company":0.015},"input":{"company":"string (name, domain, or URL)","country_hint":"optional (e.g. jp, us)"},"note":"resolution failures (unknown name, unreachable site) are returned BEFORE any payment is settled - you are not charged for them"},{"id":"verify","endpoint":"POST /v1/verify","description":"Invoice field verification: tax-rate consistency, line-item totals, JP invoice registration number (T+13 digits) check-digit, normalized accounting JSON","price_usd":{"per_call":0.001},"input":{"fields":"extracted invoice fields (JSON)","line_items":"optional [[name, qty, unit, amount], ...]"}},{"id":"structured","endpoint":"POST /v1/structured","description":"Fills YOUR JSON schema from any URL. Hybrid LLM extraction + source-text canonicalization. Output contains only your schema keys; missing values are null","price_usd":{"per_call":0.02},"input":{"url":"string","schema":"JSON schema as {key: description}","instructions":"optional extra extraction guidance"}},{"id":"jp-company","endpoint":"POST /v1/jp-company","description":"Japanese company site -> standard profile: name, address, representative, founded, capital, business lines, employees, listing status, contact. A JP-tuned preset of /v1/structured","price_usd":{"per_call":0.02},"input":{"url":"string (company site URL; the corporate-profile page works best)"}}]}