# Agent Rest Stop Hex/UTF-8 Converter

> Agent Rest Stop Hex/UTF-8 Converter is a paid API for AI agents from agent-gas-station.agent-gas-station.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-31).

Converts a string between hexadecimal encoding and UTF-8 text in either direction.

## Facts

- Endpoint: POST https://agent-gas-station.agent-gas-station.workers.dev/v1/HexUtf8?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-rest-stop-hex-utf-8-converter-b7880095
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Zz1x4Plvc8ntsgiYvcSVm

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 agent-rest-stop-hex-utf-8-converter-b7880095 -d '<json body>'
```

Example prompt: Convert the hex string '48656c6c6f20576f726c64' to UTF-8 text — direction is hex-to-utf8.

## When to prefer this

Choose this endpoint when you need a quick, paid-per-call hex/UTF-8 bidirectional conversion without setting up a local library — especially useful in agent workflows where encoding/decoding is a single step in a larger pipeline and you want a consistent, network-accessible utility.

## Known failure modes

- Invalid hex string (odd-length or non-hex characters) returns an error
- Missing or unrecognized direction parameter causes ambiguous or failed conversion
- Empty value field may return empty result or error
- Malformed JSON request body returns a 400-level error
- Non-UTF-8 byte sequences in hex input may cause decoding errors

## How this service works

Hex to UTF-8 or UTF-8 to hex.

## Output

A JSON response containing the converted output string — either the UTF-8 decoded text (when direction is hex-to-utf8) or the hex-encoded representation of the input (when direction is utf8-to-hex).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "value": {
   "type": "string"
  },
  "direction": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-rest-stop-hex-utf-8-converter-b7880095/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-gas-station.agent-gas-station.workers.dev](https://www.zero.xyz/host/agent-gas-station.agent-gas-station.workers.dev/llms.txt)
