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

# Upload file

`POST /v1/files`

## Query parameters

- `ai_project_id` string, nullable — Project ID to upload file to

## Response `200`

Successful Response

- OpenAIFile
  - `id` string, required
  - `bytes` integer, required
  - `created_at` integer, required
  - `filename` string, required
  - `object` string
  - `purpose` string, required
  - `status` string, nullable
  - `status_details` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/nebius/apis/nebius-openai-compatible-inference-api.md) · [All operations](https://skmtc.net/nebius/apis/nebius-openai-compatible-inference-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nebius/nebius-openai-compatible-inference-api/revisions/0fb323abba3c/schema)
