Avatar
Create Avatar
Create an avatar from a prompt or from image URLs. If a prompt is provided, it takes priority.
POST
Documentation Index
Fetch the complete documentation index at: https://docs.hoox.video/llms.txt
Use this file to discover all available pages before exploring further.
Overview
This endpoint creates a new avatar with one or more looks. You can create an avatar in two ways:- Prompt-based creation: Provide a text prompt and style to generate an avatar using AI. The prompt takes priority if provided.
- Image-based creation: Provide image URLs that will be used as-is for the avatar looks (not as reference images).
Authentication
This endpoint requires API key authentication. Include your API key in the
Authorization header.Request Body
Text prompt describing the avatar to generate. If provided, prompt-based generation takes priority over images.
Avatar style. Available options:
iphone, selfie, podcast, car, conference. Optional, defaults to iphone.Image format:
vertical (9:16) or horizontal (16:9). Only used for prompt-based generation.Custom name for the avatar.
Place or context for the avatar (e.g., “office”, “studio”).
Array of image URLs. These images are used as-is for the avatar looks (not as reference). Only used if no prompt is provided.
Array of image URLs to use as reference elements during generation. These images guide the AI to incorporate specific visual elements (logos, products, objects) into the generated avatar. Only used with prompt-based generation.
Output image resolution:
2K or 4K. Optional, defaults to 2K. Note that 4K generation costs more credits.URL to receive webhook notifications when generation completes.
Response
Unique identifier for the created avatar.
Unique identifier for the first look of the avatar. For prompt-based generation, this look will be in “pending” status initially.
Creation Methods
1. Prompt-based Creation
Provide aprompt (and optionally style, defaulting to “iphone”). The AI will generate the avatar image. The first look will start in “pending” status and become “ready” once generation completes.
With Element Images: You can also provide elementImages (or elements) to guide the AI generation with specific visual references. This is useful for incorporating logos, products, or specific objects into the generated avatar.
2. Image-based Creation
Provide animages array with image URLs. These images are used directly as the avatar looks (not as reference). The looks are immediately available with status “ready”.
Credit Costs
- Prompt-based creation (2K): 2 credits
- Prompt-based creation (4K): 4 credits
- Image-based creation: Free (no credits charged)
Next Steps
- Check Status: Use
/avatar/statusendpoint to monitor the generation progress - Edit Avatar: Use
/avatar/editendpoint to create new looks from existing ones
Error Codes
INVALID_VALUE: Invalid parameter value (webhook_url, style, or images)INSUFFICIENT_CREDITS: Not enough credits to create the avatarAVATAR_LIMIT_REACHED: Maximum number of avatars reached for your planSPACE_NOT_FOUND: Space doesn’t existFAILED_TO_PERSIST: Error saving avatar to databaseGENERATION_FAILED: Avatar generation failed (async error sent via webhook)

