Marketplace
OpenAPI
avatars — Gateway API

Avatars API

Tools

oleh RoarAPI · base path /avatars-api

Create unique identicons and initials avatars instantly. Perfect for user profiles, SaaS platforms, forums, authentication systems, developer tools, and applications that need professional default profile images.

100
Pelanggan
Baru
Peringkat
100.00%
Uptime
1048 ms
Latensi p95
Memuat endpoint…

Dokumentasi

Avatar Generator API

Avatar Generator API is a fast, scalable REST API for generating high-quality default user avatars without requiring users to upload profile pictures.

The API supports two popular avatar styles:

  • Identicons — unique geometric avatars generated deterministically from any seed such as an email, username, or user ID.
  • Initials Avatars — clean profile images displaying one or two initials with customizable colors.

Using deterministic generation means the same input always produces the same avatar, making it ideal for user accounts, APIs, authentication systems, collaborative software, chat platforms, developer tools, and enterprise applications.

The API produces both raster (PNG) and vector (SVG) output, ensuring crisp rendering on websites, mobile applications, high-DPI displays, and printed materials.

Whether you're building a social network, developer platform, project management system, CMS, CRM, support portal, or enterprise dashboard, Avatar Generator API provides reliable and consistent profile images with minimal integration effort.


Features

  • Generate deterministic identicons
  • Generate initials avatars
  • PNG output
  • SVG output
  • Consistent avatars from any seed
  • Custom avatar size
  • Custom background color
  • Custom text color
  • Automatically generated colors
  • REST API
  • API Key authentication
  • Fast response times
  • Stateless architecture
  • Production-ready
  • Easy integration

Avatar Types

TypeDescription
Identicon PNGDeterministic geometric avatar
Identicon SVGVector identicon with infinite scalability
Initials AvatarInitial-based profile image

API Endpoints

Generate Identicon (PNG)

GET

/avatar

Generate a deterministic identicon in PNG format.

Parameters
NameTypeRequiredDescription
seedstringNoUsername, email, user ID, or any unique string
sizeintegerNoAvatar size in pixels
backgroundstringNoBackground color (6-digit HEX)

Generate Identicon (SVG)

GET

/avatar.svg

Generate a scalable SVG identicon.

Parameters
NameTypeRequiredDescription
seedstringNoUsername, email, user ID, or any unique string
sizeintegerNoAvatar size in pixels
backgroundstringNoBackground color (6-digit HEX)

Generate Initials Avatar

GET

/initials

Generate a profile image containing one or two initials.

Parameters
NameTypeRequiredDescription
textstringNoPerson's name or username
sizeintegerNoAvatar size in pixels
colorstringNoText color (6-digit HEX)
backgroundstringNoBackground color (6-digit HEX). If omitted, a color is derived automatically.

Parameters

seed

Any unique string.

Examples

[email protected]
john_doe
user_123456

The same seed always generates the same avatar.


text

The text used to generate initials.

Examples

Ada Lovelace
John Smith
Alex

The API automatically extracts up to two initials.


size

Avatar dimensions in pixels.

Example

256

background

Background color.

Example

3366CC
F0F0F0

color

Text color for initials avatars.

Example

FFFFFF

Example Requests

Generate an identicon

GET /[email protected]&size=256

Generate an SVG avatar

GET /avatar.svg?seed=user123

Generate initials avatar

GET /initials?text=John Smith&background=3366CC&color=FFFFFF

Response

Successful requests return an avatar image.

Supported response types

EndpointContent Type
/avatarimage/png
/avatar.svgimage/svg+xml
/initialsimage/png

Common Use Cases

Perfect for:

  • User profile pictures
  • SaaS platforms
  • Authentication systems
  • Login pages
  • Developer portals
  • API platforms
  • CRM software
  • CMS platforms
  • Team collaboration tools
  • Chat applications
  • Community forums
  • Project management software
  • Enterprise dashboards
  • Helpdesk systems
  • E-commerce customer accounts
  • Social platforms
  • Internal company systems
  • Admin panels

Performance

  • Extremely fast image generation
  • Deterministic output
  • Stateless architecture
  • Low latency
  • Lightweight responses
  • Horizontally scalable
  • Production-ready
  • Cloud-native

Best Practices

  • Use identicons when users have not uploaded profile photos.
  • Use SVG identicons for responsive web applications.
  • Use PNG avatars for mobile apps and social profile images.
  • Store only the seed instead of the generated image.
  • Use consistent avatar sizes throughout your application.
  • Choose high-contrast text and background colors for initials avatars.

SDK Compatibility

Works with every HTTP client including:

  • JavaScript
  • TypeScript
  • Python
  • Go
  • Java
  • C#
  • PHP
  • Ruby
  • Rust
  • Swift
  • Kotlin
  • Dart
  • cURL

Endpoint

3

Semua endpoint yang disediakan avatars — Gateway API, dan fungsi masing-masing.

  • 1GET/avatars-api/avatar

    Deterministic identicon (PNG)

    Generate a symmetric identicon PNG derived from the seed — great as a default user avatar.

  • 2GET/avatars-api/avatar.svg

    Deterministic identicon (SVG)

    Generate a crisp, scalable identicon SVG derived from the seed.

  • 3GET/avatars-api/initials

    Initials avatar (PNG)

    Generate a flat initials badge — a colored square with one or two centered letters.

Harga

PaketHargaBandingkan semua 4 paket
Basic
Gratis
Pro
US$9,99/bln
Max
US$15/bln
Ultra
US$21/bln
Avatars API · RoutexAPI