v1

latestOpenAPI 3.1.0Apache 2.02026-07-264001921002.3 KB
GenAI Integration

Retrieve file (Gemini format)

Retrieves file metadata in Google Gemini API format.

Note: This endpoint returns file metadata only. Direct file content download is not supported by Gemini Files API. Use the file.uri field from the response to access the file content.

get/genai/v1beta/files/{file_id}

Path parameters

file_idstring required

File ID

Response

Successful response

namestring

File resource name (e.g., files/abc123)

displayNamestring
mimeTypestring
sizeBytesstring

Size in bytes (returned as string by Gemini API)

createTimestring date-time
updateTimestring date-time
expirationTimestring date-time
sha256Hashstring
uristring

URI for accessing the file content

state'STATE_UNSPECIFIED' | 'PROCESSING' | 'ACTIVE' | 'FAILED'