NPCs that think.
Not scripts that execute.
Connect your game to 20,000+ AI models through one API. ANT routes every NPC decision to the right model — fast models for real-time combat, reasoning models for tactical planning, free models for ambient behavior. Works with any engine. OpenAI-compatible.
Game AI is stuck in the 90s
Every NPC in every game follows a behavior tree or state machine. They patrol the same route, say the same lines, and make the same predictable decisions. Players learn the patterns in minutes. The illusion breaks.
Language models change this. An NPC connected to an LLM doesn't follow a script — it receives the situation as data and returns a decision based on reasoning. It can surprise you. It can adapt. It can be creative.
The problem was cost. GPT-5 at $10/1M tokens for 200 NPCs making decisions every 5 seconds = bankruptcy. ANT solves this: 95% of NPC decisions are routine and go to near-free models. Only the 5% that matter get frontier intelligence. One API, automatic model selection.
What you can build
Tactical NPCs
Squad leaders that evaluate terrain, ammo, casualties, and enemy positions before deciding to push, flank, hold, or retreat. Not scripted — reasoned.
Dynamic Dialogue
Every NPC has a personality, memory, and opinions. They remember what you said, react to your reputation, and never repeat canned lines.
Adaptive Enemies
Opponents that learn your patterns. Flank left twice, they start covering left. Rush every time, they set up ambushes. Play cautiously, they get aggressive.
Living Economies
Shopkeepers that adjust prices based on supply and demand. Factions that compete for resources. Trade routes that shift based on world events.
Procedural Storylines
Quests that generate based on the world state, your actions, and NPC relationships. Not random fetch quests — stories that make sense and evolve.
Voice & Personality
NPCs with consistent personality across every interaction. A grumpy blacksmith stays grumpy. A nervous merchant gets more nervous as danger approaches.
Works with every engine
ANT is a REST API. If your engine can make an HTTP call, it can use AI.
HTTP calls from EnScript
C++ or Blueprint HTTP plugin
C# UnityWebRequest or OpenAI SDK
GDScript HTTPRequest node
Any language with HTTP/REST
ScriptHook, BepInEx, Forge, etc.
// Send NPC situation, get decision back
POST https://antbase.ai/v1/chat/completions
{
"model": "ant:fast",
"messages": [
{
"role": "system",
"content": "You are an NPC squad leader. Respond with JSON tactical decisions."
},
{
"role": "user",
"content": "Squad: 6 soldiers, 1 wounded. Ammo: low. Enemy: 4 infantry, 150m south, in cover. Terrain: forest north, open field south. Orders: secure village. What do you do?"
}
],
"response_format": {"type": "json_object"}
}What it actually costs
ANT routes 95% of NPC decisions to cheap/free models. Only complex decisions hit premium.
| Scenario | Requests/hr | Cost/hr | Note |
|---|---|---|---|
| RPG town (20 NPCs, dialogue) | ~500/hr | $1/hr | Most dialogue is cheap Tier A |
| Tactical shooter (200 NPCs, combat AI) | ~144K/hr | $69/hr | 95% routine decisions via ant:free/fast |
| Strategy game (50 AI factions) | ~3K/hr | $5/hr | Strategic planning via ant:reasoning |
| Horror game (1 stalker AI) | ~60/hr | $0.50/hr | Complex planning for single antagonist |
| Open world (1000 NPCs, ambient) | ~12K/hr | $3/hr | 99% ambient behavior via ant:free |
| Multiplayer lobby (NPC host/referee) | ~200/hr | $0.50/hr | Moderate complexity decisions |
Pick a speed, not a model
Ambient NPC behavior, patrol decisions, basic dialogue. Zero cost.
Best for: Background NPCs, filler dialogue
Real-time combat decisions, quick dialogue responses. Sub-300ms.
Best for: Combat AI, shopkeepers, guards
Let ANT decide — simple inputs get fast models, complex ones escalate.
Best for: General-purpose NPC intelligence
Tactical planning, strategy, complex problem-solving. Chain-of-thought.
Best for: Boss AI, commanders, puzzle NPCs
Dynamic storytelling, unique dialogue, procedural quests.
Best for: Quest generators, narrator NPCs
Maximum intelligence. For game-critical decisions that must be brilliant.
Best for: Final boss, campaign AI director
Make your NPCs think
One API. 20,000+ models. Automatic routing. $5 free credits. Works with any game engine that can make an HTTP call.