Avatar API - Free Identicon Generator
Create deterministic, visually distinct avatars from any string input. Pass a user email, username, or ID, and the API returns a symmetric identicon pattern. The same seed always produces the same image, so you can use it as a consistent default avatar without storing files.
Code examples
curl -X POST https://api.botoi.com/v1/avatar \
-H "Content-Type: application/json" \
-d '{"seed":"john@example.com","size":256,"bg_color":"#f0f0f0"}'When to use this API
Default profile pictures
Assign every new user a unique avatar at signup by passing their email to the API. Users see a colorful identicon instead of a generic grey silhouette, which makes comment threads and member lists visually distinct.
Git commit author icons
Display identicon avatars next to commit messages in a custom Git dashboard. Hash the author email to generate a consistent icon, matching the pattern GitHub and GitLab use for users without profile photos.
Anonymous forum participants
Generate avatars from session IDs or anonymous handles so each participant in a discussion thread has a recognizable visual identity, even without an account.
Frequently asked questions
Does the same seed always produce the same avatar?
How is this different from Gravatar?
Can I customize the colors?
What is the largest size I can request?
Is the seed value stored or logged?
Get your API key
Free tier includes 5 requests per minute with no credit card required. Upgrade for higher limits.