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).
Context window
This model accepts 8K tokens in one request (~6K words of text).
What fits in one request
- FitsShort documentAbout 1,500 words of text
- Won't fitLong documentAbout 37K words of text
- Won't fitSmall codebaseAbout 150K words of text
- Won't fitFull novelAbout 375K words of text
Specifications
Context size, pricing, and release info in one place.
- Context window
- 8,192 tokens (8K)
- Max output tokens
- 2,048 tokens (2K)
- Speed tier
- fast
- Provider
- Release date
- Jul 2024
Capabilities
See which features this model supports, such as vision, tools, and streaming.
- Streaming
- Returns tokens as they are generated
- Supported
- Vision
- Accepts image inputs alongside text
- Not supported
- Tool use
- Can call external tools and APIs
- Not supported
- Function calling
- Structured function call interface
- Not supported
- Extended thinking
- Shows its chain-of-thought reasoning
- Not supported
- Web search
- Can browse the web during a request
- Not supported
- Batch API
- Process many requests asynchronously
- Not supported
- Prompt caching
- Reuse repeated prompt prefixes cheaply
- Not supported
Best for
Jump to a guide or ranking that matches each workload.
Compare Gemma 2 27B
Open a side-by-side comparison with one click.
- Gemma 2 27B vs Jp Anthropic Claude Sonnet 4 6
Jp Anthropic Claude Sonnet 4 6 has 12107% larger context window
- Gemma 2 27B vs Amazon Titan Text Express
Amazon Titan Text Express has 412% larger context window
- Gemma 2 27B vs Amazon Titan Text Premier
Amazon Titan Text Premier has 412% larger context window
- Gemma 2 27B vs Amazon Titan Text Lite
Amazon Titan Text Lite has 412% larger context window
- Gemma 2 27B vs Codellama 34b Instruct
Gemma 2 27B has 100% larger context window
- Gemma 2 27B vs Codellama 70b Instruct
Gemma 2 27B has 100% larger context window
Frequently asked questions
Short answers about context size and how this model behaves.
More from Google
Other models by Google in our catalog.
Powered by Mem0
Use a smaller model.
Get better results.
Mem0 gives your AI long-term memory so you stop re-sending context on every call. That means you can use a smaller, faster, cheaper model — and still get better answers.
Example: a multi-turn chat session
80% less to send — works with any model