# Document Format Converter

> Document Format Converter is a paid API for AI agents from api.the402.ai, paid per call via x402, $0.011/call, status down (last checked 2026-09-15).

Converts documents from one format to another, returning a job ID and status for async processing.

## Facts

- Endpoint: POST https://api.the402.ai/v1/services/svc_821d8796f37f4ebf/purchase
- Price: $0.011/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-the402-ai-8259877b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pekgjy-QqP6vtcpV7PitW

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 api-the402-ai-8259877b -d '<json body>'
```

Example prompt: Convert my report.docx file to PDF format — submit it as a document conversion job and give me the job ID so I can track the result.

## When to prefer this

Use this endpoint when you need to programmatically convert documents between formats via a pay-per-use API with crypto micropayment (x402/USDC). Prefer it over manual conversion tools when you need automated, agent-driven document format transformation integrated into a workflow.

## Known failure modes

- Unsupported source or target format returns an error
- Missing or malformed document payload causes a 400 response
- Payment of $0.011 USDC not completed causes a 402 rejection
- Job submission succeeds but conversion fails asynchronously — check job status endpoint
- Invalid service ID or endpoint URL returns 404

## How this service works

Purchase: Document Format Converter

## Output

Returns a JSON object with a job_id string identifying the conversion job, a status string indicating the current processing state, and a thread_id for tracking the async workflow.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "id"
 ],
 "properties": {
  "id": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "job_id": {
   "type": "string"
  },
  "status": {
   "type": "string"
  },
  "thread_id": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-the402-ai-8259877b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.the402.ai](https://www.zero.xyz/host/api.the402.ai/llms.txt)
