Save a model
curl --request POST \
--url https://api.veri.studio/v1/models \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"source": {
"type": "<string>",
"training_job_id": "<string>"
},
"replace_name": true,
"artifact": "<string>"
}
'import requests
url = "https://api.veri.studio/v1/models"
payload = {
"name": "<string>",
"source": {
"type": "<string>",
"training_job_id": "<string>"
},
"replace_name": True,
"artifact": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
source: {type: '<string>', training_job_id: '<string>'},
replace_name: true,
artifact: '<string>'
})
};
fetch('https://api.veri.studio/v1/models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "<string>",
"id": "<string>",
"name": "<string>",
"base_model": "<string>",
"artifact_type": "<string>",
"source": "<string>",
"status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"training_job_id": "<string>",
"huggingface_id": "<string>",
"size_bytes": 123,
"error": "<string>",
"version": {
"object": "<string>",
"id": "<string>",
"model_id": "<string>",
"model": "<string>",
"version": 123,
"name": "<string>",
"artifact_type": "<string>",
"tags": [
"<string>"
],
"pinned": true,
"status": "<string>",
"aliases": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z",
"custom_model_id": "<string>",
"dataset_snapshot_id": "<string>",
"training_job_id": "<string>",
"parent_version_id": "<string>",
"pinned_at": "2023-11-07T05:31:56Z",
"purged_at": "2023-11-07T05:31:56Z",
"created_by": "<string>"
}
}{
"object": "<string>",
"id": "<string>",
"name": "<string>",
"base_model": "<string>",
"artifact_type": "<string>",
"source": "<string>",
"status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"training_job_id": "<string>",
"huggingface_id": "<string>",
"size_bytes": 123,
"error": "<string>",
"version": {
"object": "<string>",
"id": "<string>",
"model_id": "<string>",
"model": "<string>",
"version": 123,
"name": "<string>",
"artifact_type": "<string>",
"tags": [
"<string>"
],
"pinned": true,
"status": "<string>",
"aliases": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z",
"custom_model_id": "<string>",
"dataset_snapshot_id": "<string>",
"training_job_id": "<string>",
"parent_version_id": "<string>",
"pinned_at": "2023-11-07T05:31:56Z",
"purged_at": "2023-11-07T05:31:56Z",
"created_by": "<string>"
}
}Authorizations
API key with the vk_ prefix. Create one from the dashboard.
Body
Generic create body. source.type selects the ingress path; only
training_job is accepted today (huggingface/upload return 501).
Show child attributes
Show child attributes
Apply name to an already-saved model on a repeat save (idempotent save
otherwise leaves the original name untouched).
Which artifact to save from the source job: "full" (default, the standalone checkpoint) or "adapter" (LoRA jobs only: stores the PEFT adapter dir as-is, without merging; the row records the job's base model).
Response
The existing model (idempotent repeat save)
The base checkpoint this model derives from. For artifact_type 'adapter' this names the model the adapter must be served on top of.
'full' (standalone checkpoint) | 'adapter' (LoRA adapter; only attachable to a multi_adapter deployment).
Present when the save also registered the model into a version
lineage (POST /v1/models/register with model): the version it
became (e.g. acme-bot@v6).
Show child attributes
Show child attributes
curl --request POST \
--url https://api.veri.studio/v1/models \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"source": {
"type": "<string>",
"training_job_id": "<string>"
},
"replace_name": true,
"artifact": "<string>"
}
'import requests
url = "https://api.veri.studio/v1/models"
payload = {
"name": "<string>",
"source": {
"type": "<string>",
"training_job_id": "<string>"
},
"replace_name": True,
"artifact": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
source: {type: '<string>', training_job_id: '<string>'},
replace_name: true,
artifact: '<string>'
})
};
fetch('https://api.veri.studio/v1/models', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"object": "<string>",
"id": "<string>",
"name": "<string>",
"base_model": "<string>",
"artifact_type": "<string>",
"source": "<string>",
"status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"training_job_id": "<string>",
"huggingface_id": "<string>",
"size_bytes": 123,
"error": "<string>",
"version": {
"object": "<string>",
"id": "<string>",
"model_id": "<string>",
"model": "<string>",
"version": 123,
"name": "<string>",
"artifact_type": "<string>",
"tags": [
"<string>"
],
"pinned": true,
"status": "<string>",
"aliases": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z",
"custom_model_id": "<string>",
"dataset_snapshot_id": "<string>",
"training_job_id": "<string>",
"parent_version_id": "<string>",
"pinned_at": "2023-11-07T05:31:56Z",
"purged_at": "2023-11-07T05:31:56Z",
"created_by": "<string>"
}
}{
"object": "<string>",
"id": "<string>",
"name": "<string>",
"base_model": "<string>",
"artifact_type": "<string>",
"source": "<string>",
"status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"training_job_id": "<string>",
"huggingface_id": "<string>",
"size_bytes": 123,
"error": "<string>",
"version": {
"object": "<string>",
"id": "<string>",
"model_id": "<string>",
"model": "<string>",
"version": 123,
"name": "<string>",
"artifact_type": "<string>",
"tags": [
"<string>"
],
"pinned": true,
"status": "<string>",
"aliases": [
"<string>"
],
"created_at": "2023-11-07T05:31:56Z",
"custom_model_id": "<string>",
"dataset_snapshot_id": "<string>",
"training_job_id": "<string>",
"parent_version_id": "<string>",
"pinned_at": "2023-11-07T05:31:56Z",
"purged_at": "2023-11-07T05:31:56Z",
"created_by": "<string>"
}
}
