Console

Get File

GET/v1/files/{file_id}

Get file details. Use the file_id returned by POST /v1/files.

Request parameters

Path parameterTypeRequiredDescription
file_id: stringRequired

The id returned by POST /v1/files.

Return value

FieldTypeDescription
id: string

File id, i.e. the file_id.

object: string

Fixed as file.

bytes: integer

File size in bytes.

created_at: integer

Creation time, a Unix timestamp in seconds.

filename: string

Original filename.

purpose: string

File-purpose label; it may be an empty string.

status: string

File status, subject to the actual server response.

Boundary

The public API does not expose asset_id; when a model invocation passes a file_id, the platform resolves it into a download URL for downstream use, so both the caller and the model side only interact with file_id or a URL.