NewAPIVerve Academy: free courses and certifications anyone can verify.Explore the Academy →

Game Character Generator API

GET

Create complete RPG characters with rolled stats and personalities.

Generate complete RPG-style characters with race, class, background, stats, and personality.

Try it — live request, no key required

Request
GETapi.apiverve.com/v1/gamecharacter
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "name": "Nimara Goldenbough",
    "race": {
      "name": "Elf",
      "traits": [
        "Graceful",
        "Keen Senses",
        "Long-lived"
      ]
    },
    "class": {
      "name": "Mage",
      "description": "Wielder of arcane magic",
      "primaryStat": "intelligence",
      "hitDie": "d6"
    },
    "background": "Criminal",
    "personality": "Ambitious and driven",
    "motivation": "Protect the innocent",
    "stats": {
      "strength": {
        "value": 13,
        "modifier": 1
      },
      "dexterity": {
        "value": 12,
        "modifier": 1
      },
      "constitution": {
        "value": 9,
        "modifier": -1
      },
      "intelligence": {
        "value": 11,
        "modifier": 0
      },
      "wisdom": {
        "value": 4,
        "modifier": -3
      },
      "charisma": {
        "value": 8,
        "modifier": -1
      }
    },
    "hp": 5,
    "totalStatPoints": 57,
    "highestStat": "strength",
    "lowestStat": "wisdom"
  }
}

About the Game Character Generator API

A random RPG character generator for tabletop campaigns, game prototypes and roleplay prompts. Each call returns a ready-to-play fantasy character: a name that fits the race, the race and its traits, a class with its role and primary ability, six ability scores with modifiers rolled the D&D way on 3d6, starting hit points, a personality trait and a motivation.

You can fix the race, the class or both, choosing from ten races such as Elf, Dwarf, Tiefling and Dragonborn and twelve classes from Warrior and Mage to Warlock and Necromancer. Leave them out and both are rolled at random, which is handy for filling a tavern with NPCs, handing a one-shot player a pre-made hero or seeding characters in a game you are building.

The Free plan returns the name, race, class, personality, motivation, ability scores and hit points. Paid plans add the class hit die, a background such as Criminal, and a stat summary with the total of all six scores and which ability is highest and lowest, which helps when you sort, compare or balance a party.

How it works

Ability scores are rolled the classic way: three six-sided dice for each of strength, dexterity, constitution, intelligence, wisdom and charisma, giving 3 to 18 before bonuses. The race's stat bonuses are then added to the matching scores, and a race whose bonus applies to any ability gets it on one ability picked at random. Because bonuses come after the roll, a value can go above 18. Each modifier is floor((value - 10) / 2), so 10-11 gives 0, 12-13 gives +1 and 8-9 gives -1.

hp is level-1 hit points: the maximum of the class hit die plus the constitution modifier, never below 1. A Mage with a d6 hit die and a constitution modifier of -1 has 5. class.hitDie reports the die as text, such as d6.

race and class are matched case-insensitively against the built-in lists. An unknown value returns a 400 error listing the allowed values instead of quietly substituting a random choice. When a parameter is omitted it is drawn at random with equal weight. The name joins a first and last name from lists kept per race. background, personality and motivation are each drawn independently from fixed lists, so they are not matched to the race or class.

totalStatPoints is the sum of the six final values. highestStat and lowestStat name the ability with the extreme value, checked in order from strength to charisma, so a tie goes to the earlier ability. On the Free plan class.hitDie, background, totalStatPoints, highestStat and lowestStat are null; every other field is returned on all plans.

What people use it for

Tabletop Gaming
Quickly generate NPCs or backup characters
Game Development
Create diverse character rosters for games
Creative Writing
Generate character concepts for stories
Teaching
Demonstrate character creation mechanics

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use Game Character Generator

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Game Character Generator API.

Read the docs →
How many character generations does the Free plan cover?
The Free plan includes 200 character generations per month at 1 credit per call. If you upgrade to the Starter plan, generations work out to about $0.00015 per call, or $0.15 per 1,000 calls, covering up to 200,000 characters each billing cycle.
Are character backgrounds and hit dice included on the Free plan?
No. Character background, class hit die, total stat points, and highest and lowest stat summaries are premium fields. Any paid plan, starting with the Starter plan, unlocks these fields on every call.
Which character races can I generate?
The generator supports ten fantasy races: Human, Elf, Dwarf, Halfling, Orc, Gnome, Tiefling, Dragonborn, Half-Elf, and Goblin. Each character receives race-specific traits and attribute bonuses alongside their generated name.
Which RPG classes does the generator support?
The API supports twelve classes: Warrior, Mage, Rogue, Cleric, Ranger, Paladin, Barbarian, Bard, Druid, Monk, Warlock, and Necromancer. Each character includes the class description, primary ability score, and calculated hit points.
What ability scores and roleplay traits come with each character?
Every response provides six core ability scores rolled on a base 3d6 scale (3 to 18) with derived modifiers: Strength, Dexterity, Constitution, Intelligence, Wisdom, and Charisma. Characters also include distinct personality traits and motivations for storytelling.

Ready to build with Game Character Generator? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs