Run AI models on Raspberry Pi
Sending every camera frame or prompt to the cloud costs money, adds latency and moves data offsite. Raspberry Pi's AI accelerators run models on the device itself, from object detection on a camera to a local language model.
-
Vision on any Pi
The AI Camera runs a neural network on its own sensor, so any Raspberry Pi with a camera connector can detect and classify objects.
-
Faster vision on Raspberry Pi 5
AI HAT+ adds a Hailo accelerator over PCIe for real-time detection, pose estimation and segmentation on several streams.
-
Generative AI, offline
AI HAT+ 2 adds 8GB of its own memory for local language and vision-language models, as well as vision workloads.
Build an edge AI setup
Pick what you want the AI to do, then how to run it. Each route lists every part it needs, which parts are alternatives, and what it runs.
What should the AI do?
Ways to run it
-
Raspberry Pi AI HAT+ 2
Generative AI
A Hailo-10H accelerator with its own 8GB of memory, on Raspberry Pi 5's PCIe port. Hailo's chips are built first for convolutional neural networks (CNNs), the kind used for vision: detection, segmentation and pose. The Hailo-10H adds support for small language and vision-language models, but they run more slowly and in smaller sizes than vision networks do. Treat it as a vision accelerator that can also run a small LLM, not as a chatbot appliance.
- Best for:
- Vision work plus small, offline language models, such as short answers, describing what a camera sees, or speech-to-text.
- Not for:
- Large or fast chat models, models larger than about 6 billion parameters, or boards other than Raspberry Pi 5.
Selected -
Raspberry Pi 5 on its own
On the CPU
No accelerator: the model runs on Raspberry Pi 5's quad-core Arm CPU. Small language models, speech-to-text and lightweight vision models all run this way, just slowly. It's the cheapest way to try local AI before you buy an accelerator, and it leaves the PCIe port free for an NVMe SSD.
- Best for:
- Trying local AI, small models, and jobs where a slow answer is fine.
- Not for:
- Real-time video, several cameras, or anything that needs a quick reply.
Everything for Generative AI
Can't be used with this route
Raspberry Pi 5 has one PCIe port and the AI HAT+ 2 uses it, so an M.2 HAT+ or SSD Kit can't be connected as well. This route boots from microSD; models are stored there too.
Raspberry Pi SSD Kit, Raspberry Pi M.2 HAT+, and Raspberry Pi 5 M.2 HAT+ (Compact).
Buy one to evaluate
Everything in the list above that we can supply now, in one Add.
Quote the rollout
We'll quote 1 unit of this setup. Edit anything before you send it.
What Generative AI runs
- Operating system
- 64-bit Raspberry Pi OS (Trixie)
- Install
sudo apt install hailo-h10-all. Check it with hailortcli fw-control identify.- Software
- The hailo-ollama server gives a REST API; Open WebUI (in Docker) is an optional chat front end. The camera software stack uses it for vision too.
- Example models
- Models come from Hailo's Gen-AI Model Zoo; Raspberry Pi's guide uses qwen2:1.5b as its example.
- Your own model
- Raspberry Pi's documentation covers only the models in Hailo's Gen-AI Model Zoo, not compiling your own.
- Limits
- LLMs and VLMs up to about 6 billion parameters. hailo-h10-all can't be installed alongside the AI HAT+'s hailo-all.
Sources, checked 22 October 2026
- Raspberry Pi AI HAT+ 2 — Hailo-10H, 40 TOPS (INT4), 8GB onboard; in production until at least January 2036
- AI HAT+ documentation — PCIe connection, rpicam-apps and Picamera2, models up to ~6 billion parameters on AI HAT+ 2
- AI software documentation — hailo-all and hailo-h10-all, demo models, hailo-ollama
What we don't know yet
- We haven't measured frame rates or tokens per second. TOPS are the manufacturer's peak ratings, not results for your model, and Hailo's ratings are for vision-style networks.
- We haven't checked a case with an AI HAT+ or AI HAT+ 2 fitted, or a case for the AI Camera. Ask before you order enclosures.
- Raspberry Pi's pages don't list which cables come with the AI Camera; we list the cable each host needs.
Pick by workload
| Product | Accelerator | Performance | Works with | Best for | Price |
|---|---|---|---|---|---|
| AI HAT+ 2 | Hailo-10H, 8GB onboard RAM | Up to 40 TOPS (INT4) | Raspberry Pi 5 | LLMs, vision-language models, speech-to-text, plus vision | $322.00 |
| AI HAT+ (26 TOPS) | Hailo-8 | 26 TOPS | Raspberry Pi 5 | Multi-stream or high-frame-rate vision | $197.02 |
| AI HAT+ (13 TOPS) | Hailo-8L | 13 TOPS | Raspberry Pi 5 | Object detection, pose estimation, segmentation | $148.03 |
| AI Kit | Hailo-8L module on an M.2 HAT+ | 13 TOPS | Raspberry Pi 5 | The original bundle; same chip as AI HAT+ 13 TOPS | $120.82 |
| AI Camera | Sony IMX500 (on-sensor) | Runs the model on the sensor | Any Raspberry Pi with a camera connector | Low-power detection and classification, Pi Zero builds | $124.43 |
Lifecycle & availability
The AI HAT+ range, AI Camera and Raspberry Pi 5 are current Raspberry Pi products with published minimum production dates. Check our lifecycle page before you design one in.
Product lifecycle & availabilityDatasheets & compliance
- Raspberry Pi Image Signal Processor Specification · Datasheet
- Raspberry Pi 5 PCIe Connector Standard · Datasheet
- RP1 Peripherals Specification · Datasheet
- Raspberry Pi 5 Product Brief · Product Brief
- Raspberry Pi AI HAT+ 2 Product Brief · Product Brief
- Raspberry Pi AI Camera Product Brief · Product Brief
- Raspberry Pi AI Camera FCC Declaration of Conformity · Compliance
- Raspberry Pi AI Camera Electrical Safety CB Certificate · Approval
- Standard Camera Cable (200 mm) Reference Drawing · Mechanical Drawings
- Raspberry Pi AI documentation Setup guides for AI HAT+, AI Kit and AI Camera
- Raspberry Pi Product Information Portal Compliance certificates, declarations and product briefs for every Raspberry Pi product
- Raspberry Pi datasheets Official datasheets, mechanical drawings and design files
Deploying AI at scale?
Tell us how many units you need and when. We'll quote boards, accelerators and cameras together, and reserve stock for your rollout.
- Quantity pricing on request
- Matched sets of board, accelerator and camera
- Purchase orders for approved accounts
Guides and resources
- Raspberry Pi AI HAT+ 2 Arrives in Australia: Generative AI on Raspberry Pi 5 News
- Building a Facial Recognition System with Raspberry Pi News
- AI and Machine Learning Tools with Raspberry Pi 4 AI and Machine Learning
- Resources for Developing AI and Machine Learning Applications on Raspberry Pi 4 AI and Machine Learning
Questions
Which one should I buy?
For camera-based detection on a budget or on a Pi Zero, the AI Camera. For real-time vision on Raspberry Pi 5, AI HAT+. To run language models locally, AI HAT+ 2.
Can I run my own models?
Yes. Hailo's Dataflow Compiler converts trained models for the AI HAT+ range, and Sony's tools package models for the AI Camera.
Do the AI HAT+ boards work with Raspberry Pi 4?
No. They connect over the PCIe connector that only Raspberry Pi 5 has. The AI Camera works with any Raspberry Pi that has a camera connector.
Browse the range
Raspberry Pi High Quality Camera
SKU: RP-SC1220 | Brand: Raspberry Pi
The Raspberry Pi High Quality Camera is a 12.3-megapixel camera with interchangeable lenses. It uses Sony's back-illuminated IMX477 sensor, which has a 7.9mm diagonal and larger pixels than the Camera Module range, so...
Delivered by Wed 9 Dec
Raspberry Pi HQ Camera - M12 mount
SKU: RP-SC0870 | Brand: Raspberry Pi
This is the M12-mount version of the Raspberry Pi High Quality Camera: the same 12.3-megapixel Sony IMX477 sensor, with a mount for small M12 (S-mount) lenses instead of the larger C and CS lenses. M12 lenses are comp...
Delivered by Wed 9 Dec