{
 "kind": "model",
 "slug": "google-gemma-4-26b-a4b-it",
 "path": "models/open/google-gemma-4-26b-a4b-it/",
 "name": "Gemma 4 26B A4B",
 "maker": "Google",
 "density": "full",
 "crumbs": [
  [
   "Models",
   "models/"
  ],
  [
   "Open models",
   "models/open/"
  ]
 ],
 "lead": "Fast chat, code and image reading.",
 "chips": [
  {
   "label": "Text and agents",
   "path": "models/open/"
  },
  {
   "label": "Commercial use"
  },
  {
   "label": "Runs on 32 GB"
  }
 ],
 "primary": {
  "label": "Copy model id",
  "copy": "google/gemma-4-26B-A4B-it"
 },
 "links": [
  {
   "label": "Hugging Face",
   "href": "https://huggingface.co/google/gemma-4-26B-A4B-it"
  },
  {
   "label": "Demos",
   "href": "https://huggingface.co/spaces?search=Gemma 4 26B A4B"
  }
 ],
 "track": "New versions, price and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "Commercial use",
   "value": "Allowed",
   "status": "yes",
   "sub": "Apache 2.0",
   "quote": "each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work",
   "note": "Any use is allowed, paid products included; no fee and no credit line is required to use it.",
   "src": "https://ai.google.dev/gemma/docs/gemma_4_license"
  },
  {
   "key": "local",
   "label": "On your machine",
   "status": "yes",
   "value": "32 GB of memory",
   "sub": "25.8B parameters, ~15.5 GB at 4-bit",
   "note": "Our estimate: about 0.6 GB per billion parameters at 4-bit, with room for the context.",
   "src": "https://huggingface.co/google/gemma-4-26B-A4B-it"
  },
  {
   "key": "api",
   "label": "Through an API",
   "status": "yes",
   "value": "$0.07 / $0.24",
   "sub": "per 1M tokens, AkashML",
   "note": "Cheapest live provider with tool calling, as the provider reports its price.",
   "src": "https://huggingface.co/docs/inference-providers"
  },
  {
   "key": "tools",
   "label": "Tool calling",
   "status": "yes",
   "value": "10 of 12 providers",
   "sub": "12 providers, 10 with tool calling",
   "note": "Providers whose API supports tool calling for this model, as each reports it.",
   "src": "https://huggingface.co/google/gemma-4-26B-A4B-it"
  }
 ],
 "vfoot": "Checked against its official pages on Nov 23, 2026.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Gemma 4 26B A4B does",
   "parts": [
    {
     "t": "prose",
     "text": "Gemma 4 26B A4B is an open text and image model by Google DeepMind that chats, writes code, reasons and reads pictures, built to answer fast. Only a small part of it (3.8B of 25.2B parameters) works on each step, so it runs almost as fast as a 4B model. The model files are on Hugging Face, free to use in paid products under the Apache 2.0 license."
    },
    {
     "t": "h3",
     "text": "What people use it for"
    },
    {
     "t": "uses",
     "items": [
      {
       "title": "Quick chat assistant on your server",
       "text": "Power support chats, assistants or writing tools where answer speed matters, without paying per request to a hosted model.",
       "idea": false
      },
      {
       "title": "Read documents, charts and screenshots",
       "text": "Ask questions about a photo, a scanned page, a chart or an app screen, including text in many languages and handwriting.",
       "idea": false
      },
      {
       "title": "Agents that call your tools",
       "text": "Let the model pick a function from your app (search, booking, database lookup) and fill in its inputs, as the core of an agent.",
       "idea": false
      },
      {
       "title": "Write and fix code",
       "text": "Generate, complete and correct code locally, for example inside a private coding assistant.",
       "idea": false
      },
      {
       "title": "Many languages",
       "text": "Answer users in 35+ languages out of the box; it was trained on text in over 140 languages.",
       "idea": false
      }
     ]
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Gemma 4 26B A4B popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "1,811",
       "l": "likes on Hugging Face"
      },
      {
       "n": "4.6M",
       "l": "downloads, last 30 days"
      },
      {
       "n": "21",
       "l": "Hugging Face trending score"
      }
     ]
    },
    {
     "t": "small",
     "text": "As reported by Hugging Face, checked Nov 26, 2026. Downloads include automated ones; some repositories report none."
    }
   ]
  },
  {
   "id": "run",
   "nav": "Run it",
   "h2": "Where to run Gemma 4 26B A4B",
   "parts": [
    {
     "t": "h3",
     "text": "Through an API"
    },
    {
     "t": "table",
     "head": [
      "Provider",
      "$ per 1M in / out",
      "Tools",
      "Context"
     ],
     "rows": [
      [
       "Io Net (99.9% up, 24h)",
       "$0.067 / $0.29",
       "Yes",
       "262K"
      ],
      [
       "AkashML (97.2% up, 24h)",
       "$0.07 / $0.24",
       "Yes",
       "131K"
      ],
      [
       "DeepInfra (100% up, 24h)",
       "$0.07 / $0.34",
       "Yes",
       "262K"
      ],
      [
       "Makora (100% up, 24h)",
       "$0.09 / $0.28",
       "Yes",
       "256K"
      ],
      [
       "NextBit (100% up, 24h)",
       "$0.09 / $0.3",
       "Yes",
       "262K"
      ],
      [
       "OpenRouter",
       "$0.09 / $0.3",
       "Yes",
       "262K"
      ],
      [
       "Cloudflare (100% up, 24h)",
       "$0.1 / $0.3",
       "Yes",
       "256K"
      ],
      [
       "CoreWeave (99.7% up, 24h)",
       "$0.1 / $0.3",
       "No",
       "262K"
      ],
      [
       "PrimeIntellect (100% up, 24h)",
       "$0.1 / $0.36",
       "Yes",
       "262K"
      ],
      [
       "Parasail (100% up, 24h)",
       "$0.13 / $0.4",
       "No",
       "262K"
      ]
     ],
     "num": true
    },
    {
     "t": "small",
     "text": "As reported by each provider via Hugging Face Inference Providers and OpenRouter, checked Nov 26, 2026."
    },
    {
     "t": "h3",
     "text": "On your machine"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "Parameters",
       "v": "25.8B"
      },
      {
       "l": "Memory at 4-bit",
       "v": "about 15.5 GB",
       "sub": "Our estimate: 0.6 GB per billion parameters, with room for the context."
      },
      {
       "l": "GGUF builds",
       "v": "64 on Hugging Face",
       "sub": "For llama.cpp, Ollama and LM Studio; e.g. ggml-org/gemma-4-26B-A4B-it-GGUF"
      },
      {
       "l": "MLX builds",
       "v": "19 on Hugging Face",
       "sub": "For Apple silicon"
      }
     ]
    }
   ]
  },
  {
   "id": "license",
   "nav": "License",
   "h2": "Gemma 4 26B A4B license",
   "parts": [
    {
     "t": "prose",
     "text": "Free to use, change and sell inside paid products under Apache 2.0. If you pass the model files on, include a copy of the license and mark the files you changed."
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In a paid product",
       "v": "Yes",
       "status": "yes",
       "sub": "Any use is allowed, paid products included; no fee and no credit line is required to use it.",
       "quote": "each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work",
       "src": "https://ai.google.dev/gemma/docs/gemma_4_license"
      },
      {
       "l": "Ship the weights to users",
       "v": "With conditions",
       "status": "cond",
       "sub": "Shipping the weights or a fine-tuned copy needs a copy of the Apache 2.0 license and a note on changed files.",
       "quote": "You must cause any modified files to carry prominent notices stating that You changed the files",
       "src": "https://ai.google.dev/gemma/docs/gemma_4_license"
      },
      {
       "l": "Work for clients",
       "v": "Yes",
       "status": "yes",
       "sub": "You may build and deliver client projects with it under the same Apache 2.0 terms.",
       "quote": "each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work",
       "src": "https://ai.google.dev/gemma/docs/gemma_4_license"
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Gemma 4 26B A4B",
       "me": true,
       "facts": [
        "1,811 likes",
        "Apache 2.0"
       ]
      },
      {
       "name": "Qwen3.8-27B",
       "path": "models/open/qwen-qwen3-8-27b/",
       "why": "Qwen · image-text-to-text",
       "facts": [
        "21.7K likes",
        "Apache 2.0"
       ]
      },
      {
       "name": "Kimi-K3",
       "path": "models/open/moonshotai-kimi-k3/",
       "why": "moonshotai · image-text-to-text",
       "facts": [
        "12K likes",
        "Custom license"
       ]
      },
      {
       "name": "Llama-3.1-8B-Instruct",
       "path": "models/open/meta-llama-llama-3-1-8b-instruct/",
       "why": "meta-llama · text-generation",
       "facts": [
        "9,102 likes",
        "Llama 3.1 license"
       ]
      },
      {
       "name": "Qwen3.8-Flash-Next",
       "path": "models/open/qwen-qwen3-8-flash-next/",
       "why": "Qwen · image-text-to-text",
       "facts": [
        "7,502 likes",
        "Custom license"
       ]
      }
     ],
     "more": "All text and agents models",
     "more_path": "models/open/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "prompt",
     "text": "Run google/gemma-4-26B-A4B-it locally with the latest transformers (pip install -U transformers torch accelerate), load it with AutoProcessor and AutoModelForMultimodalLM (dtype=\"auto\", device_map=\"auto\"), put images before text, use temperature 1.0, top_p 0.95, top_k 64, and read answers through processor.parse_response."
    },
    {
     "t": "steps",
     "items": [
      {
       "text": "Install the libraries.",
       "code": "pip install -U transformers torch accelerate",
       "src": "https://huggingface.co/google/gemma-4-26B-A4B-it/raw/main/README.md"
      },
      {
       "text": "Load the model and its processor.",
       "code": "from transformers import AutoProcessor, AutoModelForMultimodalLM\n\nMODEL_ID = \"google/gemma-4-26B-A4B-it\"\n\n# Load model\nprocessor = AutoProcessor.from_pretrained(MODEL_ID)\nmodel = AutoModelForMultimodalLM.from_pretrained(\n    MODEL_ID,\n    dtype=\"auto\",\n    device_map=\"auto\"\n)\n",
       "src": "https://huggingface.co/google/gemma-4-26B-A4B-it/raw/main/README.md"
      },
      {
       "text": "Send a chat with apply_chat_template and generate; add enable_thinking=True when you want step-by-step reasoning.",
       "code": null,
       "src": "https://huggingface.co/google/gemma-4-26B-A4B-it/raw/main/README.md"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Model id to use"
    },
    {
     "t": "tabs",
     "label": "Where to run",
     "items": [
      {
       "tab": "OpenRouter",
       "intro": "OpenAI-compatible: base URL https://openrouter.ai/api/v1",
       "code": "google/gemma-4-26b-a4b-it"
      },
      {
       "tab": "Hugging Face router",
       "intro": "OpenAI-compatible: base URL https://router.huggingface.co/v1",
       "code": "google/gemma-4-26B-A4B-it"
      },
      {
       "tab": "Local (GGUF)",
       "intro": "A community GGUF build on Hugging Face; read its card before use.",
       "code": "ggml-org/gemma-4-26B-A4B-it-GGUF"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Mistakes to avoid"
    },
    {
     "t": "mistakes",
     "items": [
      {
       "dont": "Loading it with old Gemma code or an old Transformers version",
       "fix": "pip install -U transformers torch accelerate, then AutoProcessor plus AutoModelForMultimodalLM as in the model card",
       "why": "The model card says Gemma 4 needs the latest Transformers and shows only this loading code."
      },
      {
       "dont": "Picking it for the longest documents because it is fast",
       "fix": "For long-document recall pick the dense 31B, which scored 66.4% against 44.1% on Google's 128k test",
       "why": "In Google's own long-context table this model scores much lower than the 31B."
      },
      {
       "dont": "Sending the model's earlier thinking back in the chat history",
       "fix": "Keep only the final answers of earlier turns; keep the thinking only for tool-call turns",
       "why": "The card says earlier thoughts must not be added before the next user turn."
      },
      {
       "dont": "Putting the image after the question in the prompt",
       "fix": "Put image content first, then the text",
       "why": "Google recommends this order for the best results with images."
      },
      {
       "dont": "Keeping sampling settings copied from another model",
       "fix": "temperature=1.0, top_p=0.95, top_k=64",
       "why": "The card gives one standard setting for all uses."
      }
     ]
    }
   ]
  },
  {
   "id": "faq",
   "nav": "Questions",
   "h2": "Questions",
   "parts": [
    {
     "t": "faq",
     "items": [
      {
       "q": "Why is it called 26B A4B?",
       "a": "It has about 26B parameters in total, but only about 4B (3.8B) are active for each step, so it runs nearly as fast as a 4B model.",
       "evidence": {
        "url": "https://huggingface.co/google/gemma-4-26B-A4B-it/raw/main/README.md",
        "quote": "The \"A\" in 26B A4B stands for \"active parameters\" in contrast to the total number of parameters the model contains."
       }
      },
      {
       "q": "Can I use it in a paid app?",
       "a": "Yes. It is under Apache 2.0, which allows commercial use; keep the license text with any copies of the files you share.",
       "evidence": {
        "url": "https://huggingface.co/google/gemma-4-26B-A4B-it/raw/main/README.md",
        "quote": "license: apache-2.0"
       }
      },
      {
       "q": "Does it understand images and audio?",
       "a": "Images and video frames, yes. Audio no; only the E2B, E4B and 12B sizes take audio.",
       "evidence": {
        "url": "https://huggingface.co/google/gemma-4-26B-A4B-it/raw/main/README.md",
        "quote": "All models support image inputs and can process videos as frames whereas the E2B, E4B, and 12B models also support audio inputs."
       }
      },
      {
       "q": "How long can the input be?",
       "a": "Up to 256K tokens for this size.",
       "evidence": {
        "url": "https://huggingface.co/google/gemma-4-26B-A4B-it/raw/main/README.md",
        "quote": "Long Context – Context windows of up to 128K tokens (E2B/E4B) and 256K tokens (12B, 26B A4B/31B)."
       }
      }
     ]
    }
   ]
  }
 ],
 "glance": [
  [
   "Maker",
   "Google"
  ],
  [
   "Task",
   "Text and agents"
  ],
  [
   "Pipeline",
   "image-text-to-text"
  ],
  [
   "On Hugging Face since",
   "Mar 11, 2026"
  ],
  [
   "License",
   "Apache 2.0"
  ],
  [
   "Parameters",
   "25.8B"
  ],
  [
   "Context",
   "262K tokens"
  ],
  [
   "Hugging Face",
   "google/gemma-4-26B-A4B-it"
  ]
 ],
 "good": [
  "It is a mixture-of-experts model; the files hold all 25.2B parameters, but each step uses only 3.8B of them, which is why it is fast.",
  "It is made for a graphics card (GPU) or a workstation, not for phones; the small E2B and E4B sizes are the ones for phones and laptops.",
  "It reads text, images and video frames, but not audio; sound input exists only in the E2B, E4B and 12B sizes."
 ],
 "checked_line": "Hand-checked from 4 official pages on Nov 23, 2026; numbers refresh daily.",
 "logo": null
}