← Utilidades para desarrolladores

Generar avatar

GET /avatars/generate

Generate unique avatar imagen URLs from a seed string (like a username or email). Returns URLs from three different services: DiceBear (17 art styles, SVG/PNG), UI Avatars (initials-based), and RoboHash (robots/monsters). The same seed always produces the same avatar, haciendo it perfect for perfil de usuario defaults.

Parametros

seed requerido

Seed string (username, email, any text)

style opcional predeterminado: avataaars

DiceBear style name

size opcional predeterminado: 200

Image size in pixels

Ejemplos de solicitudes

Uso basico
curl "https://nordapi.ee/api/v1/avatars/generate?seed=john_doe"
Avatar for a username
curl "https://nordapi.ee/api/v1/avatars/generate?seed=john_doe"
Pixel art style, large
curl "https://nordapi.ee/api/v1/avatars/generate?seed=jane&style=pixel-art&size=400"
Robot avatar from email
curl "https://nordapi.ee/api/v1/avatars/generate?seed=user@example.com&style=bottts"

Respuesta en vivo

{
  "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
}