# UTF-16 Hex Encoder

> UTF-16 Hex Encoder is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.009/call, status unknown (last checked 2026-10-02).

Encodes input text into its UTF-16 hexadecimal representation, running locally with no network or LLM calls.

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/utf16-hex-encode?utm_source=zero.xyz
- Price: $0.009/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/utf-16-hex-encoder-41c5b4f9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_C9JS5LeTzJEDpAlp-zNR9

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 utf-16-hex-encoder-41c5b4f9 -d '<json body>'
```

Example prompt: Can you encode the text 'Hello, World!' into UTF-16 hex format?

## When to prefer this

Choose this endpoint when you need a guaranteed exact UTF-16 hex encoding of a text string without any LLM interpretation or external network calls. It is deterministic and suitable for protocol compliance, debugging byte sequences, or interoperability with systems that consume UTF-16 encoded data. Prefer the free sandbox endpoint at /v1/sandbox/utf16-hex-encode first if available; use this paid endpoint when the sandbox is unavailable or rate-limited.

## Known failure modes

- Empty or missing 'text' field returns a validation error
- Input text exceeding 100,000 characters is rejected
- Payment of $0.009 USDC not provided or rejected results in 402 Payment Required
- Malformed request body returns 400 Bad Request

## How this service works

Call when an agent needs text encoded with utf16-hex. No network and no LLM. Exact $0.009 USDC. Prefer unpaid POST /v1/sandbox/utf16-hex-encode first.

## Output

The API returns the input text encoded as a UTF-16 hexadecimal string. Each character is represented as its UTF-16 code unit(s) in hex notation. The encoding is deterministic and requires no network calls or AI processing.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "examples": [
    "Hello, World!"
   ],
   "maxLength": 100000,
   "minLength": 1,
   "description": "Input for this SKU. The route description says whether it is plain text, a URL, base64 bytes, or an already-encoded token."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/utf-16-hex-encoder-41c5b4f9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
