Genai integration
List models (Gemini format)
GET
/genai/v1beta/modelsLists available models in Google Gemini API format.
Query Parameters
pageSize?integer
Maximum number of models to return
pageToken?string
Page token for pagination
Response Body
application/json
application/json
application/json
curl -X GET "http://localhost:8080/genai/v1beta/models"{
"models": [
{
"name": "string",
"baseModelId": "string",
"version": "string",
"displayName": "string",
"description": "string",
"inputTokenLimit": 0,
"outputTokenLimit": 0,
"supportedGenerationMethods": [
"string"
],
"thinking": true,
"temperature": 0,
"maxTemperature": 0,
"topP": 0,
"topK": 0
}
],
"nextPageToken": "string"
}{
"error": {
"code": 0,
"message": "string",
"status": "string",
"details": [
{
"@type": "string",
"fieldViolations": [
{
"description": "string"
}
]
}
]
}
}{
"error": {
"code": 0,
"message": "string",
"status": "string",
"details": [
{
"@type": "string",
"fieldViolations": [
{
"description": "string"
}
]
}
]
}
}List files (Gemini format) GET
Lists uploaded files in Google Gemini API format.
Retrieve file (Gemini format) GET
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.