Avatars
User and brand avatar management.
Access it as client.avatars on a Strongly client, or the same path on AsyncStrongly with await. All methods exist on both with identical signatures.
Quick start
from strongly import Strongly
client = Strongly()
# List (auto-paginates as you iterate) # filters: name
for avatar in client.avatars.list():
print(avatar.id)
Methods
Core
list
list(*, name: str | None = None) -> SyncPaginator[Avatar]
List the avatars you may use.
Parameters
name(str | None, optional): Only the avatar with exactly this name.
create
create(*, name: str, tier: str, description: str | None = None, render_style: str | None = None, orb_color: str | None = None, orb_size: float | None = None, config: Mapping[str, Any] | None = None, resources: Mapping[str, Any] | None = None, on_demand: Mapping[str, Any] | None = None) -> Avatar
Create an avatar.
Parameters
name(str): Display name.tier(str):stylized_3drenders in the browser and runs no pod;animated_portraitandrealtime_lipsyncrun a GPU pod.description(str | None, optional): What the avatar is for.render_style(str | None, optional):stylized_3donly:vrm(default, upload a model) ororb(ready at once).orb_color(str | None, optional): Orb hex colour, e.g.#22d3ee.orb_size(float | None, optional): Orb size (default 0.6).config(Mapping[str, Any] | None, optional):{resolution, frameRate, idleMotion}.resources(Mapping[str, Any] | None, optional): GPU tiers only: the pod's{cpu, memory, gpu, gpuType, useSpot, spotFallback}.on_demand(Mapping[str, Any] | None, optional): GPU tiers only:{schedulingMode, autoShutdownMinutes}.
retrieve
retrieve(avatar_id: str) -> Avatar
Retrieve a single avatar by id.
update
update(avatar_id: str, *, name: str | None = None, description: str | None = None, render_style: str | None = None, orb_color: str | None = None, orb_size: float | None = None, config: Mapping[str, Any] | None = None, resources: Mapping[str, Any] | None = None) -> Avatar
Update an avatar and return the updated record.
Only these fields change; resources applies to GPU tiers only.
delete
delete(avatar_id: str) -> None
Delete an avatar. Raises on failure; returns nothing.
Other
preview
preview(avatar_id: str) -> AvatarPreview
Preview an avatar: its browser render handle, or a short clip from its GPU container.
An animated portrait or lip-sync avatar must be deployed first (503 until then).
Parameters
avatar_id(str): The avatar's ID.
upload_source
upload_source(avatar_id: str, file: str | Path | BinaryIO) -> AvatarSourceUpload
Upload the source asset an avatar renders from.
A stylized 3D avatar takes a VRM or glTF model; an animated portrait or
real-time lip-sync avatar takes a portrait image. The first upload moves
a new avatar on from preprocessing.
Parameters
avatar_id(str): The avatar's ID.file(str | Path | BinaryIO): A path or an open binary file.
Returns
AvatarSourceUpload:url,key,bucket,sizeandfield(sourceModelorsourceImage, the avatar field it set).