The Styllar API
Pull the Styllar item library straight into your app (the same hand-drawn parts our builder uses) and let people (or your AI agents) build avatars with them.
Open preview: the read endpoints are live and need no key. Avatar generation, keys and MCP are next.
{ }What you can build
Pull Styllar’s hand-drawn parts (hair, clothing, accessories, backgrounds and more) into your own app.
Every item ships as layered art (z-index + PNG URLs). Stack them to draw an avatar however you like.
Query the catalog by category or free/premium plan, and page through with limit + offset.
Create an avatar from a seed or a set of items, then equip and remove pieces.
Let AI agents browse items and manage their own avatars through the Model Context Protocol.
Subscribe to events (avatar created, updated) to keep your systems in sync.
Reference · the item library
Serve Styllar items to your app
Pull the catalog of hand-drawn parts and their layer artwork, so another app can let people build Styllar avatars with your items. Live now, no key required.
Conventions
Everything you can assume about every endpoint.
The Item object
Returned by the item endpoints.
When composing an avatar, respect these: skip items whose blockedBodyTypes include the body you picked, and when an item lists conflictCategories, leave those categories out. (The roll toy above does exactly this.)
Layer
To draw an item, or a whole avatar, gather every layer, sort by z ascending, and paint each url onto the same square canvas at full size.
GET/api/v1/itemsLive
List items, newest catalog first. Filter and page with the query parameters below.
Query parameters
Request
Response
{
"object": "list",
"count": 1,
"total": 90,
"data": [
{
"id": "75b33e85-9471-4fee-982e-f2c762f99540",
"name": "Cowgirl",
"category": "Head",
"rarity": "Common",
"plan": "free",
"layers": [
{ "z": 10, "url": "https://…/parts/head/…-back-…hair.png" },
{ "z": 110, "url": "https://…/parts/head/…hair.png" }
]
}
]
}GET/api/v1/items/:idLive
Fetch a single item and its layers by id.
Path parameters
Request
Not found
{
"error": {
"type": "not_found",
"message": "No item with id 'xyz'."
}
}Response
{
"object": "item",
"data": {
"id": "75b33e85-9471-4fee-982e-f2c762f99540",
"name": "Cowgirl",
"category": "Head",
"rarity": "Common",
"plan": "free",
"layers": [
{ "z": 10, "url": "https://…hair.png" },
{ "z": 110, "url": "https://…hair.png" }
]
}
}GET/api/v1/categoriesLive
The category taxonomy, with a live item count per category.
The Category object
Request
Response
{
"object": "list",
"count": 14,
"data": [
{ "name": "Body", "baseZ": 50, "count": 8 },
{ "name": "Eyes", "baseZ": 100, "count": 33 },
{ "name": "Head", "baseZ": 110, "count": 90 }
]
}Errors
Failures return a non-2xx status and an error object with a stable type and a human-readable message.
Avatars
Generate, customize, retrieve
Create an avatar and manage it over its lifetime, from a random seed or a specific set of items. Today you can compose one client-side from the items API (see the roll toy above); managed avatars land next.
MCP
Native tools for AI agents
Styllar will be MCP-ready, so an AI agent can browse items and manage its own identity without glue code: the same catalog, exposed as tools.
Building the rest with you
API keys, avatar generation, PNG/SVG rendering, webhooks and MCP are next. Building on the items API or have a use case? Tell us what you need and we’ll prioritize it.
Get in touchDeveloper access is invite-only.
The Styllar API is in private preview. Request access and we’ll reach out when your keys are ready.