Optimize
Take full advantage of the Streamoji Avatar API to optimize avatars to your needs.
- Optimize and balance quality and performance.
- Adjust download speed and fine-tune memory usage on your users' devices.
Using API Parameters
When you get an Avatar URL from the Avatar Creator, you can append parameters to customize the output.
Example
- Create your avatar in the embedded Avatar Creator.
- After finishing, you get the base URL of the avatar via
postMessage.
Example:https://glb.streamoji.com/api/process?avatarId=6185a4acfb622cf1cdc49348 - Append parameters. In this example, request an avatar with reduced level of detail (
meshLod=2).
URL:https://glb.streamoji.com/api/process?avatarId=6185a4acfb622cf1cdc49348&meshLod=2 - Make the request with this URL, and you'll receive a .glb avatar with a significant reduction in polycount.