v1

Download the contents of a file as a stream of raw bytes. The response `Content-Type` is `application/octet-stream`. Use this for the binary payload; use `GET /v1/files/{file_id}` for metadata only.

get/v1/files/{file_id}/content

Request

  • Base URL: https://docs.x.ai (the document declares no server; this is the origin it was published from)
  • URL: https://docs.x.ai/v1/files/{file_id}/content
  • Auth: HTTP bearer

Path parameters

file_idstring required

The file's id to download.

Query parameters

format'original' | 'text'

Format of the downloaded file content.

Format of the downloaded content.

Response

Success -- raw file bytes streamed in chunks.

Changes

No recorded changes to this operation across all 1 revision of this API.