Gemma 2 9B

Google chattool_use

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

Input Price
$0.03
/1M tokens
Output Price
$0.09
/1M tokens

About Gemma 2 9B

Gemma 2 9B is Google's efficient open-weight model, offering strong performance in a practical package suitable for diverse deployment scenarios. With 9 billion parameters, it runs comfortably on consumer GPUs and cost-effective cloud instances while delivering impressive capability on reasoning and coding tasks. The model features Google's latest architecture optimizations, achieving better performance per parameter than previous generations. Gemma 2 9B excels at general conversation, content generation, and code assistance, making it versatile for various applications. Its open weights enable fine-tuning, on-premise deployment, and customization without API dependencies. The model is particularly popular for local AI assistants, development tools, and applications requiring offline capability. For developers seeking capable open-source AI that balances performance with practical resource requirements, Gemma 2 9B represents an excellent choice. It serves as a foundation for countless community fine-tunes and specialized applications across the open-source AI ecosystem.

๐Ÿ’ฐ
Price Ranking
#580 lowest price among 950 Chat models

Model Specifications

Context Length
8k
Max Output
โ€”
Release Date
2024-06-28
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.04
/month
50 conversations/day, ~500 tokens each
Customer Service Bot
$1.26
/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 9B Current Free Free 8k chat tool_use
Gemma 3n 4B 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

Similar Models from Other Providers

Cross-brand alternatives with similar capabilities

Alibaba Qwen Qwen2.5 Coder 7B Instruct
Input: $0.03
Output: $0.09
Context: 33k
Other MythoMax 13B
Input: $0.06
Output: $0.06
Context: 4k
Nous Research DeepHermes 3 Mistral 24B Preview
Input: $0.02
Output: $0.10
Context: 33k
OpenAI gpt-oss-20b
Input: $0.02
Output: $0.10
Context: 131k

๐Ÿš€ Quick Start

Get started with Gemma 2 9B API

Google AI Python SDK
import google.generativeai as genai

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

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