Skip to main content
🔒 Preview mode. The first 15 Foundations lessons are free; this one is Pro. Start a 7-day trial to unlock the editor, AI hints and the rest of the curriculum. Card required, cancel any time in Dashboard.
Start 7-day trial →
⚡
← Courses
›
AI Engineering with Python
›
Module 6 · Frontier AI Engineering
›
Vision inputs: image + text in one call
quiz
86 / 105
🇺🇸
EN
▼
↗
Share
⋯
More
+100 XP
📋
Task
📖
Theory
🤖
AI Help
Task
📝 **Question:** Which is the right vision input format? 📋 Pick the right answer. 💡 **Hint:** Re-read the theory above if unsure.
🎯 Quiz
Question
📝 **Question:** Which is the right vision input format? 📋 Pick the right answer. 💡 **Hint:** Re-read the theory above if unsure.
A
messages: [{role:'user', content:'See the image at https://example.com/cat.png and describe it for me'}] — raw URL inline in string
B
content: [{type:'image', source:{type:'base64', media_type:'image/png', data:b64}}, {type:'text', text:'…'}]
C
Upload the image to /v1/files first, get back a cdn_url, then pass {type:'url', url:cdn_url} alongside the text block
D
Render the image into 80x40 ASCII art and send it as a plain text content block, prefixed with markdown code fences
Submit answer
💬 Discussion
Be the first to ask a question or share a tip.
Sign in
to join the discussion. Reading is free.
Loading discussion…