Skip to content

Download Model File

GET
/v1/models/{model_id}/files/{path}:download
curl --request GET \
--url https://api.qualia.dev/v1/models/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/files/example:download \
--header 'X-API-Key: <X-API-Key>'

A short-lived link to one file of a trained model.

url is signed by the storage CDN and works without credentials for about an hour: fetch it directly, sending no X-API-Key. A small file with no CDN link comes inline as content_base64. Check the bytes against sha256 (or blob_id) from the listing.

model_id
required
string format: uuid
path
required
string
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.

A short-lived signed link to the file

Media type application/json
ModelFileDownload

Where to fetch one file of a trained model.

url is a short-lived link signed by the storage CDN: a bearer link to this one file, sent without credentials, until expires_at. A small file the store serves without a CDN link comes inline in content_base64.

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
url

Signed download link

string | null
expires_at

When the link stops working, if known

string | null format: date-time
content_base64

The file itself, base64, when no link exists

string | null
Example generated
{
"path": "example",
"size": 1,
"sha256": "example",
"blob_id": "example",
"url": "example",
"expires_at": "2026-04-15T12:00:00Z",
"content_base64": "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 or file

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": {}
}
]
}