Create Avatar & Download GLTF
Tutorial on how to use the API to create an avatar and download its GLTF representation.
GLTF is a premium feature. Please contact us for access.
1. Authenticate
Select the appropriate oauth2 authentication flow for your use case and obtain an API access token. See Authentication for details.
For sake of simplicity of this example, you can use your application's client credentials to authenticate directly using the oauth2 resource owner flow. Returns an access token on success.
If you use other authentication flows, make sure to enable scopes read:avatars write:avatars read:features write:features read:gltf
.
2. Create Avatar
Post a photo of a face to create an avatar. Returns response header X-Loom-Status
containing the id of created avatar if successful. See Avatars > Create for details.
3. Resolve GLTF
The GLTF of created avatar is automatically exported and can be resolved using the avatar ID. See Avatars > Attachments > List for details.
This returns a list of attachments - including uploaded photo, rendered preview & exported GTLF (type gltf
).
Last updated