Avatar Generator API Documentation
Complete reference for the Avatar Generator API
Authentication
Authorization: Bearer sk_live_your_key_here
GET POST /v1/avatar/generate
Parameters
| Field | Type | Description |
|---|---|---|
name | string | Name or text to generate avatar from (required) |
size | integer | Size in pixels (16-512, default 128) |
style | string | initials, geometric, pixel, ring, gradient |
background | string | Hex color (auto-generated if omitted) |
color | string | Text color hex (auto contrast if omitted) |
rounded | boolean | Circle shape (default: true) |
bold | boolean | Bold text (default: true) |
format | string | svg (returns SVG), base64, json (default) |
Example
curl "https://snapapis.com/api/v1/avatar/generate?api_key=KEY&name=Jane+Smith&style=gradient&size=256"