> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wandb.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# API overview

> Browse the Serverless Training API endpoints for chat completions, models, training jobs, and health checks with authentication details.

<Note>
  The Serverless Training API provides endpoints for managing training jobs, including serverless reinforcement learning (RL) and supervised fine-tuning (SFT). The API is OpenAI-compatible for chat completions.
</Note>

Use this reference to look up authentication requirements, the base URL, and the available endpoints for chat completions, models, training jobs, and health checks.

## Authentication

All API requests require authentication using your W\&B API key. Create an API key at [wandb.ai/settings](https://wandb.ai/settings).

Include your API key in the `Authorization` header:

```http theme={null}
Authorization: Bearer YOUR_API_KEY
```

## Base URL

```text theme={null}
https://api.training.wandb.ai/v1
```

## Available endpoints

The following sections describe the available endpoints, grouped by resource type.

### Chat completions

* **[POST /v1/chat/completions](https://docs.wandb.ai/serverless-training/api-reference/chat-completions/create-chat-completion-1)** - Create Chat Completion
* **[POST /v1/chat/completions/](https://docs.wandb.ai/serverless-training/api-reference/chat-completions/create-chat-completion)** - Create Chat Completion

### Models

* **[POST /v1/preview/models](https://docs.wandb.ai/serverless-training/api-reference/models/create-model)** - Create Model
* **[DELETE /v1/preview/models/{model_id}](https://docs.wandb.ai/serverless-training/api-reference/models/delete-model)** - Delete Model
* **[DELETE /v1/preview/models/{model_id}/checkpoints](https://docs.wandb.ai/serverless-training/api-reference/models/delete-model-checkpoints)** - Delete Model Checkpoints
* **[GET /v1/preview/models/{model_id}/checkpoints](https://docs.wandb.ai/serverless-training/api-reference/models/list-model-checkpoints)** - List Model Checkpoints
* **[POST /v1/preview/models/{model_id}/log](https://docs.wandb.ai/serverless-training/api-reference/models/log)** - Log

### Training jobs

* **[POST /v1/preview/sft-training-jobs](https://docs.wandb.ai/serverless-training/api-reference/training-jobs/create-sft-training-job)** - Create Sft Training Job
* **[POST /v1/preview/training-jobs](https://docs.wandb.ai/serverless-training/api-reference/training-jobs/create-rl-training-job)** - Create Rl Training Job
* **[GET /v1/preview/training-jobs/{training_job_id}](https://docs.wandb.ai/serverless-training/api-reference/training-jobs/get-training-job)** - Get Training Job
* **[GET /v1/preview/training-jobs/{training_job_id}/events](https://docs.wandb.ai/serverless-training/api-reference/training-jobs/get-training-job-events)** - Get Training Job Events

### Health

* **[GET /v1/health](https://docs.wandb.ai/serverless-training/api-reference/health/health-check)** - Health Check
* **[GET /v1/system-check](https://docs.wandb.ai/serverless-training/api-reference/health/system-check)** - System Check

## Related resources

* [Serverless Training overview](/serverless-training)
* [Prerequisites](/serverless-training/prerequisites)
* [Serverless SFT](/serverless-training/sft)
* [Use your trained models](/serverless-training/use-trained-models)
* [Available models](/serverless-training/available-models)
* [Usage limits](/serverless-training/usage-limits)
