Upload
To upload a new dataset file:file-… identifier is the assigned file-id for this file object. Pass --json to get the full response body instead.
Parameters
| Flag | Description |
|---|---|
--purpose [string] | The purpose of the file. Default: fine-tune. Must be one of:
|
--no-check | Skip local structural validation before uploading (UTF-8 and JSON object per non-empty line for JSONL). The server still validates during ingestion. |
Check
You can precheck that a file is structurally valid before uploading.List
To list previously uploaded files:Retrieve
To retrieve the metadata of a previously uploaded file:Retrieve content
To download a previously uploaded file:--output <DIRECTORY> to write the contents to disk under the file’s original filename, or --stdout to stream the contents to standard output.