Get Avatars
Avatars
Get Avatars
Retrieve the list of available AI avatars and their looks for video creation
GET
Get Avatars
Documentation Index
Fetch the complete documentation index at: https://docs.pictory.ai/llms.txt
Use this file to discover all available pages before exploring further.
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.API Endpoint
Request Headers
API key for authentication
Query Parameters
Base64 pagination token returned in
nextPageKey from previous response. Omit for first page.Response
The API returns avatar groups with their available looks.Array of avatar group objects
Base64 pagination token for next page.
null indicates no more pages available.Avatar Group Object (items[])
Unique avatar group ID (e.g., “e0e84faea390465896db75a83be45085”)
Display name of the avatar person (e.g., “Annie”, “Brandon”).
Gender of the avatar:
"Male", "Female", or nullArray of available looks/styles for this avatar person
Avatar Look Object (items[].looks[])
Unique look identifier (e.g., “Annie_expressive12_public”). Use this as
avatarId in video creation.Display name of the look (e.g., “Annie in Tan Jacket”, “Brandon in Grey Suit”)
URL to static preview image (.webp format)
URL to blurred preview video (.webm format) showing the avatar in action
Code Examples
Response Example
Pagination
The API returns results in pages. Use thenextPageKey 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
Cache Avatar List
Cache Avatar List
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
Handle Pagination Properly
Handle Pagination Properly
Recommendation: Fetch all pages for complete avatar listThe API returns paginated results:
- Check
nextPageKeyfor additional pages - Continue fetching until
nextPageKeyisnull - Combine results from all pages
- Cache the complete list after fetching all pages
Preview Before Selection
Preview Before Selection
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
Validate Avatar Availability
Validate Avatar Availability
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
Understand Avatar Structure
Understand Avatar Structure
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[].idasavatarIdin video creation
- Use
Error Handling
401 - Unauthorized
401 - Unauthorized
Invalid Page Key
Invalid Page Key
Issue: Providing an invalid or expired
nextPageKey parameterSolution:- Only use
nextPageKeyvalues returned from previous API responses - Do not manually construct or modify page keys
- If pagination fails, restart from the first page
Network Error
Network Error
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
Related Resources
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
