# ONE Engine Hex Encode

> ONE Engine Hex Encode is a paid API for AI agents from one-search.one-engine.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Converts a plain text string into its hexadecimal representation

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v1/hex/encode?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/one-engine-hex-encode-f81b05b7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aKZ2bwryvjCrQfIBdrZ5G

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 one-engine-hex-encode-f81b05b7 -d '<json body>'
```

Example prompt: Can you hex-encode the string 'Hello World' for me?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call hex encoding of a plain text string without setting up any local library or dependency. At $0.001 USDC per call via x402 on Base, it's ideal for autonomous agents that occasionally need hex encoding as part of a larger workflow and prefer a lightweight API call over bundling encoding logic themselves.

## Known failure modes

- Missing or empty 'text' field returns an error response
- Non-UTF-8 or malformed input may produce unexpected encoding
- Network timeout on the Cloudflare Workers edge
- Payment failure via x402 prevents the call from completing

## How this service works

Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.

## Output

A JSON object containing a single field 'hex' with the hexadecimal-encoded representation of the input text string (e.g. {'hex': '4f4e45'}).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "hex": "4f4e45"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/one-engine-hex-encode-f81b05b7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from one-search.one-engine.workers.dev](https://www.zero.xyz/host/one-search.one-engine.workers.dev/llms.txt)
