---
title: Gemma 2 Instruct (27B) API | Text Generation | ModelsLab
description: Powerful, open 27-billion-parameter language model with 8K context, efficient inference on GPUs/TPUs, excels in instruction following, text generation.
url: https://modelslab.com/models/together_ai/google-gemma-2-27b-it.md
canonical: https://modelslab.com/models/together_ai/google-gemma-2-27b-it.md
type: product
component: Playground/LLM/Index
generated_at: 2026-04-15T00:44:36.193663Z
---

Gemma-2 Instruct (27B)
---

 [LLMs.txt](https://modelslab.com/models/google_deepmind/google-gemma-2-27b-it/llms.txt) [.md](https://modelslab.com/models/google_deepmind/google-gemma-2-27b-it.md)

google-gemma-2-27b-it google\_deepmind Closed Source Model $0.650000 / call

Gemma-2 Instruct (27B)
---

Choose a prompt below to get started or type your own message

 Explain quantum computing in simple terms

 Write a Python function to sort a list

 Create a marketing email for a SaaS product

 Compare REST vs GraphQL APIs

Send

### Gemma-2 Instruct (27B)

google\_deepmind google-gemma-2-27b-it

Copy model ID

PricingInput $0.65 / 1M tokens

Output $0.65 / 1M tokens

API EndpointsOpenAI Compatible

`https://modelslab.com/api/v7/llm/chat/completions`Endpoint

Anthropic Compatible

`https://modelslab.com/api/v7/llm/v1/messages`Messages

`https://modelslab.com/api/v7/llm/v1/messages/count_tokens`Count Tokens

`https://modelslab.com/api/v7/llm/v1/models`Models

Use with Claude Code

cURL Example

ParametersSystem MessageYou are a helpful AI assistant specialized in providing accurate and detailed responses.

Temperature0.7

Max Tokens1000

Top P0.9

Frequency Penalty0

Presence Penalty0

Model Info

Support

Related Models
---

Discover similar models you might be interested in

 [View all LLM Models](https://modelslab.com/models?feature=llmaster)

[Q2](https://modelslab.com/models/together_ai/Qwen-Qwen2.5-Coder-32B-Instruct)[Together AI](https://modelslab.com/models/together_ai)

 [Qwen 2.5 Coder 32B Instruct

Closed Source Model](https://modelslab.com/models/together_ai/Qwen-Qwen2.5-Coder-32B-Instruct)

[Q9](https://modelslab.com/models/together_ai/Qwen-Qwen3.5-9B)[Together AI](https://modelslab.com/models/together_ai)

 [Qwen3.5 9B FP8

Closed Source Model](https://modelslab.com/models/together_ai/Qwen-Qwen3.5-9B)

[AC](https://modelslab.com/models/open_router/anthropic-claude-opus-4.1)[Open Router](https://modelslab.com/models/open_router)

 [Anthropic: Claude Opus 4.1

Closed Source Model](https://modelslab.com/models/open_router/anthropic-claude-opus-4.1)

[AN](https://modelslab.com/models/open_router/amazon-nova-premier-v1)[Open Router](https://modelslab.com/models/open_router)

 [Amazon: Nova Premier 1.0

Closed Source Model](https://modelslab.com/models/open_router/amazon-nova-premier-v1)

[![gpt-oss-20b](https://images.stablediffusionapi.com/?Image=https://assets.modelslab.ai/generations/8b2f0440-52cc-4f41-93eb-d31006ad71e2.webp)](https://modelslab.com/models/openai/gpt-oss-20b)[Open Ai](https://modelslab.com/models/openai)

 [gpt-oss-20b

Closed Source Model](https://modelslab.com/models/openai/gpt-oss-20b)

[MM](https://modelslab.com/models/open_router/morph-morph-v3-fast)[Open Router](https://modelslab.com/models/open_router)

 [Morph: Morph V3 Fast

Closed Source Model](https://modelslab.com/models/open_router/morph-morph-v3-fast)

[NN](https://modelslab.com/models/open_router/nvidia-nemotron-nano-12b-v2-vl)[Open Router](https://modelslab.com/models/open_router)

 [NVIDIA: Nemotron Nano 12B 2 VL

Closed Source Model](https://modelslab.com/models/open_router/nvidia-nemotron-nano-12b-v2-vl)

[LL](https://modelslab.com/models/open_router/liquid-lfm-2.5-1.2b-thinking-free)[Open Router](https://modelslab.com/models/open_router)

 [LiquidAI: LFM2.5-1.2B-Thinking (free)

Closed Source Model](https://modelslab.com/models/open_router/liquid-lfm-2.5-1.2b-thinking-free)

[MM](https://modelslab.com/models/open_router/minimax-minimax-m2.1)[Open Router](https://modelslab.com/models/open_router)

 [MiniMax: MiniMax M2.1

Closed Source Model](https://modelslab.com/models/open_router/minimax-minimax-m2.1)

[AO](https://modelslab.com/models/open_router/allenai-olmo-3.1-32b-instruct)[Open Router](https://modelslab.com/models/open_router)

 [AllenAI: Olmo 3.1 32B Instruct

Closed Source Model](https://modelslab.com/models/open_router/allenai-olmo-3.1-32b-instruct)

[L4](https://modelslab.com/models/meta/meta-llama-Llama-4-Scout-17B-16E-Instruct)[ModelsLab](https://modelslab.com/models/meta)

 [Llama 4 Scout Instruct (17Bx16E)

Closed Source Model](https://modelslab.com/models/meta/meta-llama-Llama-4-Scout-17B-16E-Instruct)

[GG](https://modelslab.com/models/open_router/google-gemini-2.0-flash-lite-001)[Open Router](https://modelslab.com/models/open_router)

 [Google: Gemini 2.0 Flash Lite

Closed Source Model](https://modelslab.com/models/open_router/google-gemini-2.0-flash-lite-001)

[ML](https://modelslab.com/models/open_router/meta-llama-llama-3.1-70b-instruct)[Open Router](https://modelslab.com/models/open_router)

 [Meta: Llama 3.1 70B Instruct

Closed Source Model](https://modelslab.com/models/open_router/meta-llama-llama-3.1-70b-instruct)

[QQ](https://modelslab.com/models/open_router/qwen-qwen3-vl-30b-a3b-thinking)[Open Router](https://modelslab.com/models/open_router)

 [Qwen: Qwen3 VL 30B A3B Thinking

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen3-vl-30b-a3b-thinking)

[MC](https://modelslab.com/models/open_router/mistralai-codestral-2508)[Open Router](https://modelslab.com/models/open_router)

 [Mistral: Codestral 2508

Closed Source Model](https://modelslab.com/models/open_router/mistralai-codestral-2508)

[SM](https://modelslab.com/models/together_ai/sarvamai-sarvam-m)[Together AI](https://modelslab.com/models/together_ai)

 [Sarvam M

Closed Source Model](https://modelslab.com/models/together_ai/sarvamai-sarvam-m)

[QQ](https://modelslab.com/models/open_router/qwen-qwen3-max)[Open Router](https://modelslab.com/models/open_router)

 [Qwen: Qwen3 Max

Closed Source Model](https://modelslab.com/models/open_router/qwen-qwen3-max)

[ML](https://modelslab.com/models/open_router/meta-llama-Llama-3-8b-chat-hf)[Open Router](https://modelslab.com/models/open_router)

 [Meta Llama 3 8B Instruct Reference

Closed Source Model](https://modelslab.com/models/open_router/meta-llama-Llama-3-8b-chat-hf)

About Gemma-2 Instruct (27B)
---

Gemma-2 Instruct (27B) is Google’s 27B instruction-tuned model, built for advanced reasoning, coding, and multilingual tasks with strong efficiency.

### Technical Specifications

Model IDgoogle-gemma-2-27b-itCategoryLLM ModelsTaskText GenerationPrice$0.650000 per million tokensAddedJuly 22, 2025

### Key Features

- Chat completion and multi-turn conversation API
- Streaming response with token-by-token output
- Function calling and tool use support
- System prompts and role-based messaging
- JSON mode and structured output

### Quick Start

Integrate Gemma-2 Instruct (27B) into your application with a single API call. Get your API key from the [pricing page](https://modelslab.com/pricing) to get started.

PythonJavaScriptcURLPHP

```
<code>import requests
import json

url = "https://modelslab.com/api/v7/llm/chat/completions"

headers = {
    "Content-Type": "application/json"
}

data = {
        "model_id": "google-gemma-2-27b-it",
        "messages": [
            {
                "role": "user",
                "content": "Hello!"
            }
        ],
        "max_tokens": 1000,
        "key": "YOUR_API_KEY"
    }

try:
    response = requests.post(url, headers=headers, json=data)
    response.raise_for_status()  # Raises an HTTPError for bad responses (4XX or 5XX)
    result = response.json()
    print("API Response:")
    print(json.dumps(result, indent=2))
except requests.exceptions.HTTPError as http_err:
    print(f"HTTP error occurred: {http_err} - {response.text}")
except Exception as err:
    print(f"Other error occurred: {err}")</code>
```

View the [full API documentation](https://modelslab.com/models/google_deepmind/google-gemma-2-27b-it/api) for SDKs, code examples in Python, JavaScript, and more.

### Pricing

Gemma-2 Instruct (27B) API costs $0.650000 per million tokens. Pay only for what you use with no minimum commitments. [View pricing plans](https://modelslab.com/pricing)

### Use Cases

- AI chatbots and virtual assistants
- Code generation and developer tools
- Content writing and copywriting automation
- Data analysis, summarization, and extraction

[Learn more about Gemma-2 Instruct (27B)](https://modelslab.com/gemma-2-instruct-27b) [Browse LLM Models](https://modelslab.com/models?feature=llmaster) [More from Google Deepmind](https://modelslab.com/models/open_router) [View Pricing](https://modelslab.com/pricing)

Gemma-2 Instruct (27B) FAQ
---

### What is Gemma-2 Instruct (27B)?

Gemma-2 Instruct (27B) is Google’s 27B instruction-tuned model, built for advanced reasoning, coding, and multilingual tasks with strong efficiency.

### How do I use the Gemma-2 Instruct (27B) API?

You can integrate Gemma-2 Instruct (27B) into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "google-gemma-2-27b-it" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation.

### How much does Gemma-2 Instruct (27B) cost?

Gemma-2 Instruct (27B) costs $0.650000 per million tokens. ModelsLab uses pay-per-use pricing with no minimum commitments. A free tier is available to get started.

### What is the Gemma-2 Instruct (27B) model ID?

The model ID for Gemma-2 Instruct (27B) is "google-gemma-2-27b-it". Use this ID in your API requests to specify this model.

### Does Gemma-2 Instruct (27B) have a free tier?

Yes, ModelsLab offers a free tier that lets you try Gemma-2 Instruct (27B) and other AI models. Sign up to get free API credits and start building immediately.

---

*This markdown version is optimized for AI agents and LLMs.*

**Links:**
- [Website](https://modelslab.com)
- [API Documentation](https://docs.modelslab.com)
- [Blog](https://modelslab.com/blog)

---
*Generated by ModelsLab - 2026-04-15*