/v1/finetuning/finetuned-modelsTrains and deploys a fine-tuned model.Creates a new fine-tuned model. The model will be trained on the dataset specified in the request body. The training process may take some time, and the model will be available once the training is complete.
Parameters
X-Client-NamestringheaderThe name of the project that is making the request.
Request body
requiredInformation about the fine-tuned model. Must contain name and settings.
application/json
This resource represents a fine-tuned model.
completed_atstring · date-timeread-only. Timestamp for the completed fine-tuning.
created_atstring · date-timeread-only. Creation timestamp.
creator_idstringread-only. User ID of the creator.
idstringread-only. FinetunedModel ID.
last_usedstring · date-timeread-only. Deprecated: Timestamp for the latest request to this fine-tuned model.
namestringrequiredFinetunedModel name (e.g. `foobar`).
organization_idstringread-only. Organization ID.
settingsobjectrequiredThe configuration used for fine-tuning.
Show child attributes
base_modelobjectrequiredThe base model used for fine-tuning.
Show child attributes
base_typestringrequiredThe possible types of fine-tuned models. - BASE_TYPE_UNSPECIFIED: Unspecified model. - BASE_TYPE_GENERATIVE: Deprecated: Generative model. - BASE_TYPE_CLASSIFICATION: Classification model. - BASE_TYPE_RERANK: Rerank model. - BASE_TYPE_CHAT: Chat model.
namestringThe name of the base model.
strategystringThe possible strategy used to serve a fine-tuned models. - STRATEGY_UNSPECIFIED: Unspecified strategy. - STRATEGY_VANILLA: Deprecated: Serve the fine-tuned model on a dedicated GPU. - STRATEGY_TFEW: Deprecated: Serve the fine-tuned model on a shared GPU.
versionstringread-only. The version of the base model.
dataset_idstringrequiredThe data used for training and evaluating the fine-tuned model.
hyperparametersobjectThe fine-tuning hyperparameters.
Show child attributes
early_stopping_patienceinteger · int32Stops training if the loss metric does not improve beyond the value of `early_stopping_threshold` after this many times of evaluation.
early_stopping_thresholdnumber · doubleHow much the loss must improve to prevent early stopping.
learning_ratenumber · doubleThe learning rate to be used during training.
lora_alphainteger · int32Controls the scaling factor for LoRA updates. Higher values make the updates more impactful.
lora_rankinteger · int32Specifies the rank for low-rank matrices. Lower ranks reduce parameters but may limit model flexibility.
lora_target_modulesstringThe possible combinations of LoRA modules to target. - LORA_TARGET_MODULES_UNSPECIFIED: Unspecified LoRA target modules. - LORA_TARGET_MODULES_QV: LoRA adapts the query and value matrices in transformer attention layers. - LORA_TARGET_MODULES_QKVO: LoRA adapts query, key, value, and output matrices in attention layers. - LORA_TARGET_MODULES_QKVO_FFN: LoRA adapts attention projection matrices and feed-forward networks (FFN).
train_batch_sizeinteger · int32The batch size is the number of training examples included in a single training pass.
train_epochsinteger · int32The number of epochs to train for.
multi_labelbooleanread-only. Whether the model is single-label or multi-label (only for classification).
wandbobjectThe Weights & Biases configuration.
Show child attributes
api_keystringrequiredThe WandB API key to be used during training.
entitystringThe WandB entity name to be used during training.
projectstringrequiredThe WandB project name to be used during training.
statusstringThe possible stages of a fine-tuned model life-cycle. - STATUS_UNSPECIFIED: Unspecified status. - STATUS_FINETUNING: The fine-tuned model is being fine-tuned. - STATUS_DEPLOYING_API: Deprecated: The fine-tuned model is being deployed. - STATUS_READY: The fine-tuned model is ready to receive requests. - STATUS_FAILED: The fine-tuned model failed. - STATUS_DELETED: The fine-tuned model was deleted. - STATUS_TEMPORARILY_OFFLINE: Deprecated: The fine-tuned model is temporarily unavailable. - STATUS_PAUSED: Deprecated: The fine-tuned model is paused (Vanilla only). - STATUS_QUEUED: The fine-tuned model is queued for training.
updated_atstring · date-timeread-only. Latest update timestamp.
{
"name": "string",
"settings": {
"base_model": {
"base_type": "BASE_TYPE_UNSPECIFIED",
"name": "string",
"strategy": "STRATEGY_UNSPECIFIED"
},
"dataset_id": "string",
"hyperparameters": {
"early_stopping_patience": 0,
"early_stopping_threshold": 0,
"learning_rate": 0,
"lora_alpha": 0,
"lora_rank": 0,
"lora_target_modules": "LORA_TARGET_MODULES_UNSPECIFIED",
"train_batch_size": 0,
"train_epochs": 0
},
"wandb": {
"api_key": "",
"entity": "string",
"project": "string"
}
}
}Responses
Response to request to create a fine-tuned model.
finetuned_modelobjectThis resource represents a fine-tuned model.
Show child attributes
completed_atstring · date-timeread-only. Timestamp for the completed fine-tuning.
created_atstring · date-timeread-only. Creation timestamp.
creator_idstringread-only. User ID of the creator.
idstringread-only. FinetunedModel ID.
last_usedstring · date-timeread-only. Deprecated: Timestamp for the latest request to this fine-tuned model.
namestringrequiredFinetunedModel name (e.g. `foobar`).
organization_idstringread-only. Organization ID.
The configuration used for fine-tuning.
statusstringThe possible stages of a fine-tuned model life-cycle. - STATUS_UNSPECIFIED: Unspecified status. - STATUS_FINETUNING: The fine-tuned model is being fine-tuned. - STATUS_DEPLOYING_API: Deprecated: The fine-tuned model is being deployed. - STATUS_READY: The fine-tuned model is ready to receive requests. - STATUS_FAILED: The fine-tuned model failed. - STATUS_DELETED: The fine-tuned model was deleted. - STATUS_TEMPORARILY_OFFLINE: Deprecated: The fine-tuned model is temporarily unavailable. - STATUS_PAUSED: Deprecated: The fine-tuned model is paused (Vanilla only). - STATUS_QUEUED: The fine-tuned model is queued for training.
updated_atstring · date-timeread-only. Latest update timestamp.
{
"finetuned_model": {
"completed_at": "2026-06-09T00:00:00Z",
"created_at": "2026-06-09T00:00:00Z",
"creator_id": "string",
"id": "string",
"last_used": "2026-06-09T00:00:00Z",
"name": "string",
"organization_id": "string",
"settings": {
"base_model": {
"base_type": "BASE_TYPE_UNSPECIFIED",
"name": "string",
"strategy": "STRATEGY_UNSPECIFIED",
"version": "string"
},
"dataset_id": "string",
"hyperparameters": {
"early_stopping_patience": 0,
"early_stopping_threshold": 0,
"learning_rate": 0,
"lora_alpha": 0,
"lora_rank": 0,
"lora_target_modules": "LORA_TARGET_MODULES_UNSPECIFIED",
"train_batch_size": 0,
"train_epochs": 0
},
"multi_label": true,
"wandb": {
"api_key": "",
"entity": "string",
"project": "string"
}
},
"status": "STATUS_UNSPECIFIED",
"updated_at": "2026-06-09T00:00:00Z"
}
}Error is the response for any unsuccessful event.
messagestringA developer-facing error message.
{
"message": "string"
}Error is the response for any unsuccessful event.
messagestringA developer-facing error message.
{
"message": "string"
}Error is the response for any unsuccessful event.
messagestringA developer-facing error message.
{
"message": "string"
}Error is the response for any unsuccessful event.
messagestringA developer-facing error message.
{
"message": "string"
}Error is the response for any unsuccessful event.
messagestringA developer-facing error message.
{
"message": "string"
}Error is the response for any unsuccessful event.
messagestringA developer-facing error message.
{
"message": "string"
}