Gemma 2 (9B) (Deprecated) API

Gemma 2 (9B): Efficient, open-source language model with competitive performance.

Modalities
TextText
Model type
Chat

Gemma 2 (9B) (Deprecated) overview

Gemma 2 (9B) (Deprecated) by Google

Google Gemma 2 (9B) API represents a significant step forward in the development of efficient and powerful language models.

Gemma 2 (9B) (Deprecated) specs

Developer
Google
Input
Text
Output
Text
API
OpenAI-compatible, base URL https://api.aimlapi.com/v1

Gemma 2 (9B) Description

  • Model Name: Google Gemma 2 (9B)
  • Model Type: Text (Language Model)

Gemma 2 (9B) is a 9 billion parameter language model that offers competitive performance compared to larger models while maintaining a practical size. It is designed to be an open model, allowing for widespread use and adaptation by the developer community.

Key Features

  • Interleaved local-global attentions
  • Trained using knowledge distillation
  • Competitive performance against models 2-3 times larger

Architecture

The Gemma 2 (9B) model incorporates several technical modifications to enhance its performance:

  1. Interleaved local-global attentions: This technique, based on the work of Beltagy et al. (2020a), allows the model to efficiently process both local and global context information.
  2. Group-query attention: Implemented based on the research by Ainslie et al. (2023), this mechanism likely improves the model's ability to handle complex queries and relationships within the text.
  3. Knowledge distillation: Unlike its predecessor, which used next token prediction, Gemma 2 (9B) is trained using knowledge distillation techniques. This approach, pioneered by Hinton et al. (2015), allows the model to learn from a larger, more complex model while maintaining a smaller size.

Performance Metrics

The model is described as delivering "the best performance for their size" and offering "competitive alternatives to models that are 2-3 × bigger".

Ethical Considerations

While not explicitly mentioned in the provided information, it's important for developers to consider potential biases in the model's outputs and use it responsibly. As with any large language model, care should be taken to ensure that the model's responses are appropriate and do not perpetuate harmful biases or misinformation.

Licensing

Gemma is provided under and subject to the Gemma Terms of Use found at ai.google.dev/gemma/terms

Use cases

  • chatbots and conversational agents with deep reasoning and knowledge
  • question-answering systems for research and customer support
  • generating long-form text including summaries, explanations, and narratives
  • instruction-following AI assistants for diverse NLP tasks
  • efficient deployment on diverse hardware setups for real-time inference
  • academic research and fine-tuning for specialized domains and tasks
  • applications requiring cost-effective large language model inference with high performance

Capabilities

  • Function calling
  • Streaming
  • Structured outputs

Gemma 2 (9B) (Deprecated) API pricing

Gemma 2 (9B) (Deprecated) pricing in US dollars
UsagePriceUnit
Input$0.3151M tokens
Output$0.3151M tokens

Gemma 2 (9B) (Deprecated) is unlisted on AI/ML API. The rates apply to existing integrations; the models below are current alternatives.

Prices from the AI/ML API price list, checked on Nov 4, 2026.

Gemma 2 (9B) (Deprecated) vs other models: token prices

AI/ML API input and output rates for 5 models, per million tokens.

AI/ML API model prices in USD per million tokens
ModelInputOutput
Gemma 2 (9B) (Deprecated)$0.315$0.315
Gemini 3.5 Flash Lite$0.3$2.5
Gemini 3.8 Flash$0.75$3.75
Gemini 3.7 Flash$0.75$3.75
Gemini 4 Argon$2$10

Related articles

All posts

Gemma 2 (9B) (Deprecated) FAQ

Does Gemma 2 (9B) (Deprecated) support streaming?

Yes, Gemma 2 (9B) (Deprecated) can stream responses as they are generated.

Does Gemma 2 (9B) (Deprecated) support tool calling and structured outputs?

Yes, Gemma 2 (9B) (Deprecated) supports both function calling and structured outputs.

Who created Gemma 2 (9B) (Deprecated)?

Gemma 2 (9B) (Deprecated) was built by Google.

Is Gemma 2 (9B) still available for new use?

This model is marked as deprecated.

Start building with Gemma 2 (9B) (Deprecated)