API Playground

Avatar Generator

Generate beautiful avatars with custom initials or random unique styles. Perfect for user profiles, placeholders, and more.

Configuration

200
40

Preview

JD

API Request

GET
https://api.razorapi.com/v1/avatar/initials?name=John+Doe&size=200

API Parameters

Customize your avatars with these query parameters

name string

Full name or initials to display. Automatically extracts first letters.

Example: name=John+Doe
size integer

Avatar dimensions in pixels. Range: 32-512.

Example: size=200
background hex color

Background color in hex format (without #).

Example: background=6366f1
color hex color

Text color in hex format (without #).

Example: color=ffffff
rounded boolean

Make the avatar circular when set to true.

Example: rounded=true
style string

Avatar style for random avatars (adventurer, bottts, etc.).

Example: style=avataaars

Ready to integrate?

Get your API key and start generating avatars in your applications today.