We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.
Google: Gemma 2 27B
google/gemma-2-27b-itTry Google: Gemma 2 27B now
Runs on your balance at the prices above. New accounts start with free usage.
One API. Every model.
Session cost $0.00
Settings
Advanced parameters
Google: Gemma 2 27B at a glance
- Input price is 44% higher than the median of 434 Text models.
- Supports structured JSON output with a schema.
- A typical request (1,000 input / 500 output tokens) costs about $0.00341.
About Google: Gemma 2 27B
Google Gemma 2 27B is an open text model from Google, built from the same research and technology used to create the Gemini models. It sits in the Gemma 2 family and, at 27B parameters, is the largest variant in that line. The model was released by the provider on 13 July 2024, and its knowledge cutoff is 30 June 2024, so anything after that date is outside what it learned during training.
It is a text in, text out model. The context window is 8192 tokens, and the maximum output is 2048 tokens. That combination shapes how you plan prompts: long documents, large code files or extended chat histories need to fit inside the 8192 token budget alongside your instructions, and the reply itself is capped at 2048 tokens. There are no image, audio or other input modalities here, so everything you send must be plain text.
The practical uses follow from that profile. It works well for chat assistants, question answering over material you paste into the prompt, summarisation of articles or reports that fit the context window, drafting and rewriting, classification and extraction tasks, and code explanation or generation within the output limit. Because it is an instruction tuned model, it responds to direct task descriptions rather than needing few shot examples for every request. Structured outputs support also makes it a reasonable choice when you need the reply to conform to a schema, for example extracting fields from support tickets or product descriptions into JSON.
You call it through api14's OpenAI-compatible API using the model id "google/gemma-2-27b-it". Because the interface follows the OpenAI chat completions shape, you can point an existing OpenAI client at api14 and change the model string. The supported request parameters are frequency_penalty, max_tokens, presence_penalty, repetition_penalty, response_format, seed, stop, structured_outputs, temperature and top_p. In practice you would set temperature and top_p to control sampling, use max_tokens to bound the reply within the 2048 output limit, apply stop sequences to end generation cleanly, and use seed when you want repeatable results. The penalty parameters help reduce repeated phrasing, and response_format together with structured_outputs covers cases where the output must follow a defined structure.
The main constraint to weigh is the context window. At 8192 tokens it is smaller than what many current models offer, so workloads that depend on very long documents, large repositories or long running conversations may need chunking, retrieval or a model with a larger window. The 2048 token output cap similarly rules out very long single responses. If your task fits within those bounds and you want an open Google model with instruction following and structured output support, Gemma 2 27B is a straightforward option to test through the same API surface you already use.
How to call the Google: Gemma 2 27B API
- Create an API key in your dashboard.
- Install the official openai SDK for your language.
- Set baseURL to https://api14.com/api/v1 and model to "google/gemma-2-27b-it".
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api14.com/api/v1",
apiKey: process.env.API14_API_KEY,
});
const result = await client.chat.completions.create({
"model": "google/gemma-2-27b-it",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
});
console.log(result.choices[0].message.content);
Supported parameters
frequency_penaltymax_tokenspresence_penaltyrepetition_penaltyresponse_formatseedstopstructured_outputstemperaturetop_pSpecifications
- Context length
- 8,192
- Max output
- 2,048
- Input
- text
- Output
- text
- Knowledge cutoff
- 2024-06-30
Requests on api14 · last 7 days
Google: Gemma 2 27B: frequently asked questions
- How much does the Google: Gemma 2 27B API cost?
- Google: Gemma 2 27B costs Input $2.28 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
- What is the context window of Google: Gemma 2 27B?
- Google: Gemma 2 27B reads up to 8,192 tokens per request: prompt, history and documents together. It writes up to 2,048 output tokens per response.
- What can Google: Gemma 2 27B do?
- Google: Gemma 2 27B accepts text and returns text. It supports structured JSON output.
- How do I call Google: Gemma 2 27B from my code?
- Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "google/gemma-2-27b-it". No other code changes. Copy a ready example from the code panel on this page.
- What are alternatives to Google: Gemma 2 27B?
- Comparable Text models at a similar price: Qwen: Qwen3 Coder 480B A35B, MiniMax: MiniMax-01, Xiaomi: MiMo-V2.6-Pro. Each runs through the same API key, so switching is one string.
Google: Gemma 2 27B community
New topicThis community has no topics yet. Open the first one about Google: Gemma 2 27B.