Files endpoint
Upload a file to Meridian for use across batch processing and fine-tuning jobs. The API accepts multipart form data with a purpose parameter that determines how the file is consumed downstream.
POST
/v1/filesContent-Type: multipart/form-data
Request body
| Field | Type | Description |
|---|---|---|
| file | binary | The file to upload. Supported formats: JSONL, CSV, TXT, PDF. Max size 512 MB. |
| purpose | string | Intended use. Accepted values: batch or fine-tune. |
Example request
curl -X POST https://api.getnimbus.net/v1/files \ -H "Authorization: Bearer $MERIDIAN_API_KEY" \ -F "file=@training_data.jsonl" \ -F "purpose=fine-tune"
Response
{
"id": "file-abc123",
"object": "file",
"bytes": 140,
"created_at": 1717027200,
"filename": "training_data.jsonl",
"purpose": "fine-tune",
"status": "uploaded"
}File status
uploadedFile received and stored.
processingFile is being validated and indexed.
readyFile is available for use.
errorFile failed validation. Check the error field.
Notes
- Files uploaded with
purpose=batchare available for batch completion jobs within the same organization. - Files uploaded with
purpose=fine-tunemust pass format validation before they can be attached to a fine-tuning job. - All files are encrypted at rest and automatically deleted 30 days after their last use unless retention is extended via the dashboard.