{"slug":"gemma-4-26b-a4b-it","name":"Gemma 4 26B A4B","family":"gemini","family_name":"Gemini","developer":"Google","color":"#4285f4","status":"active","released":"2026-04-02","snapshot_of":null,"open":true,"context":262144,"max_output":32768,"knowledge_cutoff":null,"modalities":["text","image","video"],"output_modalities":["text"],"reasoning":true,"tools":true,"structured_output":true,"huggingface":"google/gemma-4-26B-A4B-it","speed":63,"latency":0.61,"short":"Open-weight model from Google, released April 2026, accepting text, image and video input. Its standout is price: blended cost is about a quarter of the registry median, while benchmark results trail most models.","strengths":["Intelligence points per dollar rank 13th of 194","Blended price of $0.26 per million tokens, well below the median","Accepts text, image and video input with a 262k context window","Supports tool calling, structured output and reasoning mode"],"weaknesses":["Intelligence index 52.6, 82nd of 114, below the 59.5 median","GPQA Diamond 73.2%, 88th of 94","WebDev Arena 1361, 74th of 85"],"best_for":"High-volume, low-cost agents doing tool calling and multimodal input where top-tier reasoning is less critical.","long":"Gemma 4 26B A4B is an open-weight model from Google, released in April 2026. Its main appeal is cost. It charges $0.15 per million input tokens and $0.60 per million output, and ranks 13th of 194 on intelligence points per dollar. Its blended price of $0.26 per million tokens compares with a registry median of about $1.01.\n\nIt has a 262k token context window and can return responses up to 32k tokens. It accepts text, image and video, and supports tool calling, structured output and a reasoning mode. It is offered by four providers, including Google Vertex and OpenRouter, and is built into the Pydantic AI Gateway.\n\nBenchmark results are weaker. Its intelligence index of 52.6 sits below the 59.5 median, and it ranks 88th of 94 on GPQA Diamond at 73.2%. Its LMArena text score is close to the median. Teams that need strong reasoning on hard tasks should compare it with stronger models; it suits cost-sensitive work.","described":true,"gateway":true,"byok":true,"string":"gateway/google-cloud:gemma-4-26b-a4b-it-maas","input":0.15,"output":0.6,"cache_read":0.015,"blended":0.2625,"efficiency":200.4,"bench":{"index":52.6,"gpqa":73.2,"aime":82.2,"scicode":40,"webdev":1361.4,"lmarena":1434.2,"eci":141.6},"offers":[{"provider":"google","name":"Google Vertex","model_id":"gemma-4-26b-a4b-it-maas","api":["anthropic","gemini"],"input":0.15,"output":0.6,"cache_read":0.015,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":262144,"deprecated":false,"gateway":true,"gateway_route":"google-vertex","byok":true,"string":"google-cloud:gemma-4-26b-a4b-it-maas","gateway_string":"gateway/google-cloud:gemma-4-26b-a4b-it-maas"},{"provider":"cloudflare","name":"Cloudflare Workers AI","model_id":"@cf/google/gemma-4-26b-a4b-it","api":["openai"],"input":0.1,"output":0.3,"cache_read":null,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":256000,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":null,"gateway_string":null},{"provider":"novita","name":"Novita","model_id":"google/gemma-4-26b-a4b-it","api":["openai"],"input":0.13,"output":0.4,"cache_read":null,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":262144,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":null,"gateway_string":null},{"provider":"openrouter","name":"OpenRouter","model_id":"google/gemma-4-26b-a4b-it","api":["openai"],"input":0.15,"output":0.6,"cache_read":0.0425,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":null,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"openrouter:google/gemma-4-26b-a4b-it","gateway_string":null}],"ranks":{"intelligence":79,"popularity":28,"efficiency":13,"speed":101,"price":38},"top_score":0.7786,"about":["Open-weight model from Google, released April 2026, accepting text, image and video input. Its standout is price: blended cost is about a quarter of the registry median, while benchmark results trail most models.","Gemma 4 26B A4B is an open-weight model from Google, released in April 2026. Its main appeal is cost. It charges $0.15 per million input tokens and $0.60 per million output, and ranks 13th of 194 on intelligence points per dollar. Its blended price of $0.26 per million tokens compares with a registry median of about $1.01.","It has a 262k token context window and can return responses up to 32k tokens. It accepts text, image and video, and supports tool calling, structured output and a reasoning mode. It is offered by four providers, including Google Vertex and OpenRouter, and is built into the Pydantic AI Gateway.","Benchmark results are weaker. Its intelligence index of 52.6 sits below the 59.5 median, and it ranks 88th of 94 on GPQA Diamond at 73.2%. Its LMArena text score is close to the median. Teams that need strong reasoning on hard tasks should compare it with stronger models; it suits cost-sensitive work."],"examples":[{"file":"hello.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport os\n\nfrom pydantic_ai import Agent\n\nos.environ['PYDANTIC_AI_GATEWAY_API_KEY'] = '...'\n\nagent = Agent('gateway/google-cloud:gemma-4-26b-a4b-it-maas', instructions='Be concise, reply with one sentence.')\n\nresult = agent.run_sync('Where does \"hello world\" come from?')\nprint(result.output)","soon":false},{"file":"structured_output.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport os\n\nfrom pydantic import BaseModel\nfrom pydantic_ai import Agent\n\nos.environ['PYDANTIC_AI_GATEWAY_API_KEY'] = '...'\n\n\nclass CityLocation(BaseModel):\n    city: str\n    country: str\n\n\nagent = Agent('gateway/google-cloud:gemma-4-26b-a4b-it-maas', output_type=CityLocation)\n\nresult = agent.run_sync('Where were the olympics held in 2012?')\nprint(result.output)\n#> city='London' country='United Kingdom'","soon":false},{"file":"tools.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport os\nimport random\n\nfrom pydantic_ai import Agent, RunContext\n\nos.environ['PYDANTIC_AI_GATEWAY_API_KEY'] = '...'\n\nagent = Agent(\n    'gateway/google-cloud:gemma-4-26b-a4b-it-maas',\n    deps_type=str,\n    instructions=\"You're a dice game, roll the die and see if it matches the user's guess.\",\n)\n\n\n@agent.tool_plain\ndef roll_dice() -> str:\n    \"\"\"Roll a six-sided die and return the result.\"\"\"\n    return str(random.randint(1, 6))\n\n\n@agent.tool\ndef get_player_name(ctx: RunContext[str]) -> str:\n    \"\"\"Get the player's name.\"\"\"\n    return ctx.deps\n\n\nresult = agent.run_sync('My guess is 4', deps='Anne')\nprint(result.output)","soon":false},{"file":"streaming.py","lang":"python","code":"# /// script\n# dependencies = [\"pydantic-ai\"]\n# ///\nimport asyncio\nimport os\n\nfrom pydantic_ai import Agent\n\nos.environ['PYDANTIC_AI_GATEWAY_API_KEY'] = '...'\n\nagent = Agent('gateway/google-cloud:gemma-4-26b-a4b-it-maas')\n\n\nasync def main():\n    async with agent.run_stream('Explain prompt caching in three bullet points.') as response:\n        async for text in response.stream_text(delta=True):\n            print(text, end='', flush=True)\n\n\nasyncio.run(main())","soon":false},{"file":"pax.sh","lang":"sh","code":"export PYDANTIC_AI_GATEWAY_API_KEY='...'\n\nuvx pax --model 'gateway/google-cloud:gemma-4-26b-a4b-it-maas'","soon":true},{"file":"ai_sdk.ts","lang":"ts","code":"// npm install ai @ai-sdk/google-vertex\nimport { createVertex } from '@ai-sdk/google-vertex'\nimport { generateText } from 'ai'\n\nprocess.env.PYDANTIC_AI_GATEWAY_API_KEY = '...'\n\nconst googleCloud = createVertex({\n  baseURL: 'https://gateway.pydantic.dev/proxy/google-vertex',\n  apiKey: process.env.PYDANTIC_AI_GATEWAY_API_KEY,\n})\n\nconst { text } = await generateText({\n  model: googleCloud('gemma-4-26b-a4b-it-maas'),\n  system: 'Be concise, reply with one sentence.',\n  prompt: 'Where does \"hello world\" come from?',\n})\nconsole.log(text)","soon":false}],"benchmarks":[{"id":"index","name":"Intelligence index","unit":"","desc":"Our composite of the benchmarks below, 0-100","category":"reference","floor":0,"ceiling":100,"url":"/methodology/","credit":"Pydantic, from the sources credited below"},{"id":"gpqa","name":"GPQA Diamond","unit":"%","desc":"Graduate-level science questions, multiple choice","category":"reasoning","floor":25,"ceiling":97,"url":"https://epoch.ai/benchmarks/gpqa-diamond","credit":"Epoch AI (CC BY 4.0)"},{"id":"aime","name":"OTIS Mock AIME","unit":"%","desc":"Competition mathematics problems with exact answers","category":"reasoning","floor":0,"ceiling":100,"url":"https://epoch.ai/benchmarks/otis-mock-aime-2024-2025","credit":"Epoch AI (CC BY 4.0)"},{"id":"scicode","name":"SciCode","unit":"%","desc":"Scientific programming problems written by researchers","category":"coding","floor":0,"ceiling":100,"url":"https://scicode-bench.github.io/","credit":"SciCode, via Epoch AI (CC BY 4.0)"},{"id":"webdev","name":"WebDev Arena","unit":"","desc":"Rating from human votes on web apps the models built","category":"coding","floor":1000,"ceiling":1900,"url":"https://web.lmarena.ai/leaderboard","credit":"LMArena, via Epoch AI (CC BY 4.0)"},{"id":"lmarena","name":"LMArena text","unit":"","desc":"Rating from blind human votes between pairs of chat responses","category":"preference","floor":1100,"ceiling":1600,"url":"https://lmarena.ai/leaderboard/text","credit":"LMArena (CC BY 4.0)"},{"id":"eci","name":"Epoch Capabilities Index","unit":"","desc":"Epoch AI's own composite across about 40 benchmarks; shown for comparison, not part of our index","category":"reference","floor":80,"ceiling":180,"url":"https://epoch.ai/benchmarks/eci","credit":"Epoch AI (CC BY 4.0)"}],"generated":"2026-11-25","gaps":{"speed":3,"index":80,"description":0}}