---
title: "Upload File"
method: POST
path: "/v1/files"
tags: ["files"]
---

# Upload File

`POST /v1/files`

Upload a file that can be used across various endpoints.

The size of individual files can be a maximum of 512 MB. The Fine-tuning API only supports .jsonl files.

Please contact us if you need to increase these storage limits.

## Response `200`

OK

- CreateFileResponse
  - `id` string, uuid, required — The unique identifier of the file.
  - `object` string, required — The object type, which is always "file".
  - `bytes` integer, required — The size of the file, in bytes.
  - `created_at` integer, required — The UNIX timestamp (in seconds) of the event.
  - `filename` string, required — The name of the uploaded file.
  - `purpose` 'fine-tune' | 'batch' | 'ocr', required
  - `sample_type` 'pretrain' | 'instruct' | 'batch_request' | 'batch_result' | 'batch_error', required
  - `num_lines` integer, nullable
  - `mimetype` string, nullable
  - `source` 'upload' | 'repository' | 'mistral', required
  - `signature` string, nullable
  - `expires_at` integer, nullable
  - `visibility` 'workspace' | 'user'

---

[API](https://skmtc.net/mistral/apis/mistral-ai-api.md) · [All operations](https://skmtc.net/mistral/apis/mistral-ai-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/mistral/mistral-ai-api/versions/933c4ebdcd72/schema)
