Resolve

Resolves rendered pose or animation for given avatar & rendering id.

GET /avatars/{AVATAR_ID}/renderings/{RENDERING_ID}

Request

cURL
Example
cURL
curl -X GET "https://api.loomai.com/v0.5/avatars/{AVATAR_ID}/renderings/{RENDERING_ID}"
Example
curl -X GET "https://api.loomai.com/v0.5/avatars/5723980430835712/renderings/5739650719678464"

Response

On success the endpoint returns HTTP 200 OK as well as a JSON body containing rendered animation or pose.

Make sure to query processing status first for newly created renderings. See Avatars > Renderings > Resolve Status for details.

The actual rendered pose or animation is stored as Attachment. Hence returned JSON object includes a reference to an attachment. Embedded URL will automatically redirect to the download location of rendered pose (image/png) or animation (image/gif). Alternatively you can explicitly resolve the attachment's location using returned attachment.id. See Avatars > Attachments for details.

Schema
Example
Schema
{
"id": int64,
"random": int32,
"type": "string",
"pose": "string",
"animation": "string",
"attachment": {
"id": int64,
"width": int32,
"height": int32,
"channels": int32,
"url": "string"
}
}
Example
{
"id": 5739650719678464,
"random": 0,
"type": "pose",
"pose": "kiss",
"animation": "",
"attachment": {
"id": 5111294722572288,
"width": 1024,
"height": 1024,
"channels": 4,
"url": "/v0.5/avatars/5723980430835712/attachments/5111294722572288?redirect=true"
}
}