Api Endpoint

x402-gateway

Document to Markdown (auto-detect): Convert any document to Markdown with automatic format detection. One endpoint for pdf, docx, pptx, xlsx, csv, epub, html and plain text — provide a URL or base64 bytes and the type is detected from the file contents. Spreadsheets return both a Markdown table and a JSON array of rows. Pay per call in USDC on Base via x402 — POST https://x402.freeq.one/tools/document_to_markdown.

Open interactive test console

Offering

Provider
x402.freeq.one
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Data
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://x402.freeq.one/tools/document_to_markdown
MIME type
application/json
First seen
2026-10-16T01:50:32.458Z
Last seen
Tags
MCP, pay-per-call, X402, USDC, Base

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.01 USDC
Atomic price: 10000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "10000",
    "payTo": "0x90b0dC893406d6eA63bb077ED59F5e8340f98d84"
  }
]

Observed health

Status
Healthy
Latest latency
104 ms
Average latency
292 ms
HTTP status
204
Last checked
Reachability
100% over 14 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "additionalProperties": false,
  "properties": {
    "body": {
      "description": "JSON request body. See GET /tools for the parameter catalog.",
      "properties": {
        "file_b64": {
          "description": "Base64-encoded document bytes (alternative to url)",
          "maxLength": 28000000,
          "type": "string"
        },
        "max_length": {
          "description": "Truncate output to N characters",
          "example": 100000,
          "type": "integer"
        },
        "url": {
          "description": "Direct URL to any supported document (pdf, docx, pptx, xlsx, csv, epub, html, text)",
          "example": "https://x402.freeq.one/samples/report.pdf",
          "type": "string"
        }
      },
      "type": "object"
    },
    "bodyType": {
      "enum": [
        "json",
        "form-data",
        "text"
      ],
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "headers": {
      "additionalProperties": {
        "type": "string"
      },
      "type": "object"
    },
    "mcpServerUrl": {
      "type": "string"
    },
    "method": {
      "enum": [
        "POST"
      ],
      "type": "string"
    },
    "queryParams": {
      "additionalProperties": {
        "type": "string"
      },
      "type": "object"
    },
    "toolName": {
      "type": "string"
    },
    "transport": {
      "type": "string"
    },
    "type": {
      "const": "http",
      "type": "string"
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "type": "object"
}

Output schema

{
  "type": "object",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "required": [
    "input"
  ],
  "properties": {
    "input": {
      "type": "object",
      "required": [
        "type",
        "method",
        "bodyType",
        "body"
      ],
      "properties": {
        "body": {
          "type": "object",
          "properties": {
            "url": {
              "type": "string",
              "example": "https://x402.freeq.one/samples/report.pdf",
              "description": "Direct URL to any supported document (pdf, docx, pptx, xlsx, csv, epub, html, text)"
            },
            "file_b64": {
              "type": "string",
              "maxLength": 28000000,
              "description": "Base64-encoded document bytes (alternative to url)"
            },
            "max_length": {
              "type": "integer",
              "example": 100000,
              "description": "Truncate output to N characters"
            }
          },
          "description": "JSON request body. See GET /tools for the parameter catalog."
        },
        "type": {
          "type": "string",
          "const": "http"
        },
        "method": {
          "enum": [
            "POST"
          ],
          "type": "string"
        },
        "headers": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "bodyType": {
          "enum": [
            "json",
            "form-data",
            "text"
          ],
          "type": "string"
        },
        "toolName": {
          "type": "string"
        },
        "transport": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "queryParams": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "mcpServerUrl": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "output": {
      "type": "object",
      "required": [
        "type"
      ],
      "properties": {
        "type": {
          "type": "string",
          "const": "json"
        },
        "example": {
          "type": "object",
          "properties": {
            "content": {
              "type": "array"
            },
            "isError": {
              "type": "boolean"
            },
            "structuredContent": {
              "type": "object"
            }
          }
        }
      }
    }
  }
}