---
title: "Upload File Route"
method: POST
path: "/v1/openai/files"
---

# Upload File Route

`POST /v1/openai/files`

## Request

- Base URL: `https://api.vlm.run` (the document declares no server; this is the origin it was published from)
- URL: `https://api.vlm.run/v1/openai/files`
- Auth: HTTP bearer

## Response `201`

Successful Response

- FileModel
  - `id` string, required
  - `bytes` integer, required
  - `purpose` 'assistants' | 'assistants_output' | 'batch' | 'batch_output' | 'fine-tune' | 'fine-tune-results' | 'vision', nullable, required
  - `filename` string, required
  - `created_at` integer
  - `object` 'file'

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/vlm/apis/vlm-run-unified-server.md) · [All operations](https://skmtc.dev/vlm/apis/vlm-run-unified-server/llms.txt) · [OpenAPI document](https://skmtc.dev/vlm/apis/vlm-run-unified-server/revisions/4a68ab36546b?raw)
