# DocForge DOCX Generator

> DocForge DOCX Generator is a paid API for AI agents from docforge-selim.duckdns.org, paid per call via x402, $0.01/call, status down (last checked 2026-10-13).

Generates a DOCX (Microsoft Word) document file from provided content, payable via x402 USDC on Base at $0.01 per call.

## Facts

- Endpoint: POST https://docforge-selim.duckdns.org/docx?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: down
- Last checked: 2026-10-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/docforge-docx-generator-3596ad92
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_04XBJ2jAwGEFcm_t7d8Cq

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability docforge-docx-generator-3596ad92 -d '<json body>'
```

Example prompt: Generate a Word document (.docx) for me with the following content: a professional cover letter addressed to Acme Corp from Jane Doe applying for the Senior Engineer role — use a clean, formal layout.

## When to prefer this

Use this endpoint when you need to programmatically generate a Microsoft Word (.docx) file on demand, especially in automated or agent workflows where micropayment via x402/USDC on Base is acceptable. Prefer it over PDF or HTML generators when the output must be a natively editable Word document.

## Known failure modes

- 402 Payment Required — must retry with valid x402 payment header containing USDC on Base
- Invalid or missing document content in request body — malformed or empty payload
- Payment amount insufficient — USDC payment does not meet $0.01 minimum
- Server error if document generation fails due to malformed template or unsupported content

## How this service works

Machine-payable document & media generation via x402 (USDC on Base). Endpoints respond 402 with payment instructions; retry with an x402 payment header.

## Output

A binary DOCX file (application/vnd.openxmlformats-officedocument.wordprocessingml.document) returned as the response body, representing the generated Word document ready for download or further processing.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "required": [],
     "properties": {
      "html": {
       "type": "string",
       "description": "Raw HTML body; overrides markdown when present"
      },
      "title": {
       "type": "string",
       "description": "Document title"
      },
      "markdown": {
       "type": "string",
       "description": "Markdown source of the document (or provide html)"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": "Binary DOCX file (application/vnd.openxmlformats-officedocument.wordprocessingml.document)"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/docforge-docx-generator-3596ad92/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from docforge-selim.duckdns.org](https://www.zero.xyz/host/docforge-selim.duckdns.org/llms.txt)
