Home โ€บ Blog โ€บ AI NPCs explained
๐Ÿค– AI guide ยท 2026

AI NPCs: how LLM characters really work

Characters you can talk to in your own words are finally shipping in real games. Here is how they are built, what they cost to run, and where they make a game better rather than just stranger.

The short answer

An AI NPC is a game character whose dialogue or decisions come from a language model at runtime instead of a fixed script. In 2026 they work best in narrow roles with clear goals: a companion who comments on what you do, a shopkeeper you can haggle with, a suspect you interrogate. They need guardrails, a fallback for when the model is slow or wrong, and a running-cost estimate before launch. Done well, they make a world feel alive. Bolted on, they make it feel like a chatbot wearing a costume.

What has actually shipped

For years AI NPCs were tech demos. In 2025 they started appearing in commercial games. Krafton's life sim inZOI added an experimental "Smart Zoi" setting in which characters' thoughts and actions are driven by a small language model running on the player's own GPU, through NVIDIA's ACE technology; NVIDIA describes it as a 0.5-billion-parameter model. Characters adjust their daily plans based on what happened to them, and players can watch their inner thoughts. NetEase added an on-device ACE teammate to NARAKA: BLADEPOINT MOBILE PC VERSION that fights alongside you, finds items and suggests skills. Other big publishers have shown prototypes, but most AI characters in 2026 are still optional features or experiments rather than the core of a game.

The lesson from what shipped: the successful versions give the model a small, well-defined job inside systems the game already controls.

The five parts of an AI NPC

  1. Input. Typed text, or speech converted to text. Voice feels magical but adds a speech-recognition step, latency and accents to test.
  2. Character brain. A language model given a persona: who the character is, what they know, what they want and how they speak. This instruction block is the most important piece of writing in the feature.
  3. Memory and world state. What the character remembers about the player and what is true in the game right now: quest progress, inventory, time of day. Without it, characters contradict the game.
  4. Guardrails. Rules and filters that keep the character in role, on topic and within your age rating, plus checks on anything the model asks the game to do.
  5. Output and actions. Text or synthesised voice, animation and lip sync, and a short, fixed list of game actions the model may request, such as give item, change mood or open shop. The game validates every request; the model never changes game state directly.

Cloud model or on-device model?

Cloud model (API)On-device small model
Response qualityHighest; strong reasoning and writingGood for short, focused dialogue
LatencyUsually one to a few seconds per reply; streaming helpsCan be faster on a good GPU; slow on weak hardware
Running costPay per token, grows with playersNo per-use fee after shipping
Offline playNoYes
Build size and hardwareNo impactAdds model weights and memory requirements
Best forNarrative-heavy PC and mobile games with online playPC games with capable GPUs, offline play, many NPCs

Many teams prototype with a cloud model, because it is fast to try ideas, then decide per character whether the quality justifies the cost or whether a smaller model will do.

How to estimate running costs

Cloud models charge per token, roughly three-quarters of a word. Each player message sends the persona, the relevant memory and world state, and the recent conversation, then receives a short reply. The estimate is simple arithmetic:

monthly cost โ‰ˆ players ร— conversations per player ร— turns per conversation ร— (input tokens ร— input price + output tokens ร— output price)

Run it with your own design numbers and your provider's current price list. Three habits keep the bill small: keep the persona tight, summarise long conversations instead of resending them, and use the provider's prompt caching so the unchanging persona is billed at a discount. A cheaper, faster model is often better for in-game chatter anyway, because players notice delay more than eloquence.

Design rules that separate good AI NPCs from gimmicks

  • Give the character a job. "Convince the player not to enter the mine" is a design. "Talk about anything" is a chatbot.
  • Let the game stay in charge. Quests, rewards and outcomes come from your systems. The model chooses words and requests actions from a short list.
  • Hide the wait. Thinking animations, short pre-written barks and streamed text make a two-second response feel natural.
  • Fail gracefully. If the model times out or a filter blocks a reply, fall back to a scripted line in character. Never show an error.
  • Test like an adversary. Players will try to break the character within minutes. Red-team prompts for jailbreaks, spoilers and off-rating content before launch.

Store rules, ratings and voice

Steam requires developers to disclose AI use in its content survey and to describe the guardrails on live-generated content, and it shows the disclosure on the store page. Age ratings apply to everything a character can say, so your filters must match your rating. If characters speak, check the licence of any synthetic voice, and remember that voice actors' union agreements now include consent and disclosure rules for AI voice replicas.

What it takes to build one

A focused prototype, one character in one scene of an existing Unity or Unreal project, is usually a few weeks of work and the cheapest way to learn whether the idea is fun. A production feature adds memory, guardrails, voice, localisation, cost controls and analytics. We build both on our AI and LLM game development service, using cloud models, including the latest Claude models, or on-device models depending on the game, and quote a fixed price after a short brief.

Sources: NVIDIA: ACE characters in inZOI and NARAKA: BLADEPOINT ยท VGC on Steam AI disclosure. Checked October 12, 2026.

Related: AI game development ยท Is AI replacing game developers? ยท Unity development

FAQ

Quick answers โ“

What is an AI NPC?

An AI NPC is a non-player character whose dialogue or decisions are generated at runtime by a language model, rather than coming from a fixed script or dialogue tree. The game still controls quests, rewards and state; the model chooses what to say and requests actions from a limited list.

Have any real games shipped with LLM-powered NPCs?

Yes. In 2025 Krafton's inZOI added an experimental Smart Zoi feature driven by an on-device small language model through NVIDIA ACE, and NetEase added an on-device ACE AI teammate to NARAKA: BLADEPOINT MOBILE PC VERSION. Most uses in 2026 are still optional features or experiments.

How much does it cost to run AI NPCs?

With a cloud model, cost is roughly players times conversations times turns times the tokens sent and received, multiplied by the provider's per-token prices. Tight personas, conversation summaries and prompt caching keep it low. On-device models have no per-use fee but add build size and hardware requirements.

Are AI NPCs better on-device or in the cloud?

Cloud models give the best writing and reasoning but add latency and a per-use bill. On-device small models work offline with no running cost but need capable hardware and handle shorter, more focused dialogue. Many games prototype in the cloud and decide per character.

Do I need to disclose AI NPCs on Steam?

Yes. Steam's content survey asks developers to disclose AI use, including content generated live while the game runs, and to describe the guardrails that stop it producing illegal content. The disclosure appears on the store page.

Related guides

AI game generators: what they can and cannot build → What AI changes in a game art budget →

Want characters players can talk to? ๐Ÿค–

Send us your game idea and you'll get a prototype plan, a running-cost estimate and a fixed quote within 48 hours.