Game Development

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.

ant:fast → ant:reasoning~$0.001 - $0.02/decision
💬

Dynamic Dialogue

Every NPC has a personality, memory, and opinions. They remember what you said, react to your reputation, and never repeat canned lines.

ant:auto~$0.002/conversation turn
🧠

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.

ant:reasoning~$0.01/adaptation cycle
💰

Living Economies

Shopkeepers that adjust prices based on supply and demand. Factions that compete for resources. Trade routes that shift based on world events.

ant:auto~$0.005/economic tick
📜

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.

ant:best~$0.05/story beat
🎭

Voice & Personality

NPCs with consistent personality across every interaction. A grumpy blacksmith stays grumpy. A nervous merchant gets more nervous as danger approaches.

ant:fast~$0.001/line

Works with every engine

ANT is a REST API. If your engine can make an HTTP call, it can use AI.

Enfusion (Arma)

HTTP calls from EnScript

Unreal Engine

C++ or Blueprint HTTP plugin

Unity

C# UnityWebRequest or OpenAI SDK

Godot

GDScript HTTPRequest node

Custom Engine

Any language with HTTP/REST

Mod Frameworks

ScriptHook, BepInEx, Forge, etc.

Any language — just HTTP
// 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.

ScenarioRequests/hrCost/hrNote
RPG town (20 NPCs, dialogue)~500/hr$1/hrMost dialogue is cheap Tier A
Tactical shooter (200 NPCs, combat AI)~144K/hr$69/hr95% routine decisions via ant:free/fast
Strategy game (50 AI factions)~3K/hr$5/hrStrategic planning via ant:reasoning
Horror game (1 stalker AI)~60/hr$0.50/hrComplex planning for single antagonist
Open world (1000 NPCs, ambient)~12K/hr$3/hr99% ambient behavior via ant:free
Multiplayer lobby (NPC host/referee)~200/hr$0.50/hrModerate complexity decisions

Pick a speed, not a model

ant:free

Ambient NPC behavior, patrol decisions, basic dialogue. Zero cost.

Best for: Background NPCs, filler dialogue

ant:fast

Real-time combat decisions, quick dialogue responses. Sub-300ms.

Best for: Combat AI, shopkeepers, guards

ant:auto

Let ANT decide — simple inputs get fast models, complex ones escalate.

Best for: General-purpose NPC intelligence

ant:reasoning

Tactical planning, strategy, complex problem-solving. Chain-of-thought.

Best for: Boss AI, commanders, puzzle NPCs

ant:creative

Dynamic storytelling, unique dialogue, procedural quests.

Best for: Quest generators, narrator NPCs

ant:best

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.