API reference · Fine-tuning
Stop serving a fine-tune per token (idempotent)
/v1/fine-tuned-models/{fine_tuned_model_id}/disable- TypeScript
client.fineTuning.disableModel()- Python
client.fine_tuning.disable_model()- CLI
hayonix fine-tunes disable-model
The model ID stops resolving as soon as this returns (new requests get the unknown-model error); requests already running finish and are billed as usual.
Project API key (Authorization: Bearer sk_…), or a console session. Requires the fine_tune_job:update permission (a key's scope, or a role that includes it).
Examples
The samples read API_KEY and API_BASE_URL from the environment (see Setup). Values are examples.
curl -sS -X POST "$API_BASE_URL/fine-tuned-models/ftm_01jc5zq4m8k3v6x9t2w7r0b1e4/disable" \
-H "Authorization: Bearer $API_KEY"Request
| Header | Required | Description |
|---|---|---|
Authorization | yes | Bearer and your API key. The key implies its project. |
X-Project-Id | session only | The project to act in, for console sessions. Requests with an API key leave it out. |
Path parameters
fine_tuned_model_idstringrequiredID of the fine-tuned model
ID with prefix ftm_
Response
200 FineTunedModel — The model
idstringrequiredUnique ID (`ftm_…`)
ID with prefix ftm_
objectstringrequiredAlways `fine_tuned_model`: the type of this object
One of
fine_tuned_modelproject_idstringrequiredProject it belongs to
ID with prefix prj_
namestringrequiredThe model name, unique in the org
fine_tune_idstringrequiredID of the fine-tuning job
ID with prefix ftj_
checkpoint_idstringrequiredID of the checkpoint
ID with prefix ftc_
base_modelobjectrequiredThe model that was fine-tuned
ShowHide 2 fields of
base_modelidstringrequiredUnique ID (`mdl_…`)
ID with prefix mdl_
slugstringrequiredThe base model's name (`publisher/name`)
methodstringrequiredThe training method of the job that produced it
One of
supervisedpreferenceadapter_typestringrequired`lora`: a low-rank adapter on the base model; `full`: full weights
One of
lorafulladapterobject | nullrequiredThe LoRA adapter; null for a full fine-tune
ShowHide 6 fields of
adapterformatstringrequiredFile format of the adapter
bytesintegerrequiredSize in bytes
filesarray of objectrequiredThe files that make up the adapter
ShowHide 3 fields of
filespathstringrequiredPath of the file inside the adapter
bytesintegerrequiredSize in bytes
sha256stringrequiredSHA-256 of the content, hex
rankinteger | nullrequiredLoRA rank; null when not recorded
alphainteger | nullrequiredLoRA alpha; null when not recorded
target_modulesstring | array of string | any JSON | nullrequiredLayers the adapter was trained on (`all-linear` or module names); null: the model's usual LoRA targets
merged_weightsobject | nullrequiredFull weights: the base model with the adapter merged in, or the result of a full fine-tune; null when a LoRA job was created with `merge_weights: false`
ShowHide 3 fields of
merged_weightsformatstringrequiredFile format of the weights
bytesintegerrequiredSize in bytes
filesarray of objectrequiredThe files that make up the weights
ShowHide 3 fields of
filespathstringrequiredPath of the file inside the weights
bytesintegerrequiredSize in bytes
sha256stringrequiredSHA-256 of the content, hex
catalog_model_idstring | nullrequiredID of the catalog model
ID with prefix mdl_
servingobjectrequiredHow the model can be served: per token on the shared pool of its base model (`shared`), or on a dedicated endpoint (create one with `model.source = fine_tuned_model`)
ShowHide 4 fields of
servingavailablebooleanrequiredCallable per token right now under `name` (shared serving is ready)
sharedobjectrequiredShared (per-token) serving
ShowHide 6 fields of
sharedstatestringrequiredPer-token serving on the shared pool of the base model, as set by enable / disable (LoRA only)
One of
disabledenabledstatusstringrequireddisabled; loading (enabled, the pool is starting replicas with the adapter); ready (callable)
One of
disabledloadingreadyreasonstring | nullrequiredWhy the state last changed: requested, or pool_removed (by the platform)
changed_atstring (date-time) | nullrequiredTime changed (ISO 8601, UTC)
priceobject | nullrequiredWhat calling the model per token costs (nano-USD per 1M tokens, the fine-tuned price of its base model in the price book in force); null when fine-tuned inference on the base is not priced
ShowHide 6 fields of
pricecurrencystringrequiredAlways `usd`
One of
USDunitstringrequiredEvery price here is nano-USD per 1M tokens
One of
nano_usd_per_1m_tokensinputstringrequiredInteger nano-USD as a decimal string
pattern ^-?[0-9]+$
cached_inputstringrequiredInteger nano-USD as a decimal string
pattern ^-?[0-9]+$
outputstringrequiredInteger nano-USD as a decimal string
pattern ^-?[0-9]+$
batchobject | nullrequiredThe batch API price for this model, when priced
blockedobject | nullrequiredWhile disabled: why `enable` would be refused right now (the same code it would answer with), or null when it would be accepted (the `shared_adapters` quota is checked only by `enable`)
ShowHide 2 fields of
blockedcodestringrequiredMachine-readable code
One of
not_an_adapterno_shared_pooladapter_format_unavailableadapter_rank_unsupportednot_pricedshared_pool_fullmessagestringrequiredOne sentence for people
dedicatedobjectrequiredWhether a dedicated endpoint deployment on each engine finds weights for this model (false: creating one answers `artifact_unavailable`; llama.cpp needs the merged GGUF, which older models lack)
ShowHide 2 fields of
dedicatedllama_cppbooleanrequiredA llama.cpp deployment finds weights for this model
vllmbooleanrequiredA vLLM deployment finds weights for this model
formatsarray of stringrequiredServing formats the model has besides its safetensors: adapter_gguf, merged_gguf (llama.cpp engines)
created_atstring (date-time)requiredWhen it was created (ISO 8601, UTC)
Example response
{
"id": "ftm_01jc5zq4m8k3v6x9t2w7r0b1e4",
"object": "fine_tuned_model",
"project_id": "prj_01jc5zq4m8k3v6x9t2w7r0b1e4",
"name": "string",
"fine_tune_id": "ftj_01jc5zq4m8k3v6x9t2w7r0b1e4",
"checkpoint_id": "ftc_01jc5zq4m8k3v6x9t2w7r0b1e4",
"base_model": {
"id": "mdl_01jc5zq4m8k3v6x9t2w7r0b1e4",
"slug": "string"
},
"method": "supervised",
"adapter_type": "lora",
"adapter": {
"format": "string",
"bytes": 1,
"files": [
{
"path": "string",
"bytes": 1,
"sha256": "string"
}
],
"rank": 1,
"alpha": 1,
"target_modules": "string"
},
"merged_weights": {
"format": "string",
"bytes": 1,
"files": [
{
"path": "string",
"bytes": 1,
"sha256": "string"
}
]
},
"catalog_model_id": "mdl_01jc5zq4m8k3v6x9t2w7r0b1e4",
"serving": {
"available": true,
"shared": {
"state": "disabled",
"status": "disabled",
"reason": "string",
"changed_at": "2026-01-01T00:00:00.000Z",
"price": {
"currency": "USD",
"unit": "nano_usd_per_1m_tokens",
"input": "1500000000",
"cached_input": "1500000000",
"output": "1500000000",
"batch": {
"input": "1500000000",
"cached_input": "1500000000",
"output": "1500000000"
}
},
"blocked": {
"code": "not_an_adapter",
"message": "string"
}
},
"dedicated": {
"llama_cpp": true,
"vllm": true
},
"formats": [
"string"
]
},
"created_at": "2026-01-01T00:00:00.000Z"
}Errors
Errors use the standard envelope. What this operation can answer:
| Status | Type | When |
|---|---|---|
400 | invalid_request_error | A parameter or body field is missing or not allowed; param names it. |
401 | authentication_error | The key or session is missing, revoked or expired. |
403 | permission_error | The credential lacks the permission this needs, or the organization is suspended. |
404 | not_found_error | No such resource in this project (an ID from another project is answered the same way). |
409 | conflict_error | The resource's current state does not allow this. |
429 | rate_limit_error rate_limited | Too many requests; retry after retry-after seconds. |