> ## Documentation Index > Fetch the complete documentation index at: https://docs.wafer.ai/llms.txt > Use this file to discover all available pages before exploring further. # Files API > Upload images, PDFs, and videos once, then reference them by file_id in chat completion requests. The Files API lets you upload large media to Wafer once and reference it by `file_id` in subsequent inference requests. This is the recommended path for any prompt that includes an image, document, or video — uploading once and referencing many times avoids hitting the 50 MB per-request body cap and lets you re-use the same asset across turns without re-encoding it. Files are scoped to the Wafer user who owns the key — uploads made with one of your keys are usable by every other key on the same user account, matching the OpenAI and Anthropic Files API contract. ## Endpoints | Method | Path | Host | Auth | | -------- | --------------------- | --------------- | ---------------------------------------------- | | `POST` | `/v1/files` | `pass.wafer.ai` | `Authorization: Bearer ` Serverless key | | `GET` | `/v1/files` | `api.wafer.ai` | Dashboard session (signed in at app.wafer.ai) | | `GET` | `/v1/files/{file_id}` | `api.wafer.ai` | Dashboard session | | `DELETE` | `/v1/files/{file_id}` | `api.wafer.ai` | Dashboard session | Upload runs on the inference edge — a `wfr_…` key is enough. Listing, inspecting, and deleting files are management actions and currently live on `app.wafer.ai`, behind your dashboard login. For most workflows you upload from code and manage in the UI. ## Upload The upload request body is the raw file bytes — not multipart. File metadata travels in headers: ```bash theme={null} curl -sS "https://pass.wafer.ai/v1/files" \ -X POST \ -H "Authorization: Bearer " \ -H "Content-Type: image/png" \ -H "X-Wafer-Purpose: vision" \ -H "X-Wafer-Filename: screenshot.png" \ --data-binary @./screenshot.png ``` Required headers: * `Authorization: Bearer ` — your Serverless API key. * `Content-Type: ` — the file's MIME type. Must be one of the allowed types for the declared purpose (see below). * `X-Wafer-Purpose: ` — one of `vision`, `document`, or `video`. Optional headers: * `X-Wafer-Filename: