Skip to main content
GET
Get a file

Headers

kimi-api-version
enum<string>

API version for this request, in YYYY-MM-DD form. Send 2026-09-01-beta for the version documented here. Required outside /v1/files*: a missing header there is rejected with 400 invalid_request_error; on /v1/files* its absence selects the compatibility behavior. An unknown value is rejected with 400 invalid_request_error on every endpoint. API versions served by the platform. New dated versions are added as they ship; a version is removed after its announced Sunset date.

Available options:
2026-09-01-beta

Path Parameters

id
string
required

File ID.

Response

Metadata for the requested file, including its processing status.

Metadata for a file uploaded to the caller's project.

id
string
required

File ID.

Example:

"file_01h455vb4pex5vsknk084sn02q"

filename
string
required

File name, with a server-added suffix when needed to avoid a collision.

Example:

"report.txt"

mime_type
string
required

MIME type detected during upload.

Example:

"text/plain"

size_bytes
integer<int64>
required

File size in bytes.

Example:

15

created_at
string<date-time>
required

Time the file was uploaded.

Example:

"2026-08-26T12:00:00Z"

extract_status
enum<string>
required

Current processing status of the file.

Available options:
ready,
error
Example:

"ready"

purpose
enum<string>

How the file is processed.

Available options:
file-extract,
image,
video,
batch
Example:

"file-extract"