Google logo

Gemma 3 4B It

google/gemma-3-4b-itChat
  • Vision

Google

Gemma 3 4B It (google/gemma-3-4b-it) is a chat model from Google with a 131,072-token context window and 16,384 max output tokens, priced at $0.04/1M input and $0.05/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-3-4b-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 3 4B It is a chat-based AI model developed by Google. It supports vision capabilities and has a context window of 131,072 tokens, with a maximum output of 16,384 tokens. Pricing is set at $0.05 per 1M tokens for input and $0.10 per 1M tokens for output. Details about its parameter count, architecture, and license are currently unknown.

Specifications

ModeChat
SupportsVision
Not supportedFunction calling, Reasoning, Web search, URL context

Frequently asked questions

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

Gemma 3 4B It (google/gemma-3-4b-it) has a 131,072-token context window and supports up to 16,384 output tokens per request.

How much does Gemma 3 4B It cost?

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

What features does Gemma 3 4B It support?

Gemma 3 4B It supports vision.

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

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