# Delx Commerce — Base64URL Encode

> Delx Commerce — Base64URL Encode is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Encodes an input text string into Base64URL format and returns the encoded result for $0.001 USDC per call via x402.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/base64url-encode?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-base64url-encode-bab9de74
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ocBTmTWSMbXneGuSOWaqz

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 delx-commerce-base64url-encode-bab9de74 -d '<json body>'
```

Example prompt: Can you base64url-encode the text 'hello-delx' for me?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-use base64url encoding without setting up your own encoding library or managing dependencies — especially useful in agent workflows where lightweight utility calls are needed on-demand and you want verifiable, metered delivery via USDC x402 payments on Base or Solana.

## Known failure modes

- Missing or empty 'text' field returns an error
- Malformed request body results in a 4xx response
- Payment failure via x402 (insufficient USDC balance or unsupported chain) blocks the call
- Network timeout on the Delx Commerce endpoint

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object containing the base64url-encoded representation of the input text (e.g. {"text":"aGVsbG8tZGVseA","schema":"delx/util-base64url-encode/v1"}). The encoded string uses the URL-safe Base64 alphabet (no padding, - and _ instead of + and /).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "Input field: text."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "aGVsbG8tZGVseA",
  "schema": "delx/util-base64url-encode/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-base64url-encode-bab9de74/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
