Models / Chat / Gemma-2 Instruct (27B)
Gemma-2 Instruct (27B)
LLM
Lightweight, SOTA open models from Google, leveraging research and tech behind the Gemini models.
Try our Gemma-2 API

API Usage
Endpoint
google/gemma-2-27b-it
RUN INFERENCE
curl -X POST "https://api.together.xyz/v1/chat/completions" \
-H "Authorization: Bearer $TOGETHER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemma-2-27b-it",
"messages": [{"role": "user", "content": "What are some fun things to do in New York?"}]
}'
JSON RESPONSE
RUN INFERENCE
from together import Together
client = Together()
response = client.chat.completions.create(
model="google/gemma-2-27b-it",
messages=[{"role": "user", "content": "What are some fun things to do in New York?"}],
)
print(response.choices[0].message.content)
JSON RESPONSE
RUN INFERENCE
import Together from "together-ai";
const together = new Together();
const response = await together.chat.completions.create({
messages: [{"role": "user", "content": "What are some fun things to do in New York?"}],
model: "google/gemma-2-27b-it",
});
console.log(response.choices[0].message.content)
JSON RESPONSE
Model Provider:
Type:
Chat
Variant:
Instruct
Parameters:
27B
Deployment:
✔ Serverless
Quantization
FP16
Context length:
8K
Pricing:
$0.80
Run in playground
Deploy model
Quickstart docs
Looking for production scale? Deploy on a dedicated endpoint
Deploy Gemma-2 Instruct (27B) on a dedicated endpoint with custom hardware configuration, as many instances as you need, and auto-scaling.
