POST
/
fine_tuning
/
jobs
/
{fine_tuning_job_id}
/
cancel
Cancel fine-tuning job
curl --request POST \
  --url https://api.anyapi.ai/v1/fine_tuning/jobs/{fine_tuning_job_id}/cancel \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "object": "fine_tuning.job",
  "created_at": 123,
  "error": {
    "code": "<string>",
    "message": "<string>",
    "param": "<string>"
  },
  "fine_tuned_model": "<string>",
  "finished_at": 123,
  "hyperparameters": {
    "batch_size": "auto",
    "learning_rate_multiplier": "auto",
    "n_epochs": "auto"
  },
  "model": "<string>",
  "organization_id": "<string>",
  "result_files": [
    "<string>"
  ],
  "status": "validating_files",
  "trained_tokens": 123,
  "training_file": "<string>",
  "validation_file": "<string>",
  "integrations": [
    {
      "type": "wandb",
      "wandb": {
        "project": "<string>",
        "name": "<string>",
        "entity": "<string>",
        "tags": [
          "<string>"
        ]
      }
    }
  ],
  "seed": 123,
  "estimated_finish": 123
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Get your API key from the dashboard.

Path Parameters

fine_tuning_job_id
string
required

The ID of the fine-tuning job to cancel

Response

200
application/json

Successful response

The response is of type object.