Skip to content

List Model Files

GET
/v1/models/{model_id}/files
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.

model_id
required
string format: uuid
account_id

Scope to this account (the dashboard’s active account). Membership is verified upstream; a non-member gets 403.

string | null format: uuid

Scope to this account (the dashboard’s active account). Membership is verified upstream; a non-member gets 403.

project_id

The workspace the model lives in; a project-restricted key must name it.

string | null format: uuid

The workspace the model lives in; a project-restricted key must name it.

The model’s files at its export’s pinned revision

Media type application/json
ModelFilesResponse

A trained model’s files, at the revision its export recorded.

object
model_id
required

The model (its artifact_id)

string format: uuid
revision
required

The export’s pinned revision

string
files
required
Array<object>
ModelFile

One file of a trained model’s export.

object
path
required

Path within the model, ’/‘-separated

string
size
required

Size in bytes

integer
sha256

SHA-256 of the content; null for small files stored without one, which blob_id checks instead

string | null
blob_id

Git blob id (SHA-1 of ‘blob \0’ + content), set when sha256 is null

string | null
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

Media type application/json
ErrorResponse

Standard error response.

object
detail
required

Error message describing what went wrong

string
Example generated
{
"detail": "example"
}

No such model you can read

Media type application/json
ErrorResponse

Standard error response.

object
detail
required

Error message describing what went wrong

string
Example generated
{
"detail": "example"
}

The model has no pinned export to download

Media type application/json
ErrorResponse

Standard error response.

object
detail
required

Error message describing what went wrong

string
Example generated
{
"detail": "example"
}

Validation Error

Media type application/json
HTTPValidationError
object
detail
Array<object>
ValidationError
object
loc
required
Location
Array<string | integer>
msg
required
Message
string
type
required
Error Type
string
input
ctx
Context
object
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}