Upload a file
Upload a file with specified purpose, file name, and file type.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
The purpose of the file
fine-tune, eval, batch-api "fine-tune"
The name of the file being uploaded
"dataset.csv"
The content of the file being uploaded
The type of the file
csv, jsonl, parquet "jsonl"
Response
File uploaded successfully
Structured information describing a file uploaded to Together.
ID of the file.
The object type, which is always file.
The timestamp when the file was created.
The name of the file as it was uploaded.
"my_file.jsonl"
The number of bytes in the file.
The purpose of the file as it was uploaded.
fine-tune, eval, batch-api "fine-tune"
Deprecated. Whether file has been fully uploaded.
The type of the file such as jsonl, csv, or parquet.
csv, jsonl, parquet "jsonl"
Lifecycle state of the file validation pipeline. Files for
non-fine-tune purposes skip validation.
PENDING, QUEUED, RUNNING, COMPLETED, FAILED, INVALID_FORMAT Report produced by the file validation pipeline. Present once
validation has run; absent on files that bypassed validation
(non-fine-tune purposes) or have not yet been validated.