Google logo

Gemma 4 31B It

google/gemma-4-31b-itChat
  • Function calling
  • Vision
  • Reasoning

Google

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

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)

Replace YOUR_API_KEY with a key from your haimaker account. Get an API key or read the developer docs.

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.

Specifications

ModeChat
SupportsFunction calling, Vision, Reasoning
Not supportedWeb search, URL context

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 131,072 output tokens per request.

How much does Gemma 4 31B It cost?

Gemma 4 31B It is priced at $0.15 per 1M input tokens and $0.40 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.