POST
/
v2
/
projects
/
{project_id}
/
finetune
curl --request POST \
  --url https://api.metatext.ai/v2/projects/{project_id}/finetune \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "taskType": "classification",
  "modelBase": "<string>",
  "hyperparameters": {}
}'
{
  "finetune_job_id": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

project_id
string
required

The unique identifier of the project

Body

application/json
taskType
enum<string>
required

The type of task for which the model is being fine-tuned

Available options:
classification,
extraction,
generation
modelBase
string
required

The base model to be fine-tuned, e.g., BERT

hyperparameters
object

Hyperparameters to be used for fine-tuning the model

Response

200
application/json
Fine-tuning job initiated successfully
finetune_job_id
string

The unique identifier of the fine-tuning job