
Google's AI models, including the Gemini Series and Gemma Series, represent cutting-edge advancements in artificial intelligence. Developed by Google DeepMind, these models leverage state-of-the-art technology to deliver exceptional performance across various AI tasks. The models are available through multiple providers integrated with APIpie's routing system.
The Gemini Series represents Google's most advanced AI models, capable of sophisticated reasoning across text, code, images, and video. Meanwhile, the Gemma Series offers efficient, open-source models built on the same research and technology as Gemini. These models are accessible through Google Cloud's Vertex AI platform and various third-party providers.
When choosing between Google's models, APIpie provides comprehensive monitoring tools to help make informed decisions:
Performance Monitoring:
Pricing & Cost Analysis:
Health Metrics:
This monitoring system helps users:
| Model Name | Max Tokens | Response Tokens | Providers | Subtype |
|---|---|---|---|---|
| gemini-pro-1.5 | 2,000,000 | 8,192 | OpenRouter | Text |
| gemini-flash-1.5 | 1,000,000 | 8,192 | OpenRouter | Chat |
| gemini-flash-1.5-8b | 1,000,000 | 8,192 | OpenRouter | Chat |
| gemini-pro | 91,728 | 22,937 | EdenAI | Chat |
| palm-2-codechat-bison-32k | 91,750 | 22,937 | OpenRouter | Code |
| palm-2-chat-bison-32k | 32,768 | 8,192 | OpenRouter | Chat |
| gemini-pro | 32,760 | 8,192 | OpenRouter | Text |
| palm-2-codechat-bison | 20,070 | 2,867 | OpenRouter | Code |
| palm-2-chat-bison | 9,216 | 1,024 | OpenRouter | Chat |
| gemma-7b-it | 8,192 | 8,192 | Deepinfra | Chat |
| gemma-2-27b-it | 8,192 | 8,192 | Together | Chat |
| gemma-2b-it | 8,192 | 8,192 | Together | Chat |
| gemma-2-27b-it | 8,192 | 4,096 | OpenRouter | Text |
| gemma-2-9b-it | 4,096 | 4,096 | OpenRouter, Monster, Together | Chat |
| gemini-pro-vision | 16,384 | 2,048 | OpenRouter, EdenAI | Vision |
| gemini-1.5-flash | - | - | EdenAI | Chat |
| gemini-1.5-pro | - | - | EdenAI | Chat |
| gemini-1.5-flash-latest | - | - | EdenAI | Chat |
| gemini-1.5-pro-exp-0801 | - | - | EdenAI | Chat |
| gemini-1.5-pro-exp-0827 | - | - | EdenAI | Chat |
| gemini-1.5-pro-latest | - | - | EdenAI | Chat |
| gemini-1.5-flash-8b | - | - | EdenAI | Chat |
| chat-bison | - | - | EdenAI | Chat |
| gemma-1.1-7b-it | - | - | Deepinfra | Chat |
| vit-base-patch16-224 | - | - | Deepinfra | Image |
| vit-base-patch16-384 | - | - | Deepinfra | Image |
| textembedding-gecko | 768 | - | EdenAI | Embedding |
Below is an example of how to use the Chat Completions API to interact with a model from the Google Series, such as gemini-pro-1.5.
curl -L -X POST 'https://apipie.ai/v1/chat/completions' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <YOUR_API_KEY>' \
--data-raw '{
"provider": "openrouter",
"model": "gemini-pro-1.5",
"max_tokens": 150,
"messages": [
{
"role": "user",
"content": "What are the key differences between machine learning and deep learning?"
}
]
}'
The expected response structure for a Google model might look like this:
{
"id": "chatcmpl-12345example12345",
"object": "chat.completion",
"created": 1729535643,
"provider": "openrouter",
"model": "gemini-pro-1.5",
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "Machine learning and deep learning differ in several key aspects:\n\n1. **Complexity**: Machine learning uses simpler algorithms for pattern recognition, while deep learning uses complex neural networks with multiple layers.\n\n2. **Data Requirements**: Machine learning can work with smaller datasets, but deep learning typically needs vast amounts of data to be effective.\n\n3. **Feature Extraction**: Machine learning often requires manual feature engineering, while deep learning automatically learns and extracts relevant features.\n\n4. **Hardware Requirements**: Machine learning algorithms can run on standard computers, but deep learning usually needs powerful GPUs for efficient processing.\n\n5. **Applications**: Machine learning is suited for structured data analysis, while deep learning excels in complex tasks like image recognition and natural language processing."
},
"logprobs": null,
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 18,
"completion_tokens": 132,
"total_tokens": 150,
"prompt_characters": 72,
"response_characters": 548,
"cost": 0.003,
"latency_ms": 2800
},
"system_fingerprint": "fp_123abc456def"
}
gemini-pro-1.5 or others suited to your task. See Models Guide.This example demonstrates how to seamlessly query models from the Google Series for conversational or instructional tasks.
Google's AI models are designed with responsible AI principles in mind. Users should implement appropriate safeguards and consider potential biases in model outputs. For guidance on responsible AI usage, see Google's AI Principles, Responsible AI Practices.
The Google Series includes both proprietary and open-source models. While Gemini models are available through Google Cloud with specific terms of service, Gemma models are released under the Apache 2.0 license for research and commercial use. For detailed licensing information, consult the model-specific documentation, usage guidelines.
Perplexity API Overview: Key Features & Use Cases
Discover Perplexity's advanced AI models, including the Sonar series, and unlock real-time processing capabilities for your projects.
Grok API Overview: Unlock Real-Time AI Solutions
Discover xAI's Grok models with real-time knowledge, vision tasks, and unique personality. Compare features and find the perfect solution today!