# Relaystation Mustache Template Renderer

> Relaystation Mustache Template Renderer is a paid API for AI agents from api.relaystation.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Renders a logic-less Mustache-subset template safely against a provided data context, with no eval and injection protection.

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/text/template
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/relaystation-mustache-template-renderer-e1bb3ce0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ecuwqdm9Gt0GQ3F4mAfVX

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 relaystation-mustache-template-renderer-e1bb3ce0 -d '<json body>'
```

Example prompt: Take this Mustache template — 'Hello, {{name}}! Your order #{{order_id}} for {{product}} has shipped.' — and render it with the data: name='Alice', order_id='98231', product='Wireless Headphones'.

## When to prefer this

Choose this endpoint when you need injection-safe, logic-less Mustache template rendering without running any server-side code or eval. Ideal for AI agents generating personalized messages, notifications, or documents from structured data where safety and predictability matter. Prefer over custom templating when you need a hosted, pay-per-use solution with no infrastructure overhead.

## Known failure modes

- Malformed template syntax causes a parse error and non-200 response
- Missing required context variables result in empty substitution or error
- Payload size exceeds limits billed at $0.0002/MB causing unexpected cost
- Invalid or malformed JSON in the data context object
- x402 payment not fulfilled results in 402 Payment Required response

## How this service works

$0.0002/MB. Render a logic-less mustache-subset template — no eval, injection-safe. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

## Output

Returns the fully rendered string output with all Mustache placeholders substituted with the provided context values. No code is evaluated; the output is a safe, plain-text or structured string with all {{variable}} tokens replaced.

## 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": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

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