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
namestringName or text to generate avatar from (required)
sizeintegerSize in pixels (16-512, default 128)
stylestringinitials, geometric, pixel, ring, gradient
backgroundstringHex color (auto-generated if omitted)
colorstringText color hex (auto contrast if omitted)
roundedbooleanCircle shape (default: true)
boldbooleanBold text (default: true)
formatstringsvg (returns SVG), base64, json (default)

Example

curl "https://snapapis.com/api/v1/avatar/generate?api_key=KEY&name=Jane+Smith&style=gradient&size=256"