{
  "x402Version": 2,
  "id": 33482,
  "slug": "33482",
  "resource": "https://resolve402.dev/api/doc-to-markdown",
  "description": "Convert a document (PDF, DOCX, HTML, TXT) or an image into clean Markdown for an LLM, with tables extracted as rows and OCR (French, English) for scanned PDFs and images. Give a public URL (?url=) or POST the file (multipart or raw binary, max 10 MB). Returns markdown, tables, pages, chars and source type. Charged only if text is found. Nothing stored.",
  "type": "http",
  "serviceName": "Resolve402",
  "resourceType": "AI Inference",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x30cd7CBAaafCe4457bA70DD53450CC16806Fcba9",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "55qfRaRiSLUVVxqTi1thUCmh4U94JfcnMAC4AvUNbbkK",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "5000",
      "amountUsd": 0.005,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "url": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "chars": 4210,
            "markdown": "# Quarterly report\n\nRevenue grew 12%…",
            "pages": 3,
            "source_type": "pdf",
            "tables": [
              {
                "page": 2,
                "rows": [
                  [
                    "Region",
                    "Revenue"
                  ],
                  [
                    "EU",
                    "1.2M"
                  ]
                ]
              }
            ],
            "truncated": false
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "url": {
                    "description": "Public http(s) URL of a PDF, DOCX, HTML, TXT or image (PNG, JPEG, WebP, TIFF) document (max 10 MB, 10 s fetch). Alternative: POST the file as multipart/form-data (field 'file') or as a raw binary body.",
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "documents",
    "pdf",
    "docx",
    "html",
    "markdown",
    "bazaar"
  ],
  "sourceHost": "resolve402.dev",
  "lastUpdated": "2026-10-11T13:53:42.007Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-11T13:53:41.723Z"
  },
  "metadata": {
    "serviceName": "Resolve402",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "url": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "chars": 4210,
              "markdown": "# Quarterly report\n\nRevenue grew 12%…",
              "pages": 3,
              "source_type": "pdf",
              "tables": [
                {
                  "page": 2,
                  "rows": [
                    [
                      "Region",
                      "Revenue"
                    ],
                    [
                      "EU",
                      "1.2M"
                    ]
                  ]
                }
              ],
              "truncated": false
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {
                    "url": {
                      "description": "Public http(s) URL of a PDF, DOCX, HTML, TXT or image (PNG, JPEG, WebP, TIFF) document (max 10 MB, 10 s fetch). Alternative: POST the file as multipart/form-data (field 'file') or as a raw binary body.",
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "resolve402.dev",
    "manifest_name": "resolve402.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}