---
title: "Upload a file that can be used across various endpoints.

The Batch API only supports `.jsonl` files up to 100 MB in size. The input also has a specific required [format](/docs/batch).

Please contact us if you need to increase these storage limits."
method: POST
path: "/openai/v1/files"
tags: ["Files"]
---

# Upload a file that can be used across various endpoints.

The Batch API only supports `.jsonl` files up to 100 MB in size. The input also has a specific required [format](/docs/batch).

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

`POST /openai/v1/files`

## Response `200`

OK

- File — The `File` object represents a document that has been uploaded.
  - `id` string — The file identifier, which can be referenced in the API endpoints.
  - `bytes` integer — The size of the file, in bytes.
  - `created_at` integer — The Unix timestamp (in seconds) for when the file was created.
  - `filename` string — The name of the file.
  - `object` 'file' — The object type, which is always `file`.
  - `purpose` 'batch' | 'batch_output' — The intended purpose of the file. Supported values are `batch`, and `batch_output`.

## Changes

- **2025-01-29** `c5b2589925cd` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/groq/apis/groqcloud-api/changes/openai/v1/files/post.md)

---

[API](https://skmtc.dev/groq/apis/groqcloud-api.md) · [All operations](https://skmtc.dev/groq/apis/groqcloud-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/groq/groqcloud-api/revisions/ea91f46f212a/schema)
