# IPIntel.ai Base64 Decode API

> IPIntel.ai Base64 Decode API is a paid API for AI agents from tools.ipintel.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Decodes a Base64-encoded string (including URL-safe variants) and returns the decoded text, hex representation, UTF-8 validity, and metadata.

## Facts

- Endpoint: POST https://tools.ipintel.ai/base64-decode
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ipintel-ai-base64-decode-api-c7291e5c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eq54DZYi0WKJSTC_ml_xe

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 ipintel-ai-base64-decode-api-c7291e5c -d '<json body>'
```

Example prompt: Can you decode this Base64 string for me and tell me if it's valid UTF-8: 'aGVsbG8gd29ybGQ='?

## When to prefer this

Use this endpoint when you need to decode a Base64 string programmatically in an agent workflow, especially when you also need metadata like UTF-8 validity, hex output, or URL-safe detection — and when pay-per-call micropayment pricing via x402 fits your usage pattern.

## Known failure modes

- Invalid or malformed Base64 input returns ok:false or valid:false
- Non-UTF-8 binary data sets is_utf8:false but still returns decoded_hex
- Payment failure via x402 protocol returns 402 status before processing
- Empty input may return an error or zero-length decoded output

## How this service works

Base64 Decode API. Decode standard or URL-safe Base64 and return UTF-8 text when possible, hex output, validity, and output length. Useful for agents, developers, token inspection, API debugging, decoding workflows, data transformation, and automation tasks. Paid per call via x402.

## Output

Returns a JSON object with: ok/valid boolean flags, the decoded plain-text string, its hex representation, whether it is valid UTF-8, whether the input was URL-safe Base64, the output byte length, and a timestamp.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "type": "object",
     "additionalProperties": false,
     "properties": {
      "value": {
       "type": "string",
       "description": "Base64 value to decode"
      },
      "url_safe": {
       "type": "boolean",
       "description": "Whether the input uses URL-safe Base64"
      }
     },
     "required": [
      "value"
     ]
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "additionalProperties": true,
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "service": {
       "type": "string"
      },
      "valid": {
       "type": "boolean"
      },
      "url_safe": {
       "type": "boolean"
      },
      "decoded": {
       "type": "string"
      },
      "decoded_hex": {
       "type": "string"
      },
      "is_utf8": {
       "type": "boolean"
      },
      "output_length": {
       "type": "integer"
      },
      "timestamp": {
       "type": "string"
      }
     }
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "valid": true,
  "decoded": "hello",
  "is_utf8": true,
  "service": "base64_decode",
  "url_safe": false,
  "timestamp": "2026-06-23T00:00:00+00:00",
  "decoded_hex": "68656c6c6f",
  "output_length": 5
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ipintel-ai-base64-decode-api-c7291e5c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from tools.ipintel.ai](https://www.zero.xyz/host/tools.ipintel.ai/llms.txt)
