Upload Your First File
- CLI
- Python SDK
- JavaScript SDK
Upload Different File Types
- CLI
- Python SDK
- JavaScript SDK
Upload with Different Purposes:Upload with Expiration:
Upload Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
--file | string | Yes | Path to the file to upload |
--purpose | string | Yes | File purpose (batch, fine-tune, batch, vision, user_data, evals) |
--expires-after | int | No | File expiration time in seconds (e.g., 86400 for 24 hours) |

