API endpoints
All endpoints are relative to the base URL https://api.llmtune.io. SendAuthorization: Bearer sk_... on every request.
Inference
| Method | Path | Description |
|---|---|---|
| POST | /v1/models/{modelId}/inference | Single-prompt completion. Body: prompt, temperature, maxTokens, etc. |
| POST | /v1/chat/completions | Chat completions. Body: model, messages, temperature, max_tokens, optional stream. |
| POST | /v1/batch/inference | Batch inference (multiple prompts). Body: modelId, requests array, optional webhookUrl. |
Agent
| Method | Path | Description |
|---|---|---|
| GET | /api/agent/v1/models | List models available for the Agent. |
| POST | /api/agent/v1/chat/completions | Chat with optional tools. Body: model, messages, tools, tool_choice, etc. |
Fine-tuning
| Method | Path | Description |
|---|---|---|
| POST | /api/fine-tune/training/start | Start a fine-tuning job. Body: base model, dataset, hyperparameters, optional webhook. |
| GET | /api/training/{jobId} | Get job status, progress, and metrics. |
| POST | /api/training/{jobId}/cancel | Cancel a running job (if supported). |
Other
| Method | Path | Description |
|---|---|---|
| GET | /api/health | Health check. |
| GET | /api/models/list | List available models (catalog). |
| GET | /api/usage/summary | Usage summary (when authenticated). |
error (and optional message) field.