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 4 31B (free)
google/gemma-4-31b-it:freeTry Google: Gemma 4 31B (free) 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 4 31B (free) at a glance
- Context window of 262,144 tokens, enough for long documents and multi-turn conversations.
- Supports tool (function) calling for agents and integrations.
- Supports reasoning effort control.
- Accepts images as input (vision).
About Google: Gemma 4 31B (free)
Gemma 4 31B Instruct is an open model from Google DeepMind, published by Google, and offered on api14 under the model id google/gemma-4-31b-it:free. It is a 30.7B dense multimodal instruction-tuned model, part of the Gemma family, and it sits in the text category on api14 even though it accepts more than text as input. The provider release date is 2026-04-02.
On the input side, the model accepts text, images and video, and it produces text only. Its context window is 262,144 tokens, with a maximum output of 32,768 tokens. It supports a configurable thinking or reasoning mode, which you can steer through the reasoning and include_reasoning parameters. The spread of inputs means you can mix prose, screenshots, photos and video frames in the same conversation without switching models.
Those capabilities point to a fairly wide set of practical uses. Long documents, codebases, transcripts and multi-hour conversation logs fit inside the 256K context, so summarisation, question answering and extraction over large inputs are reasonable fits. Because images and video are accepted, tasks like describing visual content, reading charts or screenshots, moderating user-submitted media and answering questions about recorded footage are also viable. Instruction tuning plus tool support makes it a candidate for assistants that need to call functions, return structured output, or reason step by step before answering.
Calling it through api14 works the same way as any other model on the gateway, since the API is OpenAI-compatible. You send your request to the chat completions endpoint and set the model field to google/gemma-4-31b-it:free. The supported request parameters are include_reasoning, max_tokens, reasoning, response_format, seed, temperature, tool_choice, tools and top_p. In practice that means you can control sampling with temperature and top_p, cap the reply with max_tokens, make runs reproducible with seed, request JSON or other structured shapes with response_format, and define callable functions with tools and tool_choice. If you want the model's thinking surfaced or hidden, use reasoning and include_reasoning.
A few things are worth keeping in mind before you commit. Output is text only, so if you need generated images, audio or video, this model will not produce them. The 32,768 token output ceiling is well below the input context, so very long generations, such as entire books in one response, are not what it is built for. There is no stated pricing or rate information here, so check the live price table on the page for current terms. Within those bounds it is a straightforward choice for multimodal understanding, long-context work and tool-using assistants.
How to call the Google: Gemma 4 31B (free) 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-4-31b-it:free".
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-4-31b-it:free",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
});
console.log(result.choices[0].message.content);
Supported parameters
include_reasoningmax_tokensreasoningresponse_formatseedtemperaturetool_choicetoolstop_pSpecifications
- Context length
- 262,144
- Max output
- 32,768
- Input
- image, text, video
- Output
- text
Requests on api14 · last 7 days
Google: Gemma 4 31B (free): frequently asked questions
- How much does the Google: Gemma 4 31B (free) API cost?
- Google: Gemma 4 31B (free) is free to call ($0 per token). Free variants have stricter upstream rate limits, so use them for testing and low-volume work.
- What is the context window of Google: Gemma 4 31B (free)?
- Google: Gemma 4 31B (free) reads up to 262,144 tokens per request: prompt, history and documents together. It writes up to 32,768 output tokens per response.
- What can Google: Gemma 4 31B (free) do?
- Google: Gemma 4 31B (free) accepts image, text, video and returns text. It supports tool calling, reasoning effort control.
- How do I call Google: Gemma 4 31B (free) from my code?
- Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "google/gemma-4-31b-it:free". No other code changes. Copy a ready example from the code panel on this page.
- What are alternatives to Google: Gemma 4 31B (free)?
- Comparable Text models at a similar price: Recursive: Flint (free), XingChen: Xing4.0 29B A4B (free), NVIDIA: Nemotron 3.5 Super VL (free). Each runs through the same API key, so switching is one string.
Google: Gemma 4 31B (free) community
New topicThis community has no topics yet. Open the first one about Google: Gemma 4 31B (free).