Model Sharing
Share your models to the public catalog so other users can discover and use them. Model sharing requires specific account permissions and admin role access.
Overview
Account Feature Required: Model sharing is an account-level feature. If your account does not have model sharing enabled, the API will return a 403 Forbidden error. Please contact Xerotier.ai support to enable model sharing on your account.
When you share a model:
- The model becomes visible in the public catalog
- Other Xerotier.ai users can discover and create endpoints using your model
- You retain ownership and can unshare at any time
- Existing endpoints continue to function even after unsharing
Catalog Roles
Every model in the public catalog is assigned a catalog role that determines which service tiers it can be used with. The two roles are:
| Role | Description | Allowed Tiers |
|---|---|---|
deployable |
Default role. Model is visible in the catalog but restricted to XIM infrastructure. | XIM only |
shared |
Model is available on shared agents and can be used with any tier. | All tiers (Free, CPU, GPU, XIM) |
When you share a model via the API, it always starts with the deployable
role. The role is promoted to shared when an administrator creates an
endpoint on shared infrastructure. See Promotion below.
Catalog Role Promotion
Catalog role promotion is an explicit admin action:
-
Promotion (deployable -> shared): When an admin creates an endpoint
on a shared (non-XIM) tier, the system promotes the catalog role to
shared. This is the only path that changes a model's catalog role. -
Demotion (shared -> deployable): Demotion is also an explicit admin
action. The model's
sharedstatus persists even if agents evict the model -- the activation service will re-provision it on available agents.
The set of models available on shared tiers is controlled by administrators and does not change automatically.
Error Responses
| HTTP Status | Error | Description |
|---|---|---|
| 403 | feature_not_enabled | Model sharing is not enabled on your account. Contact Xerotier.ai support. |
| 403 | permission_denied | User does not have admin role in the project. |
| 400 | invalid_model_status | Model is not in a valid status for sharing (must be active or ready). |
| 404 | model_not_found | The specified model does not exist or you do not have access to it. |