{
  "x402Version": 2,
  "id": 31029,
  "slug": "31029",
  "resource": "https://flat-rate-llm.kikoribera03.workers.dev/v1/ai/document",
  "description": "Turns a document into clean Markdown in about a second: pass an https URL or base64 of a PDF, Word, Excel, PowerPoint, HTML, CSV or XML file and get the text back with its headings, tables and page markers, plus the token count. It reads the text layer, so a scanned page with no text layer comes back without text. You are only charged if the Markdown is delivered. No API key, no account.",
  "type": "http",
  "resourceType": "AI Inference",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xc210Ea7D5692a6401ADf25BbCB7aCDe9cDB7e9Ff",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0xc210Ea7D5692a6401ADf25BbCB7aCDe9cDB7e9Ff",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 300
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0xc210Ea7D5692a6401ADf25BbCB7aCDe9cDB7e9Ff",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "url": "https://flat-rate-llm.kikoribera03.workers.dev/m/muestra-documento.pdf"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "bytes": 821,
            "characters": 362,
            "filename": "muestra-documento.pdf",
            "markdown": "# muestra-documento.pdf\n## Metadata\n- PDFFormatVersion=1.4\n## Contents\n### Page 1\nFactura de prueba 2026-10-08\nTotal: 123,45 EUR",
            "mime": "application/pdf",
            "tokens": 91
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "document": {
                    "description": "The document, as base64. Use this or url.",
                    "type": "string"
                  },
                  "filename": {
                    "description": "Name with extension, e.g. invoice.pdf. Helps the converter pick the parser. Default: taken from the URL.",
                    "type": "string"
                  },
                  "url": {
                    "description": "https URL of the document to convert. Use this or document.",
                    "type": "string"
                  }
                },
                "required": [],
                "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": [
    "pdf to text",
    "pdf to markdown",
    "document parsing",
    "document extraction",
    "docx to markdown",
    "bazaar"
  ],
  "sourceHost": "flat-rate-llm.kikoribera03.workers.dev",
  "lastUpdated": "2026-10-08T23:58:53.526Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-10-08T23:58:53.351Z"
  },
  "metadata": {
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "url": "https://flat-rate-llm.kikoribera03.workers.dev/m/muestra-documento.pdf"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "bytes": 821,
              "characters": 362,
              "filename": "muestra-documento.pdf",
              "markdown": "# muestra-documento.pdf\n## Metadata\n- PDFFormatVersion=1.4\n## Contents\n### Page 1\nFactura de prueba 2026-10-08\nTotal: 123,45 EUR",
              "mime": "application/pdf",
              "tokens": 91
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {
                    "document": {
                      "description": "The document, as base64. Use this or url.",
                      "type": "string"
                    },
                    "filename": {
                      "description": "Name with extension, e.g. invoice.pdf. Helps the converter pick the parser. Default: taken from the URL.",
                      "type": "string"
                    },
                    "url": {
                      "description": "https URL of the document to convert. Use this or document.",
                      "type": "string"
                    }
                  },
                  "required": [],
                  "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": "flat-rate-llm.kikoribera03.workers.dev",
    "manifest_name": "flat-rate-llm.kikoribera03.workers.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": {
    "bytes": 821,
    "characters": 362,
    "filename": "muestra-documento.pdf",
    "markdown": "# muestra-documento.pdf\n## Metadata\n- PDFFormatVersion=1.4\n## Contents\n### Page 1\nFactura de prueba 2026-10-08\nTotal: 123,45 EUR",
    "mime": "application/pdf",
    "tokens": 91
  }
}