{"slug":"gemini-2.5-flash-lite","name":"Gemini 2.5 Flash Lite","family":"gemini","family_name":"Gemini","developer":"Google","color":"#4285f4","status":"active","released":"2025-06-17","snapshot_of":null,"open":false,"context":1000000,"max_output":65536,"knowledge_cutoff":"2025-01","modalities":["text","image","audio","video","file"],"output_modalities":["text"],"reasoning":true,"tools":true,"structured_output":true,"huggingface":null,"speed":178,"latency":0.5,"short":"A closed, small-tier multimodal model from Google, released June 2025. It is priced low, with a 1M context window, and has no benchmark results in this registry.","strengths":["Blended price of $0.175 per million tokens, 20th of 194 for price","1M token context window","Accepts text, image, audio, video and file inputs","Supports tool calling, reasoning mode and structured output"],"weaknesses":["No benchmark results, so capability cannot be compared with other models","Offered by only two providers, Google Vertex and OpenRouter","Ranks 46th of 194 for popularity"],"best_for":"High-volume, cost-sensitive agent work that needs tool calling or multimodal input and a large context window.","long":"Gemini 2.5 Flash Lite is a closed model from Google, released in June 2025, with a knowledge cutoff of January 2025. Its main appeal for an agent builder is price. At $0.10 per million input tokens and $0.40 per million output tokens, its blended price of $0.175 is well below the registry median of about $1.01 and ranks 20th of 194 for price.\n\nThe specifications are broad for a model at this price. It has a 1M token context window, a maximum response of 64k tokens, and accepts text, image, audio, video and file inputs. It supports tool calling, reasoning mode and structured output.\n\nThe registry holds no benchmark results for this model, so its capability relative to others cannot be assessed from the registry data. It is available through Google Vertex and OpenRouter.","described":true,"gateway":true,"byok":true,"string":"gateway/google-cloud:gemini-2.5-flash-lite","input":0.1,"output":0.4,"cache_read":0.01,"blended":0.175,"efficiency":null,"bench":{},"offers":[{"provider":"google","name":"Google Vertex","model_id":"gemini-2.5-flash-lite","api":["anthropic","gemini"],"input":0.1,"output":0.4,"cache_read":0.01,"cache_write":null,"input_tiers":[],"output_tiers":[],"context":1000000,"deprecated":false,"gateway":true,"gateway_route":"google-vertex","byok":true,"string":"google-cloud:gemini-2.5-flash-lite","gateway_string":"gateway/google-cloud:gemini-2.5-flash-lite"},{"provider":"openrouter","name":"OpenRouter","model_id":"google/gemini-2.5-flash-lite","api":["openai"],"input":0.1,"output":0.4,"cache_read":0.01,"cache_write":0.08333333333333334,"input_tiers":[],"output_tiers":[],"context":1048576,"deprecated":false,"gateway":false,"gateway_route":null,"byok":true,"string":"openrouter:google/gemini-2.5-flash-lite","gateway_string":null}],"ranks":{"intelligence":null,"popularity":46,"efficiency":null,"speed":8,"price":20},"top_score":0.3429,"about":["A closed, small-tier multimodal model from Google, released June 2025. It is priced low, with a 1M context window, and has no benchmark results in this registry.","Gemini 2.5 Flash Lite is a closed model from Google, released in June 2025, with a knowledge cutoff of January 2025. Its main appeal for an agent builder is price. At $0.10 per million input tokens and $0.40 per million output tokens, its blended price of $0.175 is well below the registry median of about $1.01 and ranks 20th of 194 for price.","The specifications are broad for a model at this price. It has a 1M token context window, a maximum response of 64k tokens, and accepts text, image, audio, video and file inputs. It supports tool calling, reasoning mode and structured output.","The registry holds no benchmark results for this model, so its capability relative to others cannot be assessed from the registry data. It is available through Google Vertex and OpenRouter."],"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:gemini-2.5-flash-lite', 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:gemini-2.5-flash-lite', 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:gemini-2.5-flash-lite',\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:gemini-2.5-flash-lite')\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:gemini-2.5-flash-lite'","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('gemini-2.5-flash-lite'),\n  system: 'Be concise, reply with one sentence.',\n  prompt: 'Where does \"hello world\" come from?',\n})\nconsole.log(text)","soon":false}],"benchmarks":[],"generated":"2026-11-25","gaps":{"speed":3,"index":80,"description":0}}