> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.empiriolabs.ai/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.empiriolabs.ai/_mcp/server.

# Gemma 3 27B

> Open-source vision-language model with 128K context, 140+ languages, improved math/reasoning, structured outputs, and function calling.

![Gemma 3 27B](https://media.empiriolabs.ai/model-logos/gemma.png)

[Google](/providers/google) · Text Generation

`POST /v1/chat/completions`

Open-source vision-language model with 128K context, 140+ languages, improved math/reasoning, structured outputs, and function calling.

## At a glance

| Field               | Value                                                                                                                     |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------- |
| Model id            | `gemma-3-27b`                                                                                                             |
| Model release date  | 2025-03-10                                                                                                                |
| Input modalities    | Text, Image                                                                                                               |
| Output modalities   | Text                                                                                                                      |
| Context window      | 128K                                                                                                                      |
| Weight precision    | -                                                                                                                         |
| Max output tokens   | 16,384                                                                                                                    |
| Features            | vision                                                                                                                    |
| Native inference    | No                                                                                                                        |
| New                 | No                                                                                                                        |
| Structured output   | Not supported                                                                                                             |
| Supported endpoints | `POST /v1/chat/completions`, `POST /v1/responses`, `POST /v1/messages`, `POST /v1beta/models/gemma-3-27b:generateContent` |
| Alternate model ids | `gemma-3-27b-it`, `google/gemma-3-27b`                                                                                    |

## Pricing

| Charge              | Spec                  | Rate     |
| ------------------- | --------------------- | -------- |
| Per Message         | fixed                 | \$0.0040 |
| Web Search (Linkup) | per call when invoked | \$0.013  |

## Example request

```bash
curl https://api.empiriolabs.ai/v1/chat/completions \
  -H 'Authorization: Bearer $EMPIRIOLABS_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"model": "gemma-3-27b", "messages": [{"role":"user","content":"Hello"}]}'
```

## Parameters

| Parameter            | Type    | Required | Default | Description                                                                                                                                                                                                                                                                         |
| -------------------- | ------- | -------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `temperature`        | number  | no       | `1.0`   | Sampling temperature · Range: 0 – 2                                                                                                                                                                                                                                                 |
| `top_p`              | number  | no       | `1.0`   | Nucleus sampling · Range: 0 – 1                                                                                                                                                                                                                                                     |
| `max_tokens`         | number  | no       | `4096`  | Maximum output tokens. · Range: 1 – 16384                                                                                                                                                                                                                                           |
| `stop`               | string  | no       | -       | Stop sequences: the model stops before generating any of them.                                                                                                                                                                                                                      |
| `web_search_linkup`  | boolean | no       | false   | Optional web search powered by Linkup. When enabled, recent web sources are retrieved using your latest user message as the query and provided to the model as additional context. Adds \$0.013 per call when invoked on top of the model's normal token cost. Disabled by default. |
| `disable_formatting` | boolean | no       | false   | Return the answer without the Sources list that web search adds.                                                                                                                                                                                                                    |

---

*Machine-readable schema:* `GET https://api.empiriolabs.ai/v1/models/gemma-3-27b`.