Public Preview: Gravix Layer is currently in Public preview. Features are experimental and may have issues or break as ongoing updates to API endpoints and models continue.
Overview
File management allows you to:- Upload Files: Store documents, datasets, and media files
- List Files: View all uploaded files with metadata
- Download Content: Retrieve file content for processing
- Delete Files: Remove files to manage storage
Prerequisites
Before managing files, you need to set up your API key:API Key Required: You must export your GravixLayer API key in your terminal before using file operations. All file operations are tied to your API key and account.
- Windows (CMD)
- Windows (PowerShell)
- Linux/macOS
Supported File Types
File Purposes
| Purpose | Description | Use Cases |
|---|---|---|
fine-tune | Files for model fine-tuning | Training datasets, JSONL files |
batch | Files for batch processing | Bulk inference data |
vision | Image files for vision models | PNG, JPG, JPEG, GIF, WEBP |
user_data | User-specific data files | Personal documents, datasets |
evals | Evaluation and testing files | Test datasets, benchmark data |
Supported Formats
| Category | Extensions |
|---|---|
| Documents | PDF, TXT, DOCX, MD |
| Images | PNG, JPG, JPEG, GIF, WEBP |
| Data | JSON, CSV, JSONL |
| Code | PY, JS, HTML, CSS, TS |
File Expiration
File Expiration with
--expires-after:- The
--expires-afterparameter accepts time in seconds - Default behavior: Files have no expiration limit when this parameter is not specified

