# Gemini by Google Integration via LowCodeAPI
**Last Updated**: February 10, 2026
## Overview
Google's Gemini API for building generative AI applications using multimodal Gemini models. Supports text, images, audio, video, and code generation.
**Categories:**
- {'id': 'frontier-ai-labs', 'name': 'Frontier AI labs'}
## Base Endpoint
https://api.lowcodeapi.com/geminibygoogle
**Important**: Always include the provider name in the URL path after `api.lowcodeapi.com/`
## Authentication
**Type:** OAUTH2.0
**Official Documentation:** https://ai.google.dev/gemini-api/docs
## URL Format (Important)
LowCodeAPI supports two URL formats. **Always try the New Format first**, then fall back to Old Format if needed.
### New Format (Priority)
- Path parameters stay in the URL path
- Do NOT include path parameters as query parameters
- Example: `https://api.lowcodeapi.com/{provider}/resource/{id}?api_token=XXX`
### Old Format (Fallback)
- Path parameters become query parameters
- Example: `https://api.lowcodeapi.com/{provider}/resource/id?id={id}&api_token=XXX`
### Decision Flow for AI Agents
1. Always use **New Format** first - keep path parameters in the URL path
2. If you get a 404 or error, try **Old Format** with sanitized path
3. Log which format worked for future requests to this provider
## API Categories
## Common Endpoints
### List Models
**Method:** GET
**LowCodeAPI Path:** /v1beta/models
**New Format URL:**
https://api.lowcodeapi.com/geminibygoogle/v1beta/models?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/geminibygoogle/v1beta/models?api_token=YOUR_API_TOKEN
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/geminibygoogle/v1beta/models?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://ai.google.dev/api/models#v1beta.models.list
### Get Model
**Method:** GET
**LowCodeAPI Path:** /v1beta/models/{name}
**New Format URL:**
https://api.lowcodeapi.com/geminibygoogle/v1beta/models/{name}?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/geminibygoogle/v1beta/models/name?name={name}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| name | string | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/geminibygoogle/v1beta/models/{name}?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://ai.google.dev/api/models#v1beta.models.get
### Generate Content
**Method:** POST
**LowCodeAPI Path:** /v1beta/models/{model}:generateContent
**New Format URL:**
https://api.lowcodeapi.com/geminibygoogle/v1beta/models/{model}:generateContent?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/geminibygoogle/v1beta/models/model-generatecontent?model={model}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| model | string | |
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| cachedContent | string | |
| contents | array | |
| generationConfig | object | |
| safetySettings | array | |
| systemInstruction | object | |
| toolConfig | object | |
| tools | array | |
**Example Request (New Format):**
```bash
curl -X POST 'https://api.lowcodeapi.com/geminibygoogle/v1beta/models/{model}:generateContent?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://ai.google.dev/api/generate-content#v1beta.models.generateContent
### Stream Generate Content
**Method:** POST
**LowCodeAPI Path:** /v1beta/models/{model}:streamGenerateContent
**New Format URL:**
https://api.lowcodeapi.com/geminibygoogle/v1beta/models/{model}:streamGenerateContent?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/geminibygoogle/v1beta/models/model-streamgeneratecontent?model={model}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| model | string | |
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| cachedContent | string | |
| contents | array | |
| generationConfig | object | |
| safetySettings | array | |
| systemInstruction | object | |
| toolConfig | object | |
| tools | array | |
**Example Request (New Format):**
```bash
curl -X POST 'https://api.lowcodeapi.com/geminibygoogle/v1beta/models/{model}:streamGenerateContent?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://ai.google.dev/api/generate-content#v1beta.models.streamGenerateContent
### Embed Content
**Method:** POST
**LowCodeAPI Path:** /v1beta/models/{model}:embedContent
**New Format URL:**
https://api.lowcodeapi.com/geminibygoogle/v1beta/models/{model}:embedContent?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/geminibygoogle/v1beta/models/model-embedcontent?model={model}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| model | string | |
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| content | object | |
| taskType | string | |
| title | string | |
**Example Request (New Format):**
```bash
curl -X POST 'https://api.lowcodeapi.com/geminibygoogle/v1beta/models/{model}:embedContent?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://ai.google.dev/api/embeddings#v1beta.models.embedContent
### Batch Embed Contents
**Method:** POST
**LowCodeAPI Path:** /v1beta/models/{model}:batchEmbedContents
**New Format URL:**
https://api.lowcodeapi.com/geminibygoogle/v1beta/models/{model}:batchEmbedContents?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/geminibygoogle/v1beta/models/model-batchembedcontents?model={model}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| model | string | |
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| requests | array | |
**Example Request (New Format):**
```bash
curl -X POST 'https://api.lowcodeapi.com/geminibygoogle/v1beta/models/{model}:batchEmbedContents?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://ai.google.dev/api/embeddings#v1beta.models.batchEmbedContents
### Async Batch Embed Content
**Method:** POST
**LowCodeAPI Path:** /v1beta/models/{batch.model}:asyncBatchEmbedContent
**New Format URL:**
https://api.lowcodeapi.com/geminibygoogle/v1beta/models/{batch.model}:asyncBatchEmbedContent?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/geminibygoogle/v1beta/models/batchmodel-asyncbatchembedcontent?batch.model={batch.model}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| batch.model | string | |
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| requests | array | |
**Example Request (New Format):**
```bash
curl -X POST 'https://api.lowcodeapi.com/geminibygoogle/v1beta/models/{batch.model}:asyncBatchEmbedContent?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://ai.google.dev/api/embeddings#v1beta.models.asyncBatchEmbedContent
### Count Tokens
**Method:** POST
**LowCodeAPI Path:** /v1beta/models/{model}:countTokens
**New Format URL:**
https://api.lowcodeapi.com/geminibygoogle/v1beta/models/{model}:countTokens?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/geminibygoogle/v1beta/models/model-counttokens?model={model}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| model | string | |
**Request Body:**
| Field | Type | Description |
|-------|------|-------------|
| contents | array | |
**Example Request (New Format):**
```bash
curl -X POST 'https://api.lowcodeapi.com/geminibygoogle/v1beta/models/{model}:countTokens?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://ai.google.dev/api/tokens#v1beta.models.countTokens
### List Files
**Method:** GET
**LowCodeAPI Path:** /v1beta/files
**New Format URL:**
https://api.lowcodeapi.com/geminibygoogle/v1beta/files?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/geminibygoogle/v1beta/files?api_token=YOUR_API_TOKEN
**Query Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| pageSize | number | |
| pageToken | string | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/geminibygoogle/v1beta/files?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://ai.google.dev/api/files#v1beta.files.list
### Get File
**Method:** GET
**LowCodeAPI Path:** /v1beta/files/{name}
**New Format URL:**
https://api.lowcodeapi.com/geminibygoogle/v1beta/files/{name}?api_token=YOUR_API_TOKEN
**Old Format URL:**
https://api.lowcodeapi.com/geminibygoogle/v1beta/files/name?name={name}&api_token=YOUR_API_TOKEN
**Path Parameters:**
| Parameter | Type | Description |
|-----------|------|-------------|
| name | string | |
**Example Request (New Format):**
```bash
curl -X GET 'https://api.lowcodeapi.com/geminibygoogle/v1beta/files/{name}?api_token=YOUR_API_TOKEN'
```
**Official Documentation:** https://ai.google.dev/api/files#v1beta.files.get
## Usage Examples
### Example 1: Basic Chat Completion
Creating a simple text completion or chat message:
```bash
# Create a chat completion - no path parameters needed
curl -X POST "https://api.lowcodeapi.com/geminibygoogle/v1/chat/completions?api_token=YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"model": "your-model-name",
"messages": [
{"role": "user", "content": "Hello, how can you help me?"}
]
}'
# Response includes generated content
```
### Example 2: Text Generation with Path Parameters
Generating text with specific model settings:
```bash
# Generate content using a specific model
curl -X POST "https://api.lowcodeapi.com/geminibygoogle/v1/models/generate?api_token=YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"prompt": "Write a short poem about technology",
"max_tokens": 100
}'
# Or if the provider uses model in the path:
curl -X POST "https://api.lowcodeapi.com/geminibygoogle/v1/models/{MODEL_ID}:generateContent?api_token=YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"contents": [{"parts": [{"text": "Write a short story"}]}]
}'
```
### Example 3: List Available Models
```bash
# Get list of available models
curl -X GET "https://api.lowcodeapi.com/geminibygoogle/v1/models?api_token=YOUR_API_TOKEN"
```
## Error Handling
LowCodeAPI returns standard HTTP status codes. Common errors:
| Status Code | Description |
|-------------|-------------|
| 200 | Success - Request completed successfully |
| 400 | Bad Request - Invalid parameters or request body |
| 401 | Unauthorized - Invalid or missing API token |
| 403 | Forbidden - Insufficient permissions |
| 404 | Not Found - Endpoint or resource doesn't exist |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Server Error - Provider API error |
All error responses include error details:
```json
{
"data": {
"error": {
"message": "Error description",
"code": "ERROR_CODE"
}
}
}
```
## Complete Endpoint Reference
| Endpoint | Method | Category |
|----------|--------|----------|
| List Models | GET | Models |
| Get Model | GET | Models |
| Generate Content | POST | Content Generation |
| Stream Generate Content | POST | Content Generation |
| Embed Content | POST | Embeddings |
| Batch Embed Contents | POST | Embeddings |
| Async Batch Embed Content | POST | Embeddings |
| Count Tokens | POST | Tokens |
| List Files | GET | Files |
| Get File | GET | Files |
| Delete File | DELETE | Files |
| Upload File | POST | Files |
| Create Cached Content | POST | Caching |
| Get Cached Content | GET | Caching |
| List Cached Contents | GET | Caching |
| Delete Cached Content | DELETE | Caching |
| Patch Cached Content | PATCH | Caching |
| Batch Generate Content | POST | Batch |
| Get Batch | GET | Batch |
| List Batches | GET | Batch |
| Delete Batch | DELETE | Batch |
| Cancel Batch | POST | Batch |
| Update Generate Content Batch | PATCH | Batch |
| Update Embed Content Batch | PATCH | Batch |
| Create File Search Store | POST | File Search |
| Get File Search Store | GET | File Search |
| List File Search Stores | GET | File Search |
| Delete File Search Store | DELETE | File Search |
| Import File to File Search Store | POST | File Search |
| Upload to File Search Store | POST | File Search |
| List Documents | GET | File Search |
| Get Document | GET | File Search |
| Delete Document | DELETE | File Search |
| Batch Embed Text | POST | Embeddings |
| Embed Text | POST | Embeddings |
| Generate Message | POST | Content Generation |
| Generate Text | POST | Content Generation |
| Count Message Tokens | POST | Tokens |
| Count Text Tokens | POST | Tokens |
| Predict | POST | Media |
| Predict Long Running | POST | Media |
| Get File Search Store Operation | GET | File Search |
| Get File Search Store Upload Operation | GET | File Search |
| Create Interaction | POST | Interactions |
| Get Interaction | GET | Interactions |
| Delete Interaction | DELETE | Interactions |
| Cancel Interaction | POST | Interactions |
## API Definition Endpoints
You can fetch the complete API specification for this provider:
**New Format (OpenAPI spec):**
```bash
curl 'https://backend.lowcodeapi.com/geminibygoogle/openapi'
```
**Old Format (API definition):**
```bash
curl 'https://backend.lowcodeapi.com/geminibygoogle/definition'
```
## Response Format
All responses are wrapped in a `data` key:
```json
{
"data": {
// Actual response from provider (object or array)
}
}
```