Retrieve a user or guild avatar image. Supports animated avatars (GIF) when the filename starts with a_.
User or guild ID
Avatar filename (hash.ext or a_hash.ext for animated)
Target image size in pixels. Default: 128 Allowed image sizes in pixels
16, 20, 22, 24, 28, 32, 40, 44, 48, 56, 60, 64, 80, 96, 100, 128, 160, 240, 256, 300, 320, 480, 512, 600, 640, 1024, 1280, 1536, 2048, 3072, 4096 "128"
Output image format. Default: webp Allowed image output formats
png, jpg, jpeg, webp, gif "webp"
Image quality level. Default: high Image quality levels: high (default), low (smaller files), lossless (no compression)
high, low, lossless "high"
Whether to return animated images (GIF, APNG). Default: false
true, false Image data
The response is of type file.