Avatars
Create and manage interactive avatars for conversational agents. Supports three tiers: client-rendered stylized 3D (VRM), and GPU-rendered Tier 2/3 avatars served by a dedicated rendering container.
All endpoints require authentication via X-API-Key header and the appropriate scope.
Avatar Object
{
"_id": "avt_abc123",
"name": "Support Agent",
"description": "Friendly customer support avatar",
"tier": "stylized_3d",
"renderStyle": "vrm",
"preprocessed": true,
"status": "ready",
"config": {
"resolution": "512x512",
"frameRate": 30,
"idleMotion": true
},
"sourceModel": "https://cdn.strongly.ai/avatars/support-agent.vrm",
"renderingEndpoint": null,
"userId": "user_456",
"organizationId": "org_xyz",
"createdAt": "2025-01-15T10:30:00Z",
"updatedAt": "2025-02-01T14:22:00Z"
}
GET /api/v1/avatars
List the avatars you may use, newest first.
Scope: avatars:read
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | No | Only the avatar with exactly this name |
limit | integer | No | Results per page |
cursor | string | No | meta.nextCursor of the previous page |
Response 200 OK
{
"data": [
{
"_id": "avt_abc123",
"name": "Support Agent",
"tier": "stylized_3d",
"status": "ready",
"userId": "user_456",
"organizationId": "org_xyz",
"createdAt": "2025-01-15T10:30:00Z"
}
],
"meta": { "total": 1, "limit": 50, "nextCursor": null, "requestId": "req_abc123" }
}
GET /api/v1/avatars/:id
Get a single avatar by ID.
Scope: avatars:read
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Avatar ID |
Response 200 OK
Returns the full Avatar object.
POST /api/v1/avatars
Create a new avatar. A stylized 3D avatar renders in the browser and runs no pod, so it carries no resources. A Tier 2/3 avatar runs a GPU pod, by default 2 vCPU, 8Gi and one nvidia-a10g.
Scope: avatars:write
Request Body
{
"name": "Support Agent",
"tier": "stylized_3d",
"description": "Friendly customer support avatar",
"config": {
"resolution": "512x512",
"frameRate": 30,
"idleMotion": true
}
}
| Field | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Avatar display name |
tier | string | Yes | stylized_3d (browser-rendered), animated_portrait or realtime_lipsync (GPU pod) |
description | string | No | Avatar description |
resources | object | No | GPU tiers only: the pod's { cpu, memory, gpu, gpuType, disk, useSpot, spotFallback }, where cpu and memory are required strings ("2", "8Gi"), gpu, gpuType and disk optional strings ("1", "nvidia-a10g") and useSpot, spotFallback booleans; ignored for stylized_3d. useSpot runs a GPU avatar on spot capacity (a reclaim drops a live call); spotFallback (default true) falls back to on-demand when no spot is available |
config.resolution | string | No | Render resolution (default 512x512) |
config.frameRate | integer | No | Render frame rate (default 30) |
config.idleMotion | boolean | No | Enable idle motion (default true) |
Response 201 Created
{
"data": {
"_id": "avt_abc123",
"name": "Support Agent",
"description": "Friendly customer support avatar",
"tier": "stylized_3d",
"renderStyle": "vrm",
"preprocessed": false,
"status": "preprocessing",
"config": { "resolution": "512x512", "frameRate": 30, "idleMotion": true },
"userId": "user_456",
"organizationId": "org_xyz",
"createdAt": "2025-02-01T14:22:00Z",
"updatedAt": "2025-02-01T14:22:00Z"
},
"meta": {
"requestId": "req_abc123"
}
}
PATCH /api/v1/avatars/:id
Update an existing avatar. Only name, description, config, resources, renderStyle, orbColor and orbSize may be modified.
Scope: avatars:write
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Avatar ID |
Request Body
{
"name": "Updated Support Agent",
"description": "Updated description",
"config": { "resolution": "1024x1024", "frameRate": 60 }
}
| Field | Type | Required | Description |
|---|---|---|---|
name | string | No | New avatar name |
description | string | No | New description |
config | object | No | Render settings to change (resolution, frameRate, idleMotion); settings you leave out keep their values |
resources | object | No | The GPU pod's new size, the whole object as POST takes it: cpu and memory required strings, gpu, gpuType and disk optional strings, useSpot and spotFallback booleans |
renderStyle | string | No | Stylized 3D avatars only: vrm or orb. An avatar that becomes an orb needs orbColor and orbSize (sent now or already set) |
orbColor | string | No | Orb colour, a hex value such as #22d3ee |
orbSize | number | No | Orb size as a share of the frame (0 to 1) |
Response 200 OK
{
"data": {
"_id": "avt_abc123"
},
"meta": {
"requestId": "req_abc123"
}
}
DELETE /api/v1/avatars/:id
Delete an avatar.
Scope: avatars:write
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Avatar ID |
Response 204 No Content
Returned when the avatar is already gone. No response body.
Response 202 Accepted
Returned while the avatar's GPU rendering pod is being torn down. The avatar reads status deleting until it is removed.
{
"data": {
"status": "deleting"
},
"meta": {
"requestId": "req_abc123"
}
}
POST /api/v1/avatars/:id/preview
Generate a preview for an avatar. For Tier 1 (stylized_3d) the client renders the VRM model directly -- the response just returns the source model URL. For Tier 2/3 the call proxies to the avatar's rendering container, which must already be deployed.
Scope: avatars:write
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Avatar ID |
Response 200 OK (Tier 1 -- stylized_3d)
{
"data": {
"avatarId": "avt_abc123",
"previewUrl": "https://cdn.strongly.ai/avatars/support-agent.vrm",
"tier": "stylized_3d",
"renderStyle": "vrm",
"message": "Tier 1 avatars render client-side. Use the VRM model URL directly."
},
"meta": {
"requestId": "req_abc123"
}
}
Response 200 OK (Tier 2/3)
{
"data": {
"avatarId": "avt_abc123",
"previewUrl": "https://renders.strongly.ai/preview/abc123.mp4",
"status": "completed"
},
"meta": {
"requestId": "req_abc123"
}
}
Error 503 Service Unavailable
Returned when the avatar's rendering container is not deployed or unreachable.
{
"type": "urn:strongly:problem:service-unavailable",
"title": "service-unavailable",
"status": 503,
"detail": "Avatar rendering container not deployed. Deploy the avatar first.",
"code": "service-unavailable",
"requestId": "req_abc123"
}
PUT /api/v1/avatars/:id/source
Upload the asset an avatar renders from, as multipart/form-data (field file): a VRM or glTF
model for tier 1, a portrait image for tiers 2 and 3. The first upload moves the avatar to its
next state.
Scope: avatars:write
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Avatar id |
Response 200 OK: { url, key, bucket, size, field }; field is sourceModel or sourceImage.