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.
Example variants
Authorizations
Your LemonSlice API token.
Body
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.
"https://cdn.lemonslice.com/avatars/avatar.png"
Variants to generate. See Avatar image tips.
1standing, bust, sitting, portrait 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.

