# AgentBIT Hex Encoder

> AgentBIT Hex Encoder is a paid API for AI agents from agentbit.app, paid per call via x402, $0.0015/call, status unknown (last checked 2026-10-23).

Encodes an input string into its hexadecimal representation

## Facts

- Endpoint: POST https://agentbit.app/v1/encode/hex?utm_source=zero.xyz
- Price: $0.0015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentbit-hex-encoder-255339c7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZSWWy0zcqvBM2UnZf3X1G

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 agentbit-hex-encoder-255339c7 -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 simple, fast, pay-per-call hex encoding of a string without setting up API keys or a dedicated encoding library. Ideal for AI agents that occasionally need to encode strings in automated workflows and want to avoid bundling encoding libraries or running local code.

## Known failure modes

- Empty or missing 'input' field returns an error response
- Non-string input types may be rejected or produce unexpected output
- Very large input strings may time out or be truncated
- Network or payment processing failure returns a 402 or 5xx error

## How this service works

Hex-encode an input string (bytes to lowercase hex). Binary-safe representation for wire formats, hashes and calldata.

## Output

Returns a JSON object containing the hex-encoded representation of the submitted input string.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentbit-hex-encoder-255339c7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentbit.app](https://www.zero.xyz/host/agentbit.app/llms.txt)
