Gemma 2 27B

API ID: google/gemma-2-27b-it

Input Price
$0.65
/1M tokens
Output Price
$0.65
/1M tokens

About Gemma 2 27B

Gemma 2 27B by Google is an open model built from the same research and technology used to create the [Gemini models](/models?q=gemini). Gemma models are well-suited for a variety of text generation tasks, including question answering, summarization, and reasoning. See the [launch announcement](https://blog.google/technology/developers/google-gemma-2/) for more details. Usage of Gemma is subject to Google's [Gemma Terms of Use](https://ai.google.dev/gemma/terms).

๐Ÿ’ฐ
Price Ranking
#867 lowest price among 1240 Chat models

Model Specifications

Context Length
8k
Max Output
2k
Release Date
2024-07-13
Capabilities
chat
Input Modalities
text
Output Modalities
text

Best For

  • Conversations, content writing, general assistance

Consider Alternatives For

  • Image understanding (needs vision capability)

๐Ÿ’ฐ Real-World Cost Examples

Estimated monthly costs for common use cases

Personal AI Assistant
$0.49
/month
50 conversations/day, ~500 tokens each
Customer Service Bot
$15.60
/month
1000 tickets/day, ~800 tokens each

Google Model Lineup

Compare all models from Google to find the best fit

Model Input Output Context Capabilities
Gemma 2 27B Current Free Free 8k chat
Gemma 3n 4B Free Free 33k chat
Gemini 2.5 Flash Image Preview (Nano Banana) Free Free 33k chat vision image_gen
Gemma 3n 2B (free) Free Free 8k chat tool_use
Gemma 1 2B Free Free 8k chat
Gemma 1 2B Free Free 8k chat

Similar Models from Other Providers

Cross-brand alternatives with similar capabilities

Alibaba Qwen Qwen3 Coder 480B A35B (exacto)
Input: $0.30
Output: $1.00
Context: 262k
MiniMax MiniMax-01
Input: $0.20
Output: $1.10
Context: 1.0M
Other INTELLECT-3
Input: $0.20
Output: $1.10
Context: 131k
Other Coder Large
Input: $0.50
Output: $0.80
Context: 33k

๐Ÿš€ Quick Start

Get started with Gemma 2 27B API

Google AI Python SDK
import google.generativeai as genai

genai.configure(api_key="YOUR_API_KEY")
model = genai.GenerativeModel("gemma-2-27b-it")

response = model.generate_content("Hello!")
print(response.text)