C.W.K.
Stream
Lesson 07 of 11 · published

Gemini Family: Multimodal-First from Google

~10 min · gemini, google, multimodal

Level 0Token
0 XP0/94 lessons0/10 achievements
0/120 XP to next level120 XP to go0% complete

Google DeepMind's Gemini models are built around the assumption that text, images, audio, and video should share a single Transformer rather than being bolted together post hoc. This shows up in tokenization, training data, and the API surface.

ModelContextOutput maxInput/Output ($/1M)Notable
Gemini 1.5 Pro1M (then 2M experimental)8KVariableSet the modern long-context bar
Gemini 2.0 Flash1M8K$0.10 / $0.40Fast, multimodal, very cheap
Gemini 2.0 Pro Experimental2M2M context push
Gemini 2.5 Flash1M8K$0.30 / $2.50~110 tokens/s output, thinking mode
Gemini 2.5 Pro1M8K$1.25 / $10.00Flagship, thinking mode, frontier benchmarks

Benchmarks (Gemini 2.5 Pro): AIME 2024 92%, AIME 2025 83%, GPQA 83%, SWE-bench 63%. The Pro series supports a "thinking" mode that allocates extra inference compute to reasoning, comparable to OpenAI's o-series and DeepSeek-R1.

Multimodal: native text + image + audio + video input. Output remains text (with text + image in some endpoints). The single-stack design means Gemini can directly attend across modalities — an image patch and a text token live in the same residual stream.

Code

Calling Gemini with vision·python
import google.generativeai as genai

genai.configure(api_key="...")
model = genai.GenerativeModel("gemini-2.5-pro")

with open("photo.jpg", "rb") as f:
    image_bytes = f.read()

response = model.generate_content([
    {"mime_type": "image/jpeg", "data": image_bytes},
    "Describe what's in this image and what the people seem to be doing.",
])
print(response.text)
# Multimodal in a single API call — image and text share the residual stream.

External links

Exercise

Pick a long document (>100K tokens — e.g., a textbook PDF). Send it to Gemini 2.5 Pro with the question 'What is the main argument of section 7?' Compare with a chunked retrieval approach using a smaller model. Where does long context win? Where does retrieval win?

Progress

Progress is local-only — sign in to sync across devices.
Spotted a bug or have feedback on this page?Report an Issue

Comments 0

🔔 Reply notifications (sign in)
Sign inPlease sign in to comment.

No comments yet — be the first.