# DiceBear/UI-Avatars Avatar URL Generator

> DiceBear/UI-Avatars Avatar URL Generator is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-13).

Generates consistent avatar image URLs for any name or seed using DiceBear (19 styles) or UI-Avatars (initials), returning SVG/PNG URLs and available style list.

## Facts

- Endpoint: GET https://api.x402node.dev/identity/avatar
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-x402node-dev-6188a003
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_D_mBNvY9eiv9dd2Gt_1id

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 api-x402node-dev-6188a003
```

Example prompt: Can you generate a consistent bottts-style avatar image URL for a user named 'Alice' — I need it for auto-populating profile pictures in my demo app?

## When to prefer this

When you need to auto-generate consistent, deterministic avatar URLs for synthetic users, demo profiles, or placeholder identities without storing images — especially if you want multiple style options (bottts, avataaars, pixel-art, lorelei, initials) from a single unified endpoint rather than calling DiceBear or UI-Avatars directly.

## Known failure modes

- Unknown style name returns an error or falls back to default style
- Missing name/seed parameter returns a 400 bad request
- Network timeout if upstream DiceBear or UI-Avatars service is slow
- Invalid format parameter returns an error or defaults to SVG

## How this service works

Generate consistent avatar URLs for any name/seed via DiceBear (19 styles incl. bottts, avataaars, pixel-art, lorelei) or UI-Avatars (initials). Returns SVG/PNG URLs and available style list. Use ?name=Alice and style=bottts. Built for AI agents auto-generating profile pics for synthetic users, comments, demos. Accepts payment on Base or Solana — either network works.

## Output

Returns SVG and PNG avatar image URLs for the given name/seed using the specified style (e.g. bottts, avataaars, pixel-art, lorelei), plus a list of all available styles. Responses are deterministic — the same name and style always produce the same avatar URL.

## Example request

```json
{
 "name": "Alice",
 "style": "bottts",
 "format": "svg"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "name"
     ],
     "properties": {
      "name": {
       "type": "string",
       "description": "ENS name e.g. vitalik.eth (required)"
      },
      "size": {
       "type": "string",
       "description": "Size (optional)"
      },
      "style": {
       "type": "string",
       "description": "Style (optional)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-x402node-dev-6188a003/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
