Gemma 3n 4B

Google chattool_use

API ID: google/gemma-3n-e4b-it

Input Price
$0.02
/1M tokens
Output Price
$0.04
/1M tokens

About Gemma 3n 4B

Gemma 3 is Google's latest open-weight model family, delivering significant improvements over Gemma 2 in capability and efficiency. The models feature enhanced reasoning, coding, and multilingual performance while maintaining practical deployment requirements. Gemma 3 excels at general language tasks and demonstrates strong performance on benchmarks for its size class. The open weights enable self-hosting, fine-tuning, and customization without API dependencies. For developers seeking capable open-source AI with Google's latest improvements, Gemma 3 offers excellent value. It's particularly popular for local deployment and applications requiring deployment flexibility.

💰
Price Ranking
#567 lowest price among 950 Chat models

Model Specifications

Context Length
33k
Max Output
—
Release Date
2025-05-20
Capabilities
chat tool_use
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.02
/month
50 conversations/day, ~500 tokens each
Customer Service Bot
$0.66
/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 3n 4B Current Free Free 33k chat tool_use
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
Gemma 3 1B Free Free 32k chat vision

Similar Models from Other Providers

Cross-brand alternatives with similar capabilities

Mistral Mistral Nemo
Input: $0.02
Output: $0.04
Context: 131k
Meta Llama 3.1 8B Instruct
Input: $0.02
Output: $0.05
Context: 16k
Meta Llama 3 8B Instruct
Input: $0.03
Output: $0.04
Context: 8k
Meta Llama 3.2 3B Instruct
Input: $0.02
Output: $0.02
Context: 80k

🚀 Quick Start

Get started with Gemma 3n 4B API

Google AI Python SDK
import google.generativeai as genai

genai.configure(api_key="YOUR_API_KEY")
model = genai.GenerativeModel("gemma-3n-e4b-it")

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