API Reference
Files & Fine-tuning
Upload files and run fine-tuning jobs through the gateway.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Upload files and run fine-tuning jobs through the gateway.
curl https://your-gateway/v1/files \
-H "Authorization: Bearer $KEY" \
-F "purpose=fine-tune" \
-F "file=@training_data.jsonl"
curl https://your-gateway/v1/files \
-H "Authorization: Bearer $KEY"
curl https://your-gateway/v1/files/$FILE_ID \
-H "Authorization: Bearer $KEY"
curl https://your-gateway/v1/files/$FILE_ID/content \
-H "Authorization: Bearer $KEY" \
--output data.jsonl
curl -X DELETE https://your-gateway/v1/files/$FILE_ID \
-H "Authorization: Bearer $KEY"
| Method | Path | Description |
|---|---|---|
POST | /v1/fine_tuning/jobs | Create a fine-tuning job |
GET | /v1/fine_tuning/jobs | List your jobs |
GET | /v1/fine_tuning/jobs/{id} | Get job status |
POST | /v1/fine_tuning/jobs/{id}/cancel | Cancel a job |