Back to Models
G

Gemma 2 2B

Gemma
by Google

Advanced small language generative AI model for edge applications.

Free EndpointMay 22, 2025gemma license

Specifications

Context Length
8K
8,192 tokens
Input Price
Free
per 1M tokens
Output Price
Free
per 1M tokens
Modalities
1
text→text

Capabilities

text generationchat

Tags

chatsmall-model

API Usage

1Router is fully OpenAI-compatible. Just set the base URL and use this model ID:

google/gemma-2-2b-it
cURL
curl https://your-site.example/api/v1/chat/completions \
  -H "Authorization: Bearer $ROUTER_USER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "google/gemma-2-2b-it",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'