Skip to main content
GET
Get Avatars

Overview

The Get Avatars API retrieves a paginated list of all available AI avatars organized by avatar groups. Each avatar group contains multiple “looks” (different styles/outfits) that you can use to create presenter-style videos.
Use this endpoint to discover available avatars before creating avatar videos. The look id becomes your avatarId when using the Create Storyboard Preview API.

API Endpoint


Request Headers

string
required
API key for authentication

Query Parameters

string
Base64 pagination token returned in nextPageKey from previous response. Omit for first page.

Response

The API returns avatar groups with their available looks.
array
Array of avatar group objects
string | null
Base64 pagination token for next page. null indicates no more pages available.

Avatar Group Object (items[])

string
Unique avatar group ID (e.g., “e0e84faea390465896db75a83be45085”)
string
Display name of the avatar person (e.g., “Annie”, “Brandon”).
string | null
Gender of the avatar: "Male", "Female", or null
array
Array of available looks/styles for this avatar person

Avatar Look Object (items[].looks[])

string
Unique look identifier (e.g., “Annie_expressive12_public”). Use this as avatarId in video creation.
string
Display name of the look (e.g., “Annie in Tan Jacket”, “Brandon in Grey Suit”)
string
URL to static preview image (.webp format)
string
URL to blurred preview video (.webm format) showing the avatar in action

Code Examples

Replace YOUR_API_KEY with your actual API key

Response Example


Pagination

The API returns results in pages. Use the nextPageKey to fetch subsequent pages:

Usage Example

Here’s how to fetch avatars and use them in video creation:

Filtering and Selecting Avatars

You can filter avatars based on your requirements:

Best Practices

Recommendation: Cache the avatar list to reduce API callsThe avatar list does not change frequently, so you can cache it:
  • Store the response locally or in your database
  • Refresh the cache periodically (e.g., daily or weekly)
  • Reduce latency and API calls in your application
  • Remember to handle pagination when caching
Recommendation: Fetch all pages for complete avatar listThe API returns paginated results:
  • Check nextPageKey for additional pages
  • Continue fetching until nextPageKey is null
  • Combine results from all pages
  • Cache the complete list after fetching all pages
Recommendation: Show preview videos to usersUse the previewVideo and previewImage URLs to:
  • Display avatar previews in your UI
  • Let users see avatar appearance and style
  • Show different looks for the same avatar person
  • Help users make informed selections
Recommendation: Check avatar availability before creating videosBefore hardcoding avatar IDs:
  • Fetch the latest avatar list
  • Verify the look ID exists
  • Handle cases where a look might be deprecated
  • Provide fallback options
Recommendation: Group vs Look distinction mattersRemember the hierarchy:
  • Avatar Group (items[]): The avatar person (e.g., “Annie”)
  • Avatar Look (items[].looks[]): A specific style/outfit (e.g., “Annie in Tan Jacket”)
    • Use items[].looks[].id as avatarId in video creation
One avatar person can have multiple looks to choose from.

Error Handling

Solution: Check your API key is valid and correctly formatted in the Authorization header.
Issue: Providing an invalid or expired nextPageKey parameterSolution:
  • Only use nextPageKey values returned from previous API responses
  • Do not manually construct or modify page keys
  • If pagination fails, restart from the first page
Issue: Request fails or times outSolution:
  • Check network connectivity
  • Verify the endpoint URL is correct
  • Implement retry logic with exponential backoff
  • Handle timeout errors gracefully

Create Storyboard Preview

Create presenter-style videos with avatars

Create Avatar Video Guide

Step-by-step guide to creating avatar videos

Avatar Positioning

Learn to position avatars in videos

Get Voiceover Tracks

Get available AI voices for avatar narration