Gemini
Google Gemini
Google's multimodal LLM. Processes text, images, audio, and video.
Google Gemini
Google's multimodal LLM. Processes text, images, audio, and video.
Gemini is a family of multimodal large language models (LLMs) developed by Google DeepMind. It can simultaneously understand and generate not only text but also images, audio, video, and code, and is referred to as one of the three major frontier models along with GPT-4 and Claude.
Since its first release in December 2023, it has evolved rapidly, and Gemini 3 was released in late 2025. Gemini 3 improved complex reasoning ability by more than 80% and supports a 1-million-token context window, so it can process a book-length document in one go.
The model lineup is segmented by use case: Gemini 3 Pro (highest performance, $2/$12 per 1M tokens), Gemini 2.5 Pro (balanced, $1.25/$10), Gemini 2.5 Flash (low-cost, high-speed, $0.15/$0.60), and Flash-Lite (ultra-lightweight, $0.10/$0.40). A Free Tier is also offered, allowing up to 1,000 requests per day to be tested free of charge.
In practice, Gemini's strength is its integration with the Google ecosystem. Google Search Grounding reflects real-time search results in responses, and enterprise-grade deployment is possible through Vertex AI. It is especially optimized for integration with Google Workspace, such as YouTube video analysis and Google Docs automation.
# Google Gemini API 기본 사용법
import google.generativeai as genai
from PIL import Image
# API 키 설정
genai.configure(api_key="YOUR_API_KEY")
# 1. 텍스트 생성 (Gemini 2.5 Flash - 가성비 모델)
model = genai.GenerativeModel("gemini-2.5-flash")
response = model.generate_content("한국 스타트업 생태계의 2025년 트렌드를 분석해줘")
print(response.text)
# 2. 멀티모달: 이미지 + 텍스트
vision_model = genai.GenerativeModel("gemini-2.5-pro")
image = Image.open("product_screenshot.png")
response = vision_model.generate_content([
"이 UI/UX의 문제점과 개선 방안을 구체적으로 분석해줘",
image
])
print(response.text)
# 3. 긴 문서 처리 (100만 토큰 컨텍스트)
long_doc_model = genai.GenerativeModel("gemini-2.5-pro")
with open("annual_report_2025.pdf", "rb") as f:
pdf_data = f.read()
response = long_doc_model.generate_content([
"이 연간 보고서에서 리스크 요인과 성장 기회를 요약해줘",
{"mime_type": "application/pdf", "data": pdf_data}
])
# 4. Function Calling (도구 사용)
tools = [{
"function_declarations": [{
"name": "search_database",
"description": "사내 데이터베이스에서 정보를 검색합니다",
"parameters": {
"type": "object",
"properties": {
"query": {"type": "string"},
"limit": {"type": "integer"}
}
}
}]
}]
fc_model = genai.GenerativeModel("gemini-2.5-flash", tools=tools)
response = fc_model.generate_content("최근 매출 데이터 5개 보여줘")
print(response.candidates[0].content.parts[0].function_call)
Key Google Gemini API pricing information as of January 2025.
| Model | Input (1M tokens) | Output (1M tokens) | Context |
|---|---|---|---|
| Gemini 2.5 Pro | $1.25 (up to 200K) / $2.50 (over) | $10.00 / $15.00 | 1M tokens |
| Gemini 2.0 Flash | $0.10 | $0.40 | 1M tokens |
| Gemini 2.0 Flash-Lite | $0.10 | $0.40 | 1M tokens |
| Gemini 1.5 Flash | $0.075 ~ $0.15 | $0.30 ~ $0.60 | 1M tokens |
Free tier: Free up to 15 requests per minute and 1,000 requests per day in Google AI Studio. Batch API offers a 50% discount, and context caching can save up to 90%.
"For cost efficiency, we'll use Gemini Flash as the main model and route only complex analysis to Pro. Since Flash's input is $0.15/1M, 90% cheaper than GPT-4 Turbo, we can significantly reduce our monthly API costs."
"What differentiates Gemini is native multimodality and a 1-million-token context. GPT-4 encodes images separately, but Gemini processes text, images, and video in the same token space, so cross-modal reasoning comes naturally."
"With the Google Search Grounding feature, you can fetch real-time information even without RAG. It's 1,500 requests per day free, so something like a news summary bot can be handled with Gemini alone, without a separate search API."
Take a mock interview on this topic → WIA SOOM AI Interview · Start for free
The free tier has limits of 15 requests per minute and 1,000 requests per day. Following the quota change in December 2025, 429 errors surged, so be sure to switch to a paid tier for production.
Gemini Pro charges double the price when input exceeds 200K tokens ($1.25→$2.50). For long documents, it is more cost-efficient to split them into chunks and summarize.
Routing simple classification/extraction to Flash-Lite ($0.10), general conversation to Flash ($0.15), and complex reasoning/coding to Pro ($1.25) can reduce costs by more than 70%.