Gemma 4 26B A4B
Gemma 4 26B A4B is Google's open-weight Mixture-of-Experts model from the Gemma 4 family: a sparse architecture that activates only 3.8 billion of its 25.2 billion parameters per token, giving it fast inference alongside much larger model capacity. It is called through /v1/chat/completions with the canonical model id gemma/gemma-4-26b-a4b-it.
| Model | Context | Input / Output ($/1M) |
|---|---|---|
gemma/gemma-4-26b-a4b-it | 262,144 | 0.07 / 0.34 |
curl "$LLMTR_BASE_URL/v1/chat/completions" \ -H "Authorization: Bearer llmtr-your_key" \ -H "Content-Type: application/json" \ -d '{ "model": "gemma/gemma-4-26b-a4b-it", "messages": [ { "role": "user", "content": "Write a short joke about saving RAM." } ], "max_tokens": 512 }'Reasoning is off by default
Section titled “Reasoning is off by default”The model can reason step by step before answering, but this is off by default. On a plain request, content carries the final answer directly with no separate reasoning trace.
Turn reasoning on by adding reasoning: true to the request, or use the :think suffix:
{ "model": "gemma/gemma-4-26b-a4b-it:think", "messages": [{ "role": "user", "content": "What is 17 times 23?" }], "max_tokens": 1024 }
// Or the reasoning field in the request body{ "model": "gemma/gemma-4-26b-a4b-it", "reasoning": true, "messages": [{ "role": "user", "content": "What is 17 times 23?" }], "max_tokens": 1024 }With reasoning on, the response carries a separate trace in message.reasoning_content; content still holds only the final answer. Reasoning tokens are counted in completion_tokens and billed as output, so keep max_tokens generous when reasoning is on.
Image input
Section titled “Image input”The model accepts text and image together, and produces text only. Send the image as a base64 data URL:
curl "$LLMTR_BASE_URL/v1/chat/completions" \ -H "Authorization: Bearer llmtr-your_key" \ -H "Content-Type: application/json" \ -d '{ "model": "gemma/gemma-4-26b-a4b-it", "messages": [{ "role": "user", "content": [ { "type": "text", "text": "What is in this image?" }, { "type": "image_url", "image_url": { "url": "data:image/png;base64,<base64>" } } ] }] }'Audio and video input are not supported.
Tool calling
Section titled “Tool calling”Tool calling is native. All three forms of tool_choice work — auto, required and a named function — and the returned tool_calls arguments are valid JSON. See Tool Calling for details.
curl "$LLMTR_BASE_URL/v1/chat/completions" \ -H "Authorization: Bearer llmtr-your_key" \ -H "Content-Type: application/json" \ -d '{ "model": "gemma/gemma-4-26b-a4b-it", "messages": [{ "role": "user", "content": "What is the weather in Istanbul?" }], "tools": [{ "type": "function", "function": { "name": "get_weather", "description": "Get current weather for a city", "parameters": { "type": "object", "properties": { "city": { "type": "string" } }, "required": ["city"] } } }], "tool_choice": "auto" }'Structured output
Section titled “Structured output”response_format accepts both json_object and json_schema:
{ "response_format": { "type": "json_schema", "json_schema": { "name": "capital", "schema": { "type": "object", "properties": { "country": { "type": "string" }, "capital": { "type": "string" } }, "required": ["country", "capital"] } } }}Limits
Section titled “Limits”- Context window is 262,144 tokens (confirmed against official model cards and live measurement).
- There is no separate output ceiling. No limit is applied to
max_tokensbeyond the context window; the gateway does not reject this with a400. - There is no prompt caching. Repeated prompt prefixes are not billed at a discount.
- Audio and video input are not supported.