Multimodal AI Engineering: Vision to Production
Ship Python products that read images, documents, charts and video, ground and generate visuals, and retrieve across mixed media. Learn to choose models, control cost per image, test accuracy honestly and handle faces, rights and provenance safely.
Levels 1 and 2 are free to read, no account needed. Levels 3 and 4 are free with a free account, and so are 20 answers from the AI tutor.

Expert · 48 levels · 4 free · Created Nov 2026 · Professionally curated by levelupwith.com
What's inside
- Level 1: How a Vision-Language Model Sees an ImageFree
Learn the path from pixels to tokens: a vision encoder splits the image into patches, a projector maps them into the language model's embedding space, and the model then reads them alongside your text.- Explain the roles of the vision encoder, projector and language model in a modern VLM
- Send one image plus a question to a hosted and an open model from Python and compare the answers
- Find the image token count each request reports and connect it to patch size
- Level 2: Resolution, Tiling and the Image Token BudgetFree
Learn how providers resize, tile or dynamically size images, and how that choice fixes both the fine detail a model can see and what you pay for each image.- Work out the image tokens and cost per image for a given resolution under at least two providers' documented rules
- Run the same detail-heavy question at several resolutions or detail settings and chart accuracy against tokens
- Pick a resolution policy for a workload and back it with measured numbers
- Level 3: Image Preprocessing That Changes AnswersFree account
Learn which preprocessing steps change model output (EXIF orientation, resizing, cropping, compression, colour mode and format) and how to build a repeatable preprocessing step.- Write a Pillow preprocessing function that fixes orientation, sets the long edge and controls compression
- Show with a small test how a wrong rotation or heavy JPEG compression lowers extraction accuracy
- Decide when to crop to a region of interest instead of sending the full frame
- Level 4: A Vendor-Neutral Vision Client in PythonFree account
Learn how the major APIs differ in multimodal message formats (base64 or URL, file uploads, multi-image ordering) and wrap them behind one small interface you can test.- Build an adapter that sends images and text to two or more providers and to a local OpenAI-compatible server through one function
- Log tokens, latency and model version for every call so you can compare runs later
- Handle size limits, unsupported formats and rate-limit errors cleanly
- Level 5: Choosing Frontier vs Open Vision Models
Learn to compare current closed frontier models with open-weight families such as Qwen3-VL and Gemma 4 on accuracy, licence, data control, serving cost and benchmark trust.- Read a vision benchmark or leaderboard critically, noting saturation, self-reported scores and single-run results
- Serve an open VLM locally with an OpenAI-compatible server and point your adapter at it
- Write a model-selection memo for a use case based on a small head-to-head you ran yourself
- Level 6: Classification and Captioning You Can Trust
Learn to turn free-form VLM output into dependable labels and captions with closed label sets, constrained outputs, abstain options and agreement checks.- Build an image classifier on a fixed label set using structured output and an explicit 'unknown' class
- Measure accuracy and a confusion matrix on a labelled sample of 50 or more images
- Write caption prompts with controlled length, focus and style for alt text or a search index
- Level 7: Visual Question Answering and Multi-Image Reasoning
Learn to ask questions about one or several images: label and reference each image, compare them, and write prompts that get grounded answers instead of guesses.- Write VQA prompts that ask for the visual evidence behind each answer
- Compare two or more images in one request with labelled references and check that the model keeps them apart
- Test whether image order and question wording change the answers
- Level 8: Counting, Spatial Reasoning and Fine Detail
Learn where current VLMs still fail on counting, left/right and relative position, small text and small objects, and the workarounds that help: zoomed crops, tiling and splitting the task.- Build a small probe set that exposes counting and spatial errors in a chosen model
- Use crop-and-zoom or tile-then-merge to raise accuracy on small-object questions and measure the gain
- Spot tasks where you should hand counting to a dedicated detector instead (covered later in the course)
- Level 9: Hallucination, Leading Questions and Visual Injection
Learn the failure modes that hurt production systems: invented objects, agreeing with false premises, and instructions hidden in image text that hijack the model.- Test a model with false-premise questions and measure how often it accepts them
- Show a text-in-image prompt injection and add defences: separating roles, limiting tool use and checking outputs
- Add abstention and evidence requirements that cut hallucinated answers
- Level 10: OCR Fundamentals: Classic Engines vs VLMs
Learn how classic OCR engines (detect, then recognise) compare with VLM transcription, and how to score both with character and word error rates.- Run Tesseract or PaddleOCR and a VLM on the same scans and compare their output
- Compute CER and WER against ground truth with a Python library
- Explain why VLM OCR can produce fluent but wrong text, and when classic OCR's word boxes and confidences are worth keeping
- Level 11: Layout Analysis and Reading Order
Learn how document parsers find regions (titles, paragraphs, tables, figures, headers and footers) and rebuild reading order on multi-column pages and across several pages.- Run a layout-aware parser that converts PDF pages to Markdown or JSON with labelled regions
- Find and fix reading-order errors on multi-column and mixed-content pages
- Choose between using a PDF's embedded text layer and rasterising pages for OCR
- Level 12: Dedicated Document Parsers vs General VLMs
Learn to compare pipeline parsers, small specialised document VLMs and general frontier models on accuracy, speed and cost, and read benchmarks like OmniDocBench honestly.- Benchmark a dedicated parser (for example Docling, MinerU or PaddleOCR-VL) against a general VLM on your own pages
- Explain why top OmniDocBench scores are bunched up and why many reported results are self-reported
- Design a hybrid route that sends easy pages to a cheap parser and hard pages to a stronger model
- Level 13: Table Extraction
Learn to pull tables out as HTML, CSV or DataFrames, deal with merged cells, borderless tables and tables split across pages, and score the structure as well as the text.- Extract tables to pandas DataFrames from both a parser and a VLM
- Score table structure with a tree-edit-distance metric such as TEDS and check cell-level accuracy
- Join a table that continues across pages and confirm the header mapping
- Level 14: Forms, Receipts and Key-Value Extraction
Learn to extract fields, checkboxes, signatures and line items from forms, invoices and receipts, where layout varies a lot between issuers.- Extract key-value pairs and line items from varied invoices or receipts
- Detect checkbox and radio-button states and test how reliable that is
- Match synonymous field labels across different templates to one canonical field
- Level 15: Charts, Plots and Figures
Learn to turn bar, line and pie charts back into data, and see why VLM chart reading is often off on exact values, axes and legends.- Extract a chart's underlying data table with a VLM and compare it with the true values
- Use axis calibration and gridline checks to catch wrong scales and swapped series
- Decide when a chart's source data or a figure caption should beat reading the pixels
- Level 16: Handwriting, Phone Photos and Degraded Scans
Learn to handle real-world input (handwriting, skewed phone photos, faded faxes, stamps and mixed languages) and how much each one hurts accuracy.- Build a deskew, perspective-correction and contrast step for phone photos of documents
- Measure CER separately for printed and handwritten fields and report the gap
- Run a quality gate that rejects images too poor to process and asks for a new capture
- Level 17: Schema-Driven Structured Extraction
Learn to define extraction targets as Pydantic or JSON Schema models, use providers' structured-output modes, and write field descriptions that guide the model.- Define a Pydantic schema with types, enums, optional fields and descriptions for a document type
- Get schema-conformant JSON from a hosted and an open model through structured or constrained decoding
- Handle missing or unreadable fields with explicit nulls instead of guesses
- Level 18: Validation, Business Rules and Evidence
Learn to check extracted data beyond the schema: cross-field rules like totals and dates, normalisation, and asking for source locations so every value can be traced.- Write validators for arithmetic, date, format and cross-field rules on extracted records
- Normalise currencies, dates and units into canonical forms
- Require each field to cite a page and region and check that the text is really there
- Level 19: Recovering From Bad Output
Learn production recovery patterns: retry with the validation errors fed back, re-crop and re-ask, escalate to a stronger model, and send low-confidence documents to human review.- Build a retry loop that feeds validator errors back to the model, with capped attempts and cost
- Build a cheap-to-strong model cascade and measure its effect on accuracy and cost
- Set confidence signals and thresholds that send documents to a human review queue
- Level 20: Visual Grounding: Points and Boxes From VLMs
Learn to ask VLMs to locate things as points or bounding boxes, handle each model family's coordinate convention, and check localisation with IoU.- Get bounding boxes and points from a VLM and convert normalised or pixel coordinates back to the original image
- Draw predictions over images and score them against ground-truth boxes with IoU
- Spot coordinate errors caused by resizing, padding or tiling earlier in the pipeline
- Level 21: Open-Vocabulary Detection Without Training
Learn how open-vocabulary detectors such as Grounding DINO and OWLv2 find objects from a text prompt, and how to tune their thresholds so the boxes are reliable enough to use downstream.- Run an open-vocabulary detector from Python on your own images with text prompts and draw the returned boxes
- Choose box and text confidence thresholds by sweeping them against a small hand-labelled set and measuring precision and recall
- Explain why prompt wording, synonyms and small objects change detection results, and design prompts that avoid those failures
- Level 22: Promptable Segmentation with Segment Anything
Learn to turn points, boxes and short noun-phrase concept prompts into pixel masks with Meta's Segment Anything family, which now includes SAM 3, and to pick the right prompt type for the job.- Generate masks from click, box and text concept prompts and convert them to polygons, RLE or cropped cut-outs
- Chain a detector's boxes into a segmenter to get instance masks for every match, and measure mask quality with IoU
- Check which SAM version and checkpoint is current, and weigh its GPU memory and latency against what the task needs
- Level 23: When a Classic Detector Beats a VLM
Learn to decide between a fine-tuned closed-set detector, an open-vocabulary model and a vision-language model on latency, cost, counting accuracy and stability, and to build hybrids that use each where it is strongest.- Benchmark a YOLO-class detector against a VLM on the same counting and localisation task, comparing accuracy, latency and cost per 1,000 images
- Build a hybrid pipeline where a fast detector crops regions and a VLM answers attribute questions about each crop
- Write down decision rules for when fixed classes, high volume or edge deployment favour a classic detector
- Level 24: Video as Frames: Sampling Strategies and Cost
Learn how video reaches a multimodal model as sampled frames and how frame rate, resolution and clip length set both what the model can see and what each minute costs.- Extract frames at a fixed fps, at a fixed count and around timestamps with ffmpeg or PyAV from Python
- Estimate image tokens and cost per minute of video for a given sampling rate and resolution before you send a request
- Show with a short test clip how undersampling misses brief events, and pick a sampling rate that matches the event length
- Level 25: Shot Detection and Smart Keyframe Selection
Learn to cut redundant frames by detecting scene changes and removing near-duplicates, so a fixed token budget covers more of what actually happens in the video.- Split a video into shots with PySceneDetect and choose representative keyframes for each shot
- Remove near-duplicate frames using perceptual hashes or embedding similarity, and measure how many tokens that saves
- Compare uniform sampling with shot-aware sampling on a set of questions and report the accuracy difference
- Level 26: Temporal Questions: When, Order and Change
Learn why questions about when something happened, in what order and what changed are hard for video models, and how timestamp overlays, interleaved time labels and structured outputs make the answers checkable.- Ask for event timestamps with a schema and score them against ground truth using a time tolerance window
- Add visible timestamps to frames or interleave text time labels, and measure whether ordering accuracy improves
- List the temporal failure modes still seen in current models, such as invented events, swapped order and wrong durations, and test for each one
- Level 27: Long Video: Chunk, Index, Then Answer
Learn when to send a long video in one long-context call and when to split it into chunks, caption and index each chunk, and answer from the index, and what each choice costs in accuracy, latency and money.- Build a map-reduce pipeline that captions fixed-length chunks with timestamps and merges them into a searchable event log
- Compare a single long-context call with the chunked pipeline on needle-in-a-video questions for cost and accuracy
- Choose chunk length and overlap so that events crossing a chunk boundary are not lost
- Level 28: Shared Image-Text Embeddings for Search
Learn how contrastive models such as CLIP and SigLIP put images and text in one vector space, and use them for text-to-image search, image-to-image search and zero-shot labelling.- Embed an image collection and run text-to-image and image-to-image nearest-neighbour search with a vector index
- Measure recall@k on a labelled query set and compare two embedding models on it
- Spot where shared embeddings fail, including counting, negation, small text and fine-grained attributes, and decide when to rerank with a VLM
- Level 29: Visual Document Retrieval: Pages as Images
Learn how ColPali-style late-interaction models retrieve whole page images without an OCR step, and compare them with OCR-then-text pipelines and hybrids on cost, storage and accuracy.- Index PDF pages as images with a ColPali-family model and run MaxSim multi-vector search over them
- Compare page-image retrieval with an OCR-plus-text-embedding baseline on chart-heavy and text-heavy pages
- Estimate the storage and latency cost of multi-vector indexes, and reduce it with pooling or by storing fewer vectors per page
- Level 30: Multimodal RAG Over Mixed Documents and Video
Learn to retrieve the right page images, figures or video segments and pass them to a VLM so it answers with citations to the page or timestamp it used.- Build an end-to-end pipeline that retrieves page images or video chunks and answers with page-number or timestamp citations
- Check citation faithfulness automatically by confirming the cited region actually contains the evidence
- Balance how many retrieved images you send against context cost and the accuracy you lose when answers get diluted
- Level 31: How Image Generators Work: Diffusion vs Autoregressive
Learn how diffusion models and natively multimodal autoregressive generators differ, and what that means for text rendering, following instructions, speed, editing and self-hosting.- Explain denoising steps, guidance scale and latent space in plain terms, and show their effect by changing them in code
- Compare an open diffusion model with a hosted autoregressive image model on the same prompts for prompt adherence and latency
- Pick a generation approach for a product requirement based on licence, cost per image and the control you need
- Level 32: Prompting Image Models and Reproducible Output
Learn to write structured image prompts that cover subject, composition, style, lighting and text to render, and to make output repeatable with seeds and fixed settings.- Write and A/B test prompt templates, scoring prompt adherence with a checklist marked by a VLM judge
- Use seeds, sampler settings and negative prompts where they are supported to get repeatable results
- Diagnose common failures, including garbled text, wrong counts, attribute bleed between objects and ignored constraints, and rewrite prompts to fix them
- Level 33: Spatial Control: Pose, Depth, Edges and Layout
Learn to control composition with conditioning inputs such as ControlNet-style edge, depth and pose maps and reference images, instead of relying on prompt wording alone.- Generate images conditioned on Canny edges, depth maps or pose skeletons extracted from a source image
- Adjust conditioning strength to trade faithfulness to the layout against creative freedom
- Measure layout adherence automatically by comparing control maps from the input and the output
- Level 34: Image Editing: Inpainting and Instruction Edits
Learn to change parts of an image with mask-based inpainting and natural-language edit instructions while keeping everything else untouched.- Inpaint a region using a mask generated by a segmentation model from earlier levels
- Run instruction-based edits through a hosted or open model and measure how much changed outside the edited area with a pixel or perceptual diff
- Choose between masked inpainting and instruction edits based on how precise, repeatable and reviewable the result must be
- Level 35: Keeping Characters, Products and Styles Consistent
Learn the techniques that keep a character, product or brand style the same across many generated images, and where each one stops working.- Use reference-image conditioning, such as IP-Adapter-style adapters or multi-image inputs, to keep a subject the same across scenes
- Score consistency automatically with face or image embedding similarity across a generated set
- Explain when a small style or subject adapter is worth it compared with reference prompting, and what the Post-Training course covers on training one
- Level 36: Image Generation in Production: Jobs and Auto-QA
Learn to run image generation as a dependable service with async jobs, retries, cost tracking and an automated quality gate that rejects bad outputs before users see them.- Build an async generation worker with idempotent job IDs, retries and per-image cost logging
- Add a VLM-based QA gate that checks generated images against the prompt's requirements and regenerates the ones that fail
- Measure the gate's false-reject and false-accept rates on a labelled sample
- Level 37: Video Generation: Real Capabilities and Limits
Get an honest view of current text-to-video and image-to-video models: clip length, motion and physics errors, consistency across shots, async APIs and how quickly vendors retire models.- Call a current video generation API asynchronously from Python, poll the job and store the result with its metadata
- Test generated clips for typical failures, including physics errors, identity drift, garbled text and audio sync, using a written rubric
- Plan for model churn by putting providers behind an interface and checking current vendor docs for limits, pricing and retirement dates
- Level 38: Building Multimodal Test Sets That Reflect Reality
Learn to build a test set of real images, documents and clips that covers the conditions your product actually meets, labelled consistently and kept separate from anything you tune on.- Sample production-like inputs and tag them by condition, such as resolution, lighting, skew, handwriting, language and document type
- Write a labelling guide, measure agreement between annotators and resolve disagreements before trusting the labels
- Split the data into tuning and held-out sets that prevent leakage from near-duplicate images or pages from the same source
- Level 39: Metrics for Extraction, Grounding and Retrieval
Learn to choose and compute the right metric for each multimodal task, from field-level exact match and character error rate to IoU, mAP and recall@k, and to calibrate VLM-as-judge scores.- Compute field-level accuracy with normalisation rules, plus CER and ANLS, for extraction outputs
- Score boxes and masks with IoU and mAP, and retrieval with recall@k and nDCG, using standard libraries
- Check a VLM judge against human labels and report how far you can trust it
- Level 40: Eval Harnesses, Error Analysis and Significance
Learn to run repeatable evals across model and prompt versions, group errors by slice and cause, and tell a real improvement from noise with confidence intervals.- Build an eval harness that caches model outputs, records model and prompt versions, and produces a per-slice report
- Do error analysis by grouping failures into causes and ranking them by how often they occur and what they cost
- Use bootstrap confidence intervals or paired tests to decide whether an accuracy gain between two systems is real
- Level 41: Personal Data and Faces in Images
Learn to spot the personal data hidden in images and video, such as faces, licence plates, ID documents, screens and EXIF location tags, and build a pipeline that finds and removes it before anything is stored, logged or sent to a third-party model.- Write a Python pre-processing step that strips EXIF and GPS metadata and blurs or redacts faces, plates and ID numbers, using a detector and OCR rather than a VLM, then check it against a small labelled set of images with personal data
- Judge whether a feature counts as biometric processing (face recognition or identifying people) or as ordinary image understanding, and write down the legal-basis, retention and consent questions it raises under GDPR-style rules
- Set up logging, caching and provider data-retention settings so that raw user images do not end up in traces, eval sets or vendor training data by accident
- Level 42: Provenance: C2PA Content Credentials and Watermarks
Learn how C2PA content credentials, invisible watermarks and AI-disclosure labels work together to show where generated or edited media came from, what each one survives, and what transparency rules such as the EU AI Act's Article 50 and its code of practice expect.- Read, verify and attach a C2PA manifest to an image in Python using the open-source C2PA tooling, then watch which edits (re-encoding, cropping, screenshots, social uploads) remove it
- Compare metadata-based credentials with pixel-level watermarks and detectors, and explain why current guidance asks for more than one layer of marking
- Design the disclosure flow for a generation feature: what gets marked, what the user is shown, and what is logged as evidence
- Level 43: Copyright and Rights in Multimodal Products
Map the copyright and rights questions around images that a product team has to handle: user uploads, scraped reference images, embedding indexes, generated outputs that look like protected works or real people, and model licence terms. Each area gets an honest note on where the law is still unsettled.- Audit a multimodal pipeline's inputs and outputs, mark each as owned, licensed, user-supplied or unknown, and note the risk each brings
- Read the licence of an open vision or image-generation model and spot restrictions on commercial use, output use or user count before you ship it
- Add product controls, such as reference-image consent, style and likeness prompt filters and takedown handling, that cut exposure where case law has not settled the question
- Level 44: Usage Policies and Multimodal Abuse Defences
Turn the providers' usage policies and the abuse cases specific to images (prompt injection hidden in images, non-consensual or sexualised imagery, minors, deepfakes of real people, documents built to fool extraction) into input and output checks you can test.- Map a feature against the current usage policies of the vision and generation providers you depend on, and record the uses that are prohibited or need extra safeguards
- Build and red-team an image prompt-injection test set, with instructions hidden in screenshots, documents and tiny or low-contrast text, and measure how often your pipeline obeys them
- Put moderation on both sides of the model (input images and generated output), with clear refusal and escalation paths and a measured false-positive rate
- Level 45: Capstone 1: Build the Baseline Extraction Pipeline
Pick a real image or document type, define its extraction schema, collect and hand-label a held-out test set, and ship a working baseline pipeline with validation, cost tracking and the privacy safeguards from earlier levels.- Define a typed extraction schema (for example Pydantic) with field-level validation rules for a real document or image type such as receipts, invoices, forms, shelf photos or charts
- Collect and label at least 50 real images, covering edge cases like bad lighting, rotation, handwriting and multi-page input, and freeze them as a versioned test set that is never used for tuning
- Run an end-to-end baseline (VLM, document parser or a hybrid) that outputs validated JSON and logs latency, tokens and cost for every image
- Level 46: Capstone 2: Evaluate the Baseline and Find Failures
Score the baseline with field-level metrics and confidence intervals, then do a structured error analysis that sorts failures by root cause, so the next round of improvements targets the biggest real losses.- Write a scorer that measures per-field exact match, normalised and fuzzy match, schema-valid rate and document-level accuracy, and reports a bootstrap confidence interval for each
- Sort every failure into a cause bucket, such as resolution or tiling, OCR misread, layout or table structure, reasoning, schema or validation, or a hallucinated field, and rank the buckets by impact
- Write a prioritised improvement plan with a target metric, an expected gain and a cost or latency budget for each change
- Level 47: Capstone 3: Raise Accuracy and Prove the Gain
Make targeted improvements, such as better resolution or cropping, a hybrid parser plus VLM, grounding-based checks, validation-driven retries or model routing, and show that the gain is real with paired statistical tests while tracking cost and latency.- Make at least two changes aimed at the top failure buckets and run each one as a separate experiment on the frozen test set
- Prove or disprove each gain with a paired comparison on the same images (paired bootstrap or McNemar's test), and report effect size, confidence interval, cost per image and p95 latency
- Write a short results report covering what worked, what did not, the remaining failure modes and the accuracy, cost and latency trade-off of the version you would ship
- Level 48: Final Challenge: Multimodal Engineering Review Exam
A comprehensive final challenge that brings the whole course together. You make and defend design decisions across model choice, image tokens and cost, document AI, grounding, video, multimodal retrieval, generation, evaluation and safety, using realistic scenarios.- Given a product brief, pick and justify an architecture (frontier or open VLM, dedicated parser, classic detector, embeddings or generator) with an estimated cost per image or per minute of video
- Diagnose failures across the whole course, such as counting errors, a lost table structure, a missed temporal event, a retrieval miss, inconsistent generated output or an injected instruction, and name the fix for each
- Write an evaluation and safety plan for a multimodal feature that covers the test set, metrics, significance testing, personal-data handling, provenance marking, rights and provider policy compliance
Access
Levels 1 and 2 are free to read, no account needed. Levels 3 and 4 are free with a free account, and so are 20 answers from the AI tutor. Every level, the podcast edition and the AI tutor come with All Access at £4.99/month or any Creator plan — see pricing.
More like this
- Browser & Desktop Agents: Computer Use in Production
Build, measure and harden agents that drive real browsers and desktops.
Course · AI Engineering · AI Engineering · Expert · 48 levels · 4 free · Professionally curated by levelupwith.com
- LLMOps in Production: Observe, Release, Recover, Govern
Keep LLM apps and agents healthy in production: trace them with OpenTelemetry, version prompts and models, ship through canaries and online evals, watch…
Course · AI Engineering · AI Engineering · Expert · 40 levels · 4 free · Professionally curated by levelupwith.com
- Retrieval Engineering for LLM Apps: RAG That Works
Turn a RAG demo that gives wrong answers into a measured production retrieval system.
Course · AI Engineering · AI Engineering · Expert · 50 levels · 4 free · Professionally curated by levelupwith.com
- Serving LLMs in Production: Engines, Scale and Cost
Run open models behind an OpenAI-compatible API, load-test them for TTFT, inter-token latency and goodput, size GPUs, autoscale and route traffic, then cut…
Course · AI Engineering · AI Engineering · Expert · 48 levels · 4 free · Professionally curated by levelupwith.com
- Post-Training LLMs: Reward Models, RL and Scale
Train reward models, run PPO, GRPO and multi-turn agent RL on several GPUs, distil and merge models, and keep a tuned model safe.
Course · AI Engineering · AI Engineering · Expert · 60 levels · 4 free · Professionally curated by levelupwith.com
- Agentic Commerce: Safe AI Checkout and Payments
Build checkouts that let AI agents find, buy and pay safely.
Under the Radar · AI Engineering · Expert · 40 levels · 4 free · Professionally curated by levelupwith.com