Avatar optimization
Create avatar variants
Generate optimized avatar images from a source photo. Each requested variant reframes the character into a pose and crop that works well as a LemonSlice avatar reference image. Use the returned URL when creating a session.
POST
Enterprise only. This endpoint is available to enterprise customers. Contact support@lemonslice.com to get access.
Example variants
Authorizations
Your LemonSlice API token.
Body
application/json
Provide variant_ids and exactly one image source: image_url or image_base64.
- Image URL
- Image Bytes
A publicly reachable URL of the source image.
Example:
"https://cdn.lemonslice.com/avatars/avatar.png"
Response
Successfully generated variants. Keys are the requested variant ids; values are hosted image URLs. Variants that fail to generate are omitted.
Map of generated variant id to a hosted image URL.

