Crypto glossary

AI oracle

Definition

An AI oracle is a service that runs an AI model off-chain and delivers its output to a smart contract, so on-chain logic can use its scores or answers.

Smart contracts cannot call a language model directly; they can only read data written to the chain. An AI oracle takes a request from a contract, such as classifying a piece of text, judging whether an event happened or scoring a transaction for fraud, runs the model off-chain and posts the result back, often with some proof or attestation of how it was computed.

Use cases include resolving prediction market questions written in natural language, moderating content in social apps, pricing assets that lack liquid markets, running insurance claims checks and letting on-chain agents make decisions. Traditional oracle networks and newer AI-focused projects are both building services in this area.

The core problem is trust. Model outputs vary between runs and versions, can be manipulated through crafted inputs and may simply be wrong, and a contract that releases funds based on them inherits those weaknesses. Approaches to reduce the risk include querying several models and taking a consensus, verifiable inference through secure hardware or zero-knowledge proofs, and dispute windows where humans can challenge a result.

Example

A prediction market asks whether a company announced a product before a deadline; an AI oracle reads the published sources, returns yes with a hardware attestation, and the market settles after a 24-hour dispute window.

Related terms