> ## 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 W&B Training API endpoints for chat completions, models, training jobs, and health checks with authentication details.

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

## 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:

```
Authorization: Bearer YOUR_API_KEY
```

## Base URL

```
https://api.training.wandb.ai/v1
```

## Available endpoints

### chat-completions

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

### models

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

### training-jobs

* **[POST /v1/preview/sft-training-jobs](https://docs.wandb.ai/training/api-reference/training-jobs/create-sft-training-job)** - Create Sft Training Job
* **[POST /v1/preview/training-jobs](https://docs.wandb.ai/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/training/api-reference/training-jobs/get-training-job)** - Get Training Job
* **[GET /v1/preview/training-jobs/{training_job_id}/events](https://docs.wandb.ai/training/api-reference/training-jobs/get-training-job-events)** - Get Training Job Events

### health

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

## Related resources

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

## Available Endpoints

### chat-completions

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

### models

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

### training-jobs

* **[POST /v1/preview/sft-training-jobs](https://docs.wandb.ai/training/api-reference/training-jobs/create-sft-training-job)** - Create Sft Training Job
* **[POST /v1/preview/training-jobs](https://docs.wandb.ai/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/training/api-reference/training-jobs/get-training-job)** - Get Training Job
* **[GET /v1/preview/training-jobs/{training_job_id}/events](https://docs.wandb.ai/training/api-reference/training-jobs/get-training-job-events)** - Get Training Job Events

### health

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