Create

Creates a new avatar.

POST /avatars

Request

Supported mimetypes are image/png, image/jpeg.

cURL
Example
cURL
curl -X POST "https://api.live.loomai.com/v0.5/avatars" \
-H "Content-Type: multipart/form-data" \
-F "image=@{IMAGE_FILE};type=image/jpeg"
Example
curl -X POST "https://api.live.loomai.com/v0.5/avatars" \
-H "Content-Type: multipart/form-data" \
-F "image=@image.jpg;type=image/jpeg"

Parameter

Transport

Type

Description

image

form

file

Photo.

random

query

integer

(Optional) Permutation of random personalizations. Accepts range 0-30 whereas 0 is disabled (default).

Response

Schema
Example
Schema
HTTP/1.1 201 Created
X-Loom-Status: [AVATAR_ID]
Example
HTTP/1.1 201 Created
X-Loom-Status: 5723980430835712