Skip to main content
POST
Enterprise only. This endpoint is available to enterprise customers. Contact support@lemonslice.com to get access.

Example variants

Authorizations

X-API-Key
string
header
required

Your LemonSlice API token.

Body

application/json

Provide variant_ids and exactly one image source: image_url or image_base64.

image_url
string<uri>
required

A publicly reachable URL of the source image.

Example:

"https://cdn.lemonslice.com/avatars/avatar.png"

variant_ids
enum<string>[]
required

Variants to generate. bust is recommended when actions are enabled.

Minimum array length: 1
Available options:
standing,
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.

{key}
string<uri>