# x402 Content Format Converter

> x402 Content Format Converter is a paid API for AI agents from x402.valkyry.fr, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Converts content between markdown, HTML, CSV, and JSON formats via a pay-per-call API using USDC on Base.

## Facts

- Endpoint: POST https://x402.valkyry.fr/convert
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-content-format-converter-ff2e64ec
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MQ83uhr6FeB0rGs_hMOMI

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 x402-content-format-converter-ff2e64ec -d '<json body>'
```

Example prompt: Convert this markdown text to HTML for me: '# Hello World\n\nThis is a paragraph with **bold** text.'

## When to prefer this

Choose this endpoint when you need lightweight, pay-per-call format conversion between markdown, HTML, CSV, and JSON without managing a hosted conversion library. Ideal for AI agents that need on-demand document or data format transformation billed in micro-USDC amounts per call.

## Known failure modes

- Unsupported format combination (e.g. markdown to CSV) may return an error or empty result
- Malformed or extremely large input content may cause processing failure
- Payment failure via x402 protocol will result in 402 Payment Required response before conversion occurs
- Missing required fields (`from`, `to`, or `data`) will cause a validation error

## How this service works

Convert between common text formats: Markdown↔HTML and CSV↔JSON. Handy data-plumbing utility for agents and pipelines.

## Output

A JSON object containing the original `from` format, the `to` format, and a `result` string with the fully converted content in the target format (e.g. HTML markup, markdown text, JSON array, or CSV rows).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "enum": [
    "markdown",
    "html",
    "csv",
    "json"
   ],
   "type": "string"
  },
  "data": {
   "type": "string",
   "description": "Source content (markdown↔html, csv↔json)"
  },
  "from": {
   "enum": [
    "markdown",
    "html",
    "csv",
    "json"
   ],
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "html",
  "from": "markdown",
  "result": "<h1>Hello</h1>"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-content-format-converter-ff2e64ec/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.valkyry.fr](https://www.zero.xyz/host/x402.valkyry.fr/llms.txt)
