🎨 Avatar API

Generate user avatars with customizable initials, colors, and styles.

Default

Default

/api/avatar
Blue

Blue Background

/api/avatar?background=0D8ABC&color=fff
Random

Random Background

/api/avatar?background=random
Rounded

Rounded Large

/api/avatar?size=128&rounded=true
Initial

Single Initial Bold

/api/avatar?name=Elon+Musk&length=1&bold=true
Lowercase

Lowercase

/api/avatar?name=different+Case&uppercase=false
Custom

Custom Style

/api/avatar?name=Jane+Smith&size=100&fontSize=0.8&bold=true&rounded=true&background=FF6B6B
PNG

PNG Format

/api/avatar?name=Alice+Wonder&format=png

📚 API Documentation

Parameter Description Default Example
nameName to generate initialsJohn Doe?name=Jane+Smith
sizeImage size (16-512)64?size=128
fontSizeFont size percentage (0.1-1)0.5?fontSize=0.33
lengthInitials length2?length=1
roundedCircle shapefalse?rounded=true
boldBold fontfalse?bold=true
backgroundHex color without # or 'random'ddd?background=0D8ABC
colorFont hex color without #222?color=fff
uppercaseUppercase initialstrue?uppercase=false
formatImage format (svg or png)svg?format=png