List Model Files
const url = 'https://api.qualia.dev/v1/models/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/files';const options = {method: 'GET', headers: {'X-API-Key': '<X-API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.qualia.dev/v1/models/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/files \ --header 'X-API-Key: <X-API-Key>'List a trained model’s files: path, size and checksum of each.
The files are those its export recorded, at that exact revision. Fetch
each with GET /v1/models/{model_id}/files/{path}:download, or the whole
model with qualia model download.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Query Parameters
Section titled “Query Parameters ”Scope to this account (the dashboard’s active account). Membership is verified upstream; a non-member gets 403.
Scope to this account (the dashboard’s active account). Membership is verified upstream; a non-member gets 403.
The workspace the model lives in; a project-restricted key must name it.
The workspace the model lives in; a project-restricted key must name it.
Responses
Section titled “ Responses ”The model’s files at its export’s pinned revision
A trained model’s files, at the revision its export recorded.
object
The model (its artifact_id)
The export’s pinned revision
One file of a trained model’s export.
object
Path within the model, ’/‘-separated
Size in bytes
SHA-256 of the content; null for small files stored without one, which blob_id checks instead
Git blob id (SHA-1 of ‘blob
Example generated
{ "model_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "revision": "example", "files": [ { "path": "example", "size": 1, "sha256": "example", "blob_id": "example" } ]}Invalid or missing API key
Standard error response.
object
Error message describing what went wrong
Example generated
{ "detail": "example"}No such model you can read
Standard error response.
object
Error message describing what went wrong
Example generated
{ "detail": "example"}The model has no pinned export to download
Standard error response.
object
Error message describing what went wrong
Example generated
{ "detail": "example"}Validation Error
object
object
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}