Back to Models

Gemma 2 9B IT

googlegoogle/gemma-2-9b-it

Google's Gemma 2 9B instruction-tuned model. Lightweight and efficient for basic tasks.

Context Length
8K
Max Output
4K
Input Priceper 1M tokens
$0.360/ 1M tokens
Output Priceper 1M tokens
$0.360/ 1M tokens

Modalities

text→text

Pricing Breakdown

TypeRate
Input$0.360 / 1M tokens
Output$0.360 / 1M tokens

Supported Parameters

temperaturemax_tokenstop_pstop

API Usage Examples

Use the global api.therouter.ai endpoint shown below for new integrations; the legacy China accelerated endpoint is retired.

cURL
curl https://api.therouter.ai/v1/chat/completions   -H "Content-Type: application/json"   -H "Authorization: Bearer $THE_ROUTER_API_KEY"   -d '{
    "model": "google/gemma-2-9b-it",
    "messages": [
      {"role": "user", "content": "Summarize the key points from this input."}
    ]
  }'
Customer Support