Multimodal
Multimodal
AI that processes multiple forms of data such as text, images, and audio. GPT-4V and Gemini are representative examples.
Multimodal
AI that processes multiple forms of data such as text, images, and audio. GPT-4V and Gemini are representative examples.
Multimodal AI is artificial intelligence that can simultaneously understand and process multiple forms of data, such as text, images, audio, and video. Unlike conventional models that process only a single modality, a multimodal model can look at an image and answer in text to the question "What do you see in this image?"
The advancement of multimodal AI accelerated with the success of the Transformer architecture. In 2021, CLIP (Contrastive Language-Image Pre-training) presented a method for mapping images and text into the same embedding space, and in 2023, GPT-4V and Gemini enabled real-time vision-language interaction. In 2024, Gemini 1.5 and Claude 3 perform multimodal reasoning over long contexts of more than 1 million tokens.
The core principle of multimodal models is to convert each modality into a common representation space. Images are tokenized by a Vision Transformer (ViT) and audio by an encoder such as Whisper, and then fed into the language model. Cross-modal attention learns the relationships between different modalities, which makes precise references such as "Explain this part of the image" possible.
The use of multimodal AI is growing explosively in 2024-2025. In healthcare, X-rays and patient records are analyzed together; in autonomous driving, cameras and LiDAR are integrated; and in creative fields, videos are generated from images and prompts. GPT-4o integrated real-time voice, vision, and text to achieve true multimodal conversation.
| Model | Image Understanding | Document Analysis | Cost (Image) | Context |
|---|---|---|---|---|
| GPT-4o | Top Tier | Top Tier | ~$0.01/image | 128K |
| Claude 3.5 Sonnet | Top Tier | Top Tier | ~$0.008/image | 200K |
| Gemini 1.5 Pro | High Tier | High Tier | ~$0.002/image | 2M |
| LLaVA 1.6 | Upper-Mid Tier | Mid Tier | Open Source | 32K |
| Qwen2-VL 72B | High Tier | High Tier | Open Source | 128K |
* As of January 2025; cost per image is based on standard resolution
# 멀티모달 AI 활용 예제
import anthropic
import openai
import base64
# 이미지를 base64로 인코딩
def encode_image(image_path):
with open(image_path, "rb") as f:
return base64.standard_b64encode(f.read()).decode("utf-8")
# Claude Vision 예제
client = anthropic.Anthropic()
response = client.messages.create(
model="claude-3-5-sonnet-20241022",
max_tokens=1024,
messages=[
{
"role": "user",
"content": [
{
"type": "image",
"source": {
"type": "base64",
"media_type": "image/png",
"data": encode_image("chart.png")
}
},
{
"type": "text",
"text": "이 차트를 분석하고 주요 인사이트를 알려주세요."
}
]
}
]
)
print(response.content[0].text)
# OpenAI GPT-4o Vision 예제
client = openai.OpenAI()
response = client.chat.completions.create(
model="gpt-4o",
messages=[
{
"role": "user",
"content": [
{"type": "text", "text": "이 이미지에서 텍스트를 추출해주세요."},
{
"type": "image_url",
"image_url": {
"url": f"data:image/png;base64,{encode_image('document.png')}",
"detail": "high" # 고해상도 분석
}
}
]
}
],
max_tokens=500
)
print(response.choices[0].message.content)
"If we introduce multimodal into the automatic document classification system, we can process scanned documents too. Claude 3.5 Sonnet recognizes tables, stamps, and handwriting even without OCR. If we remove the existing OCR pipeline, costs go down too."
"A multimodal model works by connecting a Vision Encoder and a Language Model. Like CLIP, it learns image-text alignment through contrastive learning, or like LLaVA, it maps vision tokens into the language model's space with a projection layer. It learns the interaction between modalities through cross-attention."
"GPT-4o supports real-time voice-vision integration, but currently voice input is limited in the API. If you want the full multimodal experience, the Gemini Live API might be better. However, GPT-4o has the edge in Korean voice quality."
Take a mock interview on this topic → WIA SOOM AI Interview · Start for free
A multimodal model splits images into tiles. A 4K image can increase costs by more than 10 times. Resize it to suit the purpose.
For simple text extraction, Tesseract OCR is fast and inexpensive. Use multimodal only when you need complex layouts or contextual understanding.
Optimize resolution through image preprocessing, separate simple OCR from multimodal by use case, and monitor cost per image. Using the detail="low" option can reduce costs.