What is AI inference? Explained in plain words

AI

  • 10 days ago
  • 5 min read
  • 5 Views
separatorseparator
What is AI inference? Explained in plain words

AI inference is the moment a trained model uses what it learned to respond to something new. Every reply from a chatbot, every suggested next word on a phone keyboard and every photo an app labels for you is an inference.

Training builds a model. Inference is using it. This guide explains what happens during inference, how it differs from training, why it costs money every time, and how to watch one run on a public network.

Training vs inference

Training is how a model learns. It reads a large amount of data and adjusts billions of internal numbers, called weights, until its outputs become useful. Training a large model takes weeks or months on thousands of GPUs, and it happens once for each version of the model.

Inference starts when training ends. The weights are fixed, and the model applies them to an input it has never seen, such as your question. It happens every time anyone uses the model, millions of times a day for a popular one.

A simple way to remember it: training is studying for an exam, and inference is answering the questions on the day.

What happens during inference, step by step

For a language model, such as the one behind a chatbot, one inference looks like this:

  1. The input is split into tokens. Your question is broken into small pieces of text, often parts of words, and each piece becomes a number.

  2. The model reads the whole context. The tokens pass through the model's layers, which weigh how each piece relates to the others.

  3. It predicts the next token. The model scores every possible next piece of text and picks one.

  4. It repeats. The new token is added to the context and the model predicts the one after it, until the answer is complete or hits a length limit.

  5. The tokens become text. The numbers are turned back into words and sent to you.

That loop is why long answers take longer: the model runs once for every token it writes.

Examples of AI inference

  • A chatbot writing a reply to your question.

  • A coding assistant suggesting the next line.

  • A phone transcribing a voice message.

  • An email service sorting a message into spam.

  • A photo app finding every picture with a dog in it.

Is ChatGPT inference? Each reply it gives is. The model was trained before you opened the app, and your conversation runs inference on it.

Where inference runs

  • On your device. Small models run on phones and laptops, and open models can run on a home computer with a good graphics card. Our guide to self-hosted LLMs [link: article 2] covers what that takes.

  • In a provider's data center. Most chatbots and AI APIs run inference on their own servers and bill you for it.

  • On a network of independent GPUs. Some networks, such as Lightchain AI [link: article 1], send each request to one of many operators who run the models on their own hardware.

What inference costs, and why

Every inference uses compute and memory. The bigger the model and the longer the input and output, the more work the hardware does, which is why AI services charge for use instead of a one-time fee.

Most providers bill by tokens, counting the text the model reads and the text it writes. That makes each request's cost depend on its length, and the total is only known afterward.

Lightchain AI charges by the answer instead. Each model has one fee per answer, set on the blockchain. On the network's published list of October 21, 2026 (subject to change), chat models run from 0.02 LCAI for smaller models such as Llama 3 8B and Gemma to 0.20 LCAI for gpt-oss 120B. Within a model's limits, a long question costs the same as a short one, so the cost is known before the request is sent.

Watch one inference on Lightchain

Lightchain Chat, in public beta, lets you run an inference and then see the record it leaves:

  1. Open chat.lightchain.ai and sign in with a self-custody wallet that holds native LCAI.

  2. Pick a model, such as Llama 3 8B, and ask a question.

  3. The network draws a worker at random among those able to serve that model, and the worker runs the inference on its own GPU.

  4. Look up the job on the explorer at mainnet.lightscan.app to see which worker answered.

Inference and trust

When inference runs on someone else's hardware, a fair question is how you know it happened as described. On Lightchain, every answer is recorded as a job on chain with the worker named, and a checking service re-runs a sample of jobs and records answers that do not hold up against the worker.

That record proves an answer came from a real, paid job served by a named worker. It is not a mathematical proof that a specific model produced a specific sentence, and Lightchain's documentation says so.

Frequently asked questions

What is inference in an LLM?

It is the process of a large language model generating text from your input, one token at a time, using weights that were fixed during training.

What is the difference between AI training and AI inference?

Training teaches the model and happens once per version. Inference uses the trained model and happens every time someone sends it an input.

What is an AI inference platform?

A service that runs trained models for you and returns their outputs, usually through an API, so you do not have to run the hardware yourself.

Why does AI inference cost money every time?

Each answer needs GPU time and memory. The cost grows with the size of the model and, on most services, with the length of the text.

Try it

Ask one question in Lightchain Chat, then find the job on the explorer. It is the quickest way to see an inference and the record it leaves.

This article is for informational purposes only and is not financial advice.

Tags:

Share this article:

separatorseparator

Blogs

Reading Related Stories

Uncover the stories that related to the post!

LLM API pricing explained: per token vs per answerNovember 27, 2026
  • Small BrandKleanthi
  • AI

LLM API pricing explained: per token vs per answer

How LLM API pricing works, why per-token bills are hard to predict, and how a fixed fee per answer compares, with a worked example and the limits to know.

AI inference vs training: the difference, and where the cost goesNovember 25, 2026
  • Small BrandKleanthi
  • AI

AI inference vs training: the difference, and where the cost goes

raining builds an AI model once. Inference runs it every time someone uses it. How they differ in hardware, cost and who pays.

Private AI chat: what Lightchain keeps private, and what it does notNovember 23, 2026

Private AI chat: what Lightchain keeps private, and what it does not

What makes an AI chat private, who can read your questions in Lightchain Chat, what the blockchain shows, and a checklist for judging any private AI chat.