Gemma 3 4B (free)
Gemma 3 introduces multimodality, supporting vision-language input and text outputs. It handles context windows up to 128k tokens, understands over 140 languages, and offers improved math, reasoning, and chat capabilities, including structured outputs and function calling.
Context window
This model accepts 33K tokens in one request (~25K 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
- 32,768 tokens (33K)
- Max output tokens
- 8,192 tokens (8K)
- Speed tier
- balanced
- Provider
- Release date
- Mar 2025
Capabilities
See which features this model supports, such as vision, tools, and streaming.
- Vision
- Accepts image inputs alongside text
- Supported
- Streaming
- Returns tokens as they are generated
- 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 3 4B (free)
Open a side-by-side comparison with one click.
- Gemma 3 4B (free) vs Gemma 7b It
Gemma 3 4B (free) has 300% larger context window
- Gemma 3 4B (free) vs Jp Anthropic Claude Sonnet 4 6
Jp Anthropic Claude Sonnet 4 6 has 2951% larger context window
- Gemma 3 4B (free) vs Amazon Titan Text Express
Amazon Titan Text Express has 28% larger context window
- Gemma 3 4B (free) vs Amazon Titan Text Premier
Amazon Titan Text Premier has 28% larger context window
- Gemma 3 4B (free) vs Amazon Titan Text Lite
Amazon Titan Text Lite has 28% larger context window
- Gemma 3 4B (free) vs Codellama 34b Instruct
Gemma 3 4B (free) has 700% 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