#### Files API

# Files REST API Overview

The Files API lets you upload, manage, and retrieve files for use with Grok models. Files can be attached to chat messages for document understanding, or added to collections for semantic search.

The base URL for all file operations is `https://api.x.ai`. You have to authenticate with the header `Authorization: Bearer <your xAI API key>`.

* [Upload](/developers/rest-api-reference/files/upload)
* [Manage](/developers/rest-api-reference/files/manage)
* [Download](/developers/rest-api-reference/files/download)
