Get a version's bundle
GET https://weights.fyi/run/v1/models/<model>/bundle[?version=<version_id>]
Authorization: Bearer <token> scope: read- Available since
- 2026-10-20 model versions: included in this build; see What is live for deployment status.
- Answer time
- synchronous: read from your workspace's records at once.
Returns the bundle your workspace registered with a version of a specialist (one of the service's task models with a fixed contract, such as laya-link-scorer): the champion's when you name no version, where the champion is the version that serves, or the one version names. A bundle is the signed package the version was registered with: its manifest and the files the manifest names, the model document and its weights. A runtime of your own loads exactly what the service executes, and the version's three digests come with it to check against.
For a version registered with artifact_ref instead of an inline bundle, bundle holds that reference (where the weights are stored, their digest, size and format), not the files. A version registered with neither has no bundle and answers 404 bundle_not_registered. A workspace reads only its own versions.
Request
| Name | Where | Required | Meaning |
|---|---|---|---|
Authorization | header | yes | Bearer and a token that holds the read scope. |
model | path | yes | A specialist's id, e.g. laya-link-scorer. |
version | query | no | A registered version's id; the champion's when left out. version_id is taken as the same parameter. |
Return value
200 OK:
| Field | Meaning |
|---|---|
object | model.bundle. |
model, version_id, recipe | The specialist, the version the bundle belongs to, and its recipe. |
aliases | The aliases that name the version now, out of champion, challenger and previous. |
model_sha256, weights_sha256, dataset_sha256 | The digests of the model document, the weights and the training data, as registered. |
bundle | The bundle as registered (contract, key_id, signature, manifest, and files, base64 by path), or the artifact reference. |
Errors
| Status | Code | When it happens | What to do |
|---|---|---|---|
400 | invalid_version | version holds characters a version's id cannot have. | Send the id as registered. |
401 | unauthorized, invalid_token, token_revoked, token_expired | No token, or one that does not work (any more). | Use a valid token. |
403 | scope_required, account_suspended | The token lacks read, or the account is suspended. | Use a token with read. |
404 | model_not_versioned, no_champion, version_not_found, bundle_not_registered | model is not a specialist; no version was named and none is the champion; your workspace registered no version of that id; or the version has no bundle. | Name a version that has one: has_bundle in GET /v1/models/{model}/versions. |
Examples
With laya-link-scorer in place of MODEL; the bundle is cut to its manifest's version here:
curl -s "https://weights.fyi/run/v1/models/MODEL/bundle?version=2026-11-02.1" -H "Authorization: Bearer $WEIGHTS_API_KEY"{
"object": "model.bundle",
"model": "laya-link-scorer",
"version_id": "2026-11-02.1",
"recipe": "laya-specialist/v1",
"aliases": ["champion"],
"model_sha256": "0e9d03893cf9b487b46c69b99a496bc5859890f184509f4a97d5cc1f3bb3cb8f",
"weights_sha256": "831b6f101815b4590022ea3ffed074ed5af35cfca7ecf93dda70861e50e913e4",
"dataset_sha256": "5f2c1b9e8a7d6c4b3a29180f7e6d5c4b3a2918f7e6d5c4b3a29180f7e6d5c4b3",
"bundle": {"manifest": {"version": "2026-11-02.1"}}
}History
- 2026-10-20: built.
- 2026-11-16: this page added.
See also
- POST /v1/models/{model}/versions, where a bundle is registered and checked.
- GET /v1/models/{model}/versions/{version_id}, the version without its bundle.
- POST /v1/classify, which runs the champion's bundle.