API Endpoints
This section lists the primary REST endpoints grouped by domain. All endpoints are relative tohttps://llmtune.io/api.
Authentication
| Method | Endpoint | Description |
|---|---|---|
| POST | /auth/login | Authenticate users (rarely used directly; use the UI) |
| POST | /auth/logout | Terminate session |
| GET | /auth/me | Current user profile |
Datasets
| Method | Endpoint | Description |
|---|---|---|
| GET | /datasets | List datasets in workspace |
| POST | /datasets/upload | Upload new dataset version |
| GET | /datasets/{id} | Get dataset details |
| PATCH | /datasets/{id} | Update metadata (name, tags, description) |
| DELETE | /datasets/{id} | Delete dataset |
Training
| Method | Endpoint | Description |
|---|---|---|
| POST | /training/start | Launch fine-tuning job |
| GET | /training/{jobId} | Fetch job status and metrics |
| POST | /training/{jobId}/cancel | Cancel a running job |
Deployments
| Method | Endpoint | Description |
|---|---|---|
| GET | /deployments | List deployments |
| POST | /deployments | Promote training run to deployment |
| GET | /deployments/{id} | Deployment details and status |
| PATCH | /deployments/{id} | Update deployment (pause, resume) |
| DELETE | /deployments/{id} | Retire deployment |
Inference
| Method | Endpoint | Description |
|---|---|---|
| POST | /models/{deploymentId}/inference | Run chat completion |
| POST | /models/{deploymentId}/batch | Submit batch inference job |
| GET | /models/{deploymentId}/batch/{job} | Batch job status |
Usage
| Method | Endpoint | Description |
|---|---|---|
| GET | /usage/summary | Workspace usage overview |
| GET | /usage/requests | Request metrics |
| GET | /usage/tokens | Token usage |
| GET | /usage/spend | Billing summary |
Webhooks
| Method | Endpoint | Description |
|---|---|---|
| GET | /webhooks | List registered webhook endpoints |
| POST | /webhooks | Create new webhook |
| PATCH | /webhooks/{id} | Update webhook settings |
| DELETE | /webhooks/{id} | Delete webhook |
| POST | /webhooks/{id}/test | Send test event |
Playground
| Method | Endpoint | Description |
|---|---|---|
| POST | /playground/sessions | Create or reset a session |
| POST | /playground/messages | Submit message with attachments |