v1
Upload a file to xAI's storage. Returns the file's metadata. Files can be referenced by ID anywhere a `file_id` is accepted (e.g. chat attachments). Maximum file size: 50 MB. Files are kept until you delete them, or until `expires_after` elapses if set at upload time.
post/v1/files
Response
Success
Changes
No recorded changes to this endpoint across all 9 revisions of this API.