> For the complete documentation index, see [llms.txt](https://docs.cloud.olakrutrim.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloud.olakrutrim.com/api-references/finetuning-api.md).

# Finetuning API

## GET /v1/inference/checkpoints

> List all fine\_tuning checkpoints.

```json
{"openapi":"3.1.0","info":{"title":"Fine tuning service","version":"1"},"paths":{"/v1/inference/checkpoints":{"get":{"summary":"List all fine_tuning checkpoints.","tags":["finetuning","inferencing"],"responses":{"200":{"description":"Checkpoints list.","content":{"application/json":{"schema":{"type":"array","items":{"type":"string","description":"Checkpoint name."}}}}},"400":{"description":"Unknown APIs.","content":{"application/json":{"schema":{"type":"array","items":{"type":"string","description":"API token."}}}}}},"parameters":[{"name":"x-user","in":"header","required":true,"schema":{"type":"string"},"description":"username"}]}}}}
```

## GET /v1/inference/checkpoints/{id}/del

> Delete the checkpoint

```json
{"openapi":"3.1.0","info":{"title":"Fine tuning service","version":"1"},"paths":{"/v1/inference/checkpoints/{id}/del":{"get":{"summary":"Delete the checkpoint","tags":["inferencing"],"responses":{"200":{"description":"Checkpoint is deleted."},"400":{"description":"Unknown APIs.","content":{"application/json":{"schema":{"type":"array","items":{"type":"string","description":"API token."}}}}}},"parameters":[{"name":"x-user","in":"header","required":true,"schema":{"type":"string"},"description":"username"},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}}}}
```

## GET /v1/inference/tasks

> List inference tasks

```json
{"openapi":"3.1.0","info":{"title":"Fine tuning service","version":"1"},"paths":{"/v1/inference/tasks":{"get":{"summary":"List inference tasks","tags":["inferencing"],"responses":{"200":{"description":"Inference tasks list.","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","description":"Task information.","properties":{"name":{"type":"string","description":"Task name."},"id":{"type":"string","description":"Task ID."}}}}}}},"400":{"description":"Unknown APIs.","content":{"application/json":{"schema":{"type":"array","items":{"type":"string","description":"API token."}}}}}},"parameters":[{"name":"x-user","in":"header","required":true,"schema":{"type":"string"},"description":"username"}]}}}}
```

## POST /v1/inference/tasks

> Create inference task

```json
{"openapi":"3.1.0","info":{"title":"Fine tuning service","version":"1"},"paths":{"/v1/inference/tasks":{"post":{"summary":"Create inference task","tags":["inferencing"],"responses":{"200":{"description":"Inference task is created.","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Task name."},"id":{"type":"string","description":"Task ID."}}}}}},"400":{"description":"Unknown APIs.","content":{"application/json":{"schema":{"type":"array","items":{"type":"string","description":"API token."}}}}}},"parameters":[{"name":"x-user","in":"header","required":true,"schema":{"type":"string"},"description":"username"}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"task_name":{"type":"string","description":"Task name.","required":true},"namespace":{"type":"string","description":"Task Name.","default":"gpu-scheduler"},"priority":{"type":"integer","description":"Task priority.","required":true},"model":{"type":"string","description":"Model name.","required":true},"checkpoint":{"type":"string","description":"Checkpoint name.","required":true},"ngpu":{"type":"integer","description":"Number of GPU to be used by the inference task.","required":true}}}}}}}}}}
```

## GET /v1/inference/tasks/{id}

> Get inference task information.

```json
{"openapi":"3.1.0","info":{"title":"Fine tuning service","version":"1"},"paths":{"/v1/inference/tasks/{id}":{"get":{"summary":"Get inference task information.","tags":["inferencing"],"responses":{"200":{"description":"Inference task information.","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","description":"Task name."},"namespace":{"type":"string","description":"Task namespace."},"id":{"type":"string","description":"Task ID."},"priority":{"type":"string","description":"Task priority."},"status":{"type":"string","description":"Task status."},"inference_svc_name":{"type":"string","description":"Inference service name."},"inference_svc_url":{"type":"string","description":"Inference service url."}}}}}},"400":{"description":"Unknown APIs.","content":{"application/json":{"schema":{"type":"array","items":{"type":"string","description":"API token."}}}}}},"parameters":[{"name":"x-user","in":"header","required":true,"schema":{"type":"string"},"description":"username"},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}}}}
```

## GET /v1/inference/tasks/{id}/cancel

> Cancel inference task.

```json
{"openapi":"3.1.0","info":{"title":"Fine tuning service","version":"1"},"paths":{"/v1/inference/tasks/{id}/cancel":{"get":{"summary":"Cancel inference task.","tags":["inferencing"],"responses":{"200":{"description":"Inference task is canceled"},"400":{"description":"Unknown APIs.","content":{"application/json":{"schema":{"type":"array","items":{"type":"string","description":"API token."}}}}}},"parameters":[{"name":"x-user","in":"header","required":true,"schema":{"type":"string"},"description":"username"},{"name":"id","in":"path","required":true,"schema":{"type":"string"}}]}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.cloud.olakrutrim.com/api-references/finetuning-api.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
