Error
A valid request URL is required to generate request examples{
"name": "<string>",
"displayName": "<string>",
"mimeType": "<string>",
"sizeBytes": "<string>",
"createTime": "2023-11-07T05:31:56Z",
"updateTime": "2023-11-07T05:31:56Z",
"expirationTime": "2023-11-07T05:31:56Z",
"sha256Hash": "<string>",
"uri": "<string>",
"error": {
"code": 123,
"message": "<string>"
},
"videoMetadata": {
"videoDuration": "<string>"
}
}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}
Error
A valid request URL is required to generate request examples{
"name": "<string>",
"displayName": "<string>",
"mimeType": "<string>",
"sizeBytes": "<string>",
"createTime": "2023-11-07T05:31:56Z",
"updateTime": "2023-11-07T05:31:56Z",
"expirationTime": "2023-11-07T05:31:56Z",
"sha256Hash": "<string>",
"uri": "<string>",
"error": {
"code": 123,
"message": "<string>"
},
"videoMetadata": {
"videoDuration": "<string>"
}
}Authorizations
BearerAuthBasicAuthVirtualKeyAuthApiKeyAuth
Bearer token authentication. Use your provider API key or Bifrost authentication token.
Virtual keys (prefixed with sk-bf-) can also be passed here.
Path Parameters
File ID
Response
Successful response
File resource name (e.g., files/abc123)
Size in bytes (returned as string by Gemini API)
URI for accessing the file content
Available options:
STATE_UNSPECIFIED, PROCESSING, ACTIVE, FAILED Show child attributes
Show child attributes
Show child attributes
Show child attributes
Was this page helpful?
⌘I

