Skip to main content

Overview

The Avatar API provides endpoints for generating AI avatars, managing avatar metadata, publishing to the community feed, and retrieving avatar assets. All endpoints require authentication via API key.

Base URL

Authentication

All requests must include your API key in the Authorization header:

Core Endpoints

Avatar Object

Quick Start Examples

Generate Basic Avatar

Get Avatar Status

List Your Avatars

Generation Status

Avatars go through several status stages:

Error Responses

Standard error format:
Common error codes:
  • invalid_request - Missing or invalid parameters
  • authentication_required - Missing or invalid API key
  • insufficient_credits - Not enough credits for operation
  • rate_limit_exceeded - Too many requests
  • content_policy_violation - Prompt violates content policy
  • avatar_not_found - Avatar ID doesn’t exist
  • unauthorized_access - Can’t access another user’s private avatar

Rate Limits

Rate limit headers included in responses:

Webhooks

Subscribe to avatar events:
Available events:
  • avatar.completed - Generation finished successfully
  • avatar.failed - Generation failed
  • avatar.published - Avatar published to feed
  • avatar.liked - Someone liked your avatar
  • avatar.commented - New comment on avatar

Best Practices

Use idempotency keys for safe retries:

Next Steps

Generate Avatar

Create new avatars

Manage Avatars

List and organize

Publish Avatar

Share with community

Support

Questions about the Avatar API? Check our FAQ or contact support@percify.io.