Google logo

Gemma 4 31B It

google/gemma-4-31b-it
Chat
Google|
Function CallingVisionReasoning

Gemma 4 31B It (google/gemma-4-31b-it) is an AI model from Google with a 262,144-token context window and 262,144 max output tokens, priced at $0.22/1M input and $0.55/1M output tokens. Available via the haimaker.ai OpenAI-compatible API.

Context Window
262K
tokens
Max Output
262K
tokens
Input Price
$0.22
/1M tokens
Output Price
$0.55
/1M tokens

Overview

Gemma 4 31B It is a chat-based AI model developed by Google. It supports function calling, vision, and reasoning, with a context window of 262,144 tokens. Pricing is set at $0.22 per million input tokens and $0.55 per million output tokens.

Features & Capabilities

Modechat
Context Window262,144 tokens
Max Output262,144 tokens
Function CallingSupported
VisionSupported
ReasoningSupported
Web SearchNot supported
Url ContextNot supported

API Usage

from openai import OpenAI

client = OpenAI(
    base_url="https://api.haimaker.ai/v1",
    api_key="YOUR_API_KEY",
)

response = client.chat.completions.create(
    model="google/gemma-4-31b-it",
    messages=[
        {"role": "user", "content": "Hello, how are you?"}
    ],
)

print(response.choices[0].message.content)

Frequently Asked Questions

What is the context window of Gemma 4 31B It?

Gemma 4 31B It (google/gemma-4-31b-it) has a 262,144-token context window and supports up to 262,144 output tokens per request.

How much does Gemma 4 31B It cost?

Gemma 4 31B It is priced at $0.22 per 1M input tokens and $0.55 per 1M output tokens when accessed via the haimaker.ai OpenAI-compatible API.

What features does Gemma 4 31B It support?

Gemma 4 31B It supports function calling, vision, reasoning.

How do I use Gemma 4 31B It via API?

Send requests to https://api.haimaker.ai/v1/chat/completions with model "google/gemma-4-31b-it" using any OpenAI-compatible SDK. Authentication uses a Bearer API key from https://app.haimaker.ai.

Use Gemma 4 31B It with the haimaker API

OpenAI-compatible endpoint. Start building in minutes.

Get API Access

haimaker.ai 2026 - All Rights Reserved