API Service
Generate unique, deterministic avatars via our REST API
Endpoint
All avatars are generated through a single GET endpoint
GET
https://your-domain.com/api/avatar
Parameters
All parameters are optional. If not provided, defaults will be used.
name
stringThe name used to generate a unique avatar. Can be any string - username, email, uuid, etc.
Default: default
variant
stringThe avatar style variant
marblebeampixelsunsetringbauhausfractalmagebarcodepepe
Default: marble
size
numberSize of the avatar in pixels (width and height)
Default: 80
colors
stringComma-separated list of hex colors (without #). Example: 264653,2a9d8f,e9c46a
Default: default palette
format
stringOutput format for the avatar
svgpngwebp
Default: svg
Basic Avatar
Simple avatar with default settings
API URL
React Component
Response
The API returns an SVG image directly
Content-Type: image/svg+xml
Cache-Control: public, max-age=31536000, immutable
Usage in HTML: