GET /avatars/generate
Générez des URL d'avatar uniques image URLs de a seed string (like a username ou email). Renvoie URLs de three different services: DiceBear (17 art styles, SVG/PNG), UI Avatars (initials-based), et RoboHash (robots/monsters). The same seed always produces le same avatar, making it idéal pour les user profile defaults.
seed
requis
Seed string (username, email, any text)
style
optionnel
par défaut: avataaars
DiceBear style name
size
optionnel
par défaut: 200
Image size in pixels
| Nom | Requis | Par défaut | Description |
|---|---|---|---|
seed |
Oui | - | Seed string (username, email, any text) |
style |
Non | avataaars | DiceBear style name |
size |
Non | 200 | Image size in pixels |
curl "https://nordapi.ee/api/v1/avatars/generate?seed=john_doe"
curl "https://nordapi.ee/api/v1/avatars/generate?seed=john_doe"
curl "https://nordapi.ee/api/v1/avatars/generate?seed=jane&style=pixel-art&size=400"
curl "https://nordapi.ee/api/v1/avatars/generate?seed=user@example.com&style=bottts"
{
"data": {
"dicebear": "https://api.dicebear.com/9.x/avataaars/svg?seed=john_doe&size=200",
"dicebear_png": "https://api.dicebear.com/9.x/avataaars/png?seed=john_doe&size=200",
"robohash": "https://robohash.org/john_doe?size=200x200",
"robohash_monster": "https://robohash.org/john_doe?set=set2&size=200x200",
"robohash_robot_head": "https://robohash.org/john_doe?set=set3&size=200x200",
"seed": "john_doe",
"size": 200,
"style": "avataaars",
"ui_avatar": "https://ui-avatars.com/api/?name=john_doe&size=200&background=random&color=fff"
},
"success": true
}