Error
A valid request URL is required to generate request examples{
"file": {
"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>",
"state": "STATE_UNSPECIFIED",
"error": {
"code": 123,
"message": "<string>"
},
"videoMetadata": {
"videoDuration": "<string>"
}
}
}{
"error": {
"code": 123,
"message": "<string>",
"status": "<string>",
"details": [
{
"@type": "<string>",
"fieldViolations": [
{
"description": "<string>"
}
]
}
]
}
}{
"error": {
"code": 123,
"message": "<string>",
"status": "<string>",
"details": [
{
"@type": "<string>",
"fieldViolations": [
{
"description": "<string>"
}
]
}
]
}
}GenAI Integration
Upload file (Gemini format)
Uploads a file using Google Gemini API format.
This is a multipart upload with two parts:
- “metadata”: JSON object containing file metadata
- “file”: Binary file content
Note: Direct file content download is not supported by Gemini Files API. Use the file.uri field from the response to access uploaded files.
POST
/
genai
/
upload
/
v1beta
/
files
Error
A valid request URL is required to generate request examples{
"file": {
"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>",
"state": "STATE_UNSPECIFIED",
"error": {
"code": 123,
"message": "<string>"
},
"videoMetadata": {
"videoDuration": "<string>"
}
}
}{
"error": {
"code": 123,
"message": "<string>",
"status": "<string>",
"details": [
{
"@type": "<string>",
"fieldViolations": [
{
"description": "<string>"
}
]
}
]
}
}{
"error": {
"code": 123,
"message": "<string>",
"status": "<string>",
"details": [
{
"@type": "<string>",
"fieldViolations": [
{
"description": "<string>"
}
]
}
]
}
}Authorizations
BearerAuthVirtualKeyAuthApiKeyAuth
Body
multipart/form-data
Multipart upload for Gemini Files API. Send two parts: - "metadata": JSON object {"file": {"displayName": ""}} - "file": binary content Note: Direct file content download is not supported by Gemini Files API. Use the file.uri field from the response to access the file.
Was this page helpful?

