Download a character
Download a character file in FBX or GLB format using the character bundle endpoint.
Step 1: Get the character ID
Use the character ID from your upload response or list it via the API.
Step 2: Download the character file
- Shell
- Python
- TypeScript
- C#
API_KEY="{{apiKey}}"
CHARACTER_ID="your-character-id"
# FBX
curl -L "https://uthana.com/motion/bundle/$CHARACTER_ID/character.fbx" \
-u $API_KEY: \
-o character.fbx
# GLB
curl -L "https://uthana.com/motion/bundle/$CHARACTER_ID/character.glb" \
-u $API_KEY: \
-o character.glb
import requests
API_KEY = "{{apiKey}}"
CHARACTER_ID = "your-character-id"
glb_url = f"https://uthana.com/motion/bundle/{CHARACTER_ID}/character.glb"
response = requests.get(glb_url, auth=(API_KEY, ""))
with open("character.glb", "wb") as f:
f.write(response.content)
const API_KEY = "{{apiKey}}";
const CHARACTER_ID = "your-character-id";
const authString = btoa(`${API_KEY}:`);
const glbUrl = `https://uthana.com/motion/bundle/${CHARACTER_ID}/character.glb`;
const response = await fetch(glbUrl, {
headers: {
Authorization: `Basic ${authString}`,
},
});
const data = await response.blob();
var apiKey = "{{apiKey}}";
var characterId = "your-character-id";
var downloadUrl = $"https://uthana.com/motion/bundle/{characterId}/character.glb";
var authValue = Convert.ToBase64String(Encoding.UTF8.GetBytes($"{apiKey}:"));
_httpClient.DefaultRequestHeaders.Authorization =
new System.Net.Http.Headers.AuthenticationHeaderValue("Basic", authValue);
var bytes = await _httpClient.GetByteArrayAsync(downloadUrl);