Gemma-3-4B-IT
Google's compact 4B open-weight multimodal instruction-tuned model equipped with a SigLIP vision encoder and 128K context window, designed for low-latency visual chat and edge or consumer GPU deployment.
What you can do
- Consumer-GPU local multimodal assistant
- Receipt and screenshot field extraction
- Multilingual summarization and chat
Input & output
- Input
- Short or long text instructions and images within a 128K token window
- Output
- Low-latency conversational replies, image captions, extracted fields, and summaries
Try a prompt like this
Extract the merchant name, transaction date, line items, and total amount from this receipt photo into a clean JSON object.
Things to know
Fits comfortably in ~9GB VRAM in BF16 or ~3.5GB in INT4/GGUF quantization on consumer GPUs; smaller parameter capacity limits multi-hop mathematical reasoning compared to 12B/27B siblings, under Gemma Terms of Use.
All listed models publish open weights for self-hosted deployment; check each repository's license before commercial use.
Call it through the API
The platform exposes an OpenAI-compatible API. Use an official SDK or any HTTP client, then set the gateway URL, API key, and model ID.
- Endpoint
POST/v1/chat/completions- Model repo ID
LLM-Research/gemma-3-4b-it
import os
from openai import OpenAI
client = OpenAI(
base_url=os.environ["API_BASE_URL"],
api_key=os.environ["API_KEY"],
)
response = client.chat.completions.create(
model="LLM-Research/gemma-3-4b-it",
messages=[{"role": "user", "content": "Extract the merchant name, transaction date, line items, and total amount from this receipt photo into a clean JSON object."}],
)
print(response.choices[0].message.content)Before running a sample, set the API_BASE_URL (gateway URL) and API_KEY environment variables.
Read the full API guide