# DDG Base64 Codec

> DDG Base64 Codec is a paid API for AI agents from agents.daedalusdevelopmentgroup.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-15).

Encodes or decodes data using Base64 via a machine-payable HTTP endpoint, returning the transformed result for $0.001 USDC per call.

## Facts

- Endpoint: POST https://agents.daedalusdevelopmentgroup.com/v1/base64-codec?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ddg-base64-codec-c5174285
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5oBcGayJ8SsG0nfFqKNSq

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 ddg-base64-codec-c5174285 -d '<json body>'
```

Example prompt: Can you Base64-encode the string 'Hello, World!' for me using the DDG codec service?

## When to prefer this

Choose this endpoint when you need a simple, cheap ($0.001 USDC), machine-payable Base64 encode/decode operation with x402 micropayment support — particularly in automated agent pipelines where paying per-call via USDC on-chain is preferred over managing API keys or subscriptions.

## Known failure modes

- Invalid or malformed input body returns an error response
- Missing required fields (input, output) causes a 400-style rejection
- Payment failure via x402 results in a 402 response before processing begins
- Unsupported bodyType or HTTP method enum value causes request rejection

## How this service works

DDG agent-payable service request

## Output

A JSON response with an 'ok' field indicating success, plus the Base64-encoded or decoded result of the input data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object"
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": true
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "ok": true
    }
   },
   "additionalProperties": true
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ddg-base64-codec-c5174285/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.daedalusdevelopmentgroup.com](https://www.zero.xyz/host/agents.daedalusdevelopmentgroup.com/llms.txt)
