LLM
Large Language Model
Large language model. GPT, Claude, Gemini. Billions to trillions of parameters.
Large Language Model
Large language model. GPT, Claude, Gemini. Billions to trillions of parameters.
LLM (Large Language Model) is a natural language processing model with billions to trillions of parameters. Representative examples include OpenAI GPT-5 (2025), Anthropic Claude Opus 4.5, Google Gemini Ultra, and Meta Llama 3. Based on the Transformer architecture, it is trained by predicting the next token on large-scale text data.
The key LLM trends of 2025-2026 are Reasoning Models and Coding Agents. Like Claude Code and the reasoning mode of GPT-5, they have moved beyond simple generation to become capable of complex reasoning and tool use (Tool Calling). As MCP (Model Context Protocol) has become established as a standard, building agent systems has become commonplace.
Current key model specs: GPT-5.2 has a 400K-token context, Claude Opus 4.5 scores 61.4% on OSWorld for computer use, and Gemini Ultra leads in multimodal creation. In open source, DeepSeek-V3.2 has achieved ChatGPT-level reasoning at low cost.
Practical use: API-based services (OpenAI, Anthropic) charge per token ($0.01-0.15/1K), while on-premises deployment runs locally with LM Studio or Ollama. For cost optimization, routing (small models for simple queries, large models for complex queries) is a standard pattern.
import anthropic
from openai import OpenAI
# 1. Anthropic Claude API 사용
client = anthropic.Anthropic(api_key="your-api-key")
message = client.messages.create(
model="claude-opus-4-5-20251101", # 최신 Opus 4.5
max_tokens=4096,
messages=[
{"role": "user", "content": "Python으로 퀵소트 구현해줘"}
]
)
print(message.content[0].text)
# 2. OpenAI GPT API (Tool Calling 포함)
openai = OpenAI(api_key="your-api-key")
tools = [{
"type": "function",
"function": {
"name": "get_weather",
"description": "현재 날씨 조회",
"parameters": {
"type": "object",
"properties": {"location": {"type": "string"}},
"required": ["location"]
}
}
}]
response = openai.chat.completions.create(
model="gpt-5", # GPT-5
messages=[{"role": "user", "content": "서울 날씨 어때?"}],
tools=tools,
tool_choice="auto"
)
# Tool call이 필요하면 function 실행 후 결과 전달
# 3. 로컬 LLM (Ollama)
import ollama
response = ollama.chat(
model='llama3.2', # 로컬 모델
messages=[{'role': 'user', 'content': '안녕하세요'}]
)
# 비용: $0 (GPU 전기세만)
This is a comparison of major LLM model prices as of January 2025.
| Model | Input ($/1M tokens) | Output ($/1M tokens) | Context |
|---|---|---|---|
| GPT-4o | $2.50 ~ $5.00 | $10.00 ~ $15.00 | 128K |
| GPT-4o Mini | $0.15 | $0.60 | 128K |
| Claude 3.5 Sonnet | $3.00 | $15.00 | 200K |
| Claude 3.5 Haiku | $0.80 | $4.00 | 200K |
| Gemini 2.0 Pro | $1.25 ~ $2.50 | $10.00 ~ $15.00 | 1M |
| Gemini 2.0 Flash | $0.60 | $3.50 | 1M |
Cost optimization tip: Routing simple tasks to Mini/Haiku/Flash models can reduce costs by more than 90%.
"Our current GPT-4 API monthly cost is 5 million KRW, but if we route simple FAQs to Claude Haiku and send only complex analysis to Opus, we can save 70%. We'll allow one week for the routing logic and one week for testing."
"We used Claude Sonnet 4 in the RAG pipeline. We set chunking to 512 tokens with an overlap of 50, and used a Reranker to extract the Top 5 relevant documents and put them into the context. Hallucination dropped from 30% to 5%."
"Inference-time scaling is the key trend of 2026. Spending more compute at inference time is more effective than increasing model size. Claude's extended thinking and GPT-5's reasoning mode are examples, and it is cost-effective for tasks where accuracy is important."
Take a mock interview on this topic → WIA SOOM AI Interview · Start for free
Using Opus/GPT-5 for every task makes costs explode. Haiku/Mini is enough for simple tasks. Routing is essential.
Temperature 0 is deterministic but lacks creativity. Recommended: 0 for code generation, 0.7-1.0 for creative writing, and 0.3-0.5 for general conversation.
Define the role with a system prompt, provide few-shot examples, and specify the output format (JSON, etc.). For important decisions, review with an ensemble of multiple models.