# util.beauty Credits Purchase

> util.beauty Credits Purchase is a paid API for AI agents from util.beauty, paid per call via x402, $1/call, status unknown (last checked 2026-09-13).

Purchase prepaid credits on util.beauty to use for metered web utility API calls (screenshots, PDF, crypto, DNS, and net tools).

## Facts

- Endpoint: POST https://util.beauty/v1/credits/purchase
- Price: $1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/util-beauty-credits-purchase-1ba2e9bf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_httdMibH6Vg925rUfr2wm

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 util-beauty-credits-purchase-1ba2e9bf -d '<json body>'
```

Example prompt: I want to top up my util.beauty account with prepaid credits so I don't have to pay USDC per individual request — go ahead and purchase credits for me.

## When to prefer this

Choose this endpoint when you want to pre-fund a util.beauty account with credits rather than paying $1 USDC per individual API call. Prefer it when running high-volume or automated workflows that call screenshot, PDF, crypto, DNS, or net utilities frequently, where per-request x402 payments would be inefficient or disruptive. Use it to establish a credit balance that subsequent utility calls can draw from.

## Known failure modes

- Insufficient USDC balance or payment failure — purchase rejected with error response
- Invalid or missing request body — returns validation error
- Payment protocol (x402) not supported by client — transaction cannot complete
- API key not recognized or unauthorized — returns 401/403 error
- Network timeout during payment settlement — partial or failed transaction state

## How this service works

Metered web utilities for developers and AI agents: browser screenshot and PDF, crypto, DNS and net tools. Pay per request with x402 (USDC on Base) or prepaid API keys.

## Output

Returns a JSON object confirming the purchase with fields: ok (boolean success flag), utility (name of the utility context), requestId (unique request identifier string like 'req_…'), and chargedCredits (number of credits deducted or applied for this transaction).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "body": {
     "type": "object",
     "description": "JSON request body (see OpenAPI for the utility schema).",
     "additionalProperties": true
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "utility": {
       "type": "string"
      },
      "requestId": {
       "type": "string"
      },
      "chargedCredits": {
       "type": "number"
      }
     },
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "utility": "…",
  "requestId": "req_…",
  "chargedCredits": 1
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/util-beauty-credits-purchase-1ba2e9bf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from util.beauty](https://www.zero.xyz/host/util.beauty/llms.txt)
