# Game Character Generator API

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

**Endpoint:** `GET https://api.apiverve.com/v1/gamecharacter`  
**Category:** Games  
**Cost:** 1 credit per call  
**Canonical page:** https://apiverve.com/marketplace/gamecharacter

## Overview

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.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/gamecharacter?race=elf&class=mage" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `race` | string | No | Character race: Human, Elf, Dwarf, Halfling, Orc, Gnome, Tiefling, Dragonborn, Half-Elf, Goblin. length 0-40 |
| `class` | string | No | Character class: Warrior, Mage, Rogue, Cleric, Ranger, Paladin, Barbarian, Bard, Druid, Monk, Warlock, Necromancer. length 0-40 |

## Response fields

- `name` — string · Generated character name combining race and fantasy elements
- `race` — object · The character's race, with its traits
  - `race.name` — string · Character race type selected from available options
  - `race.traits` — array · Array of racial traits and bonuses specific to race
- `class` — object · The character's class, with its description and primary attribute
  - `class.name` — string · Character class determining abilities and role
  - `class.description` — string · Character class role and primary purpose description
  - `class.primaryStat` — string · Primary ability score stat for class abilities
  - `class.hitDie` — string · Hit die size determining health points per level · (premium)
- `background` — string · Character background determining skills and expertise · (premium)
- `personality` — string · Character personality traits and behavioral characteristics
- `motivation` — string · Character motivation driving actions and goals
- `stats` — object · Rolled ability scores, each with its value and derived modifier
  - `stats.strength` — object · Strength score and modifier
    - `stats.strength.value` — number · Strength ability score (base 3-18 from 3d6)
    - `stats.strength.modifier` — number · Strength modifier derived from ability score
  - `stats.dexterity` — object · Dexterity score and modifier
    - `stats.dexterity.value` — number · Dexterity ability score (base 3-18 from 3d6)
    - `stats.dexterity.modifier` — number · Dexterity modifier derived from ability score
  - `stats.constitution` — object · Constitution score and modifier
    - `stats.constitution.value` — number · Constitution ability score (base 3-18 from 3d6)
    - `stats.constitution.modifier` — number · Constitution modifier derived from ability score
  - `stats.intelligence` — object · Intelligence score and modifier
    - `stats.intelligence.value` — number · Intelligence ability score (base 3-18 from 3d6)
    - `stats.intelligence.modifier` — number · Intelligence modifier derived from ability score
  - `stats.wisdom` — object · Wisdom score and modifier
    - `stats.wisdom.value` — number · Wisdom ability score (base 3-18 from 3d6)
    - `stats.wisdom.modifier` — number · Wisdom modifier derived from ability score
  - `stats.charisma` — object · Charisma score and modifier
    - `stats.charisma.value` — number · Charisma ability score (base 3-18 from 3d6)
    - `stats.charisma.modifier` — number · Charisma modifier derived from ability score
- `hp` — number · Hit points determined by class hit die and constitution
- `totalStatPoints` — number · Sum of all six ability scores combined · (premium)
- `highestStat` — string · Name of the ability score with highest value · (premium)
- `lowestStat` — string · Name of the ability score with lowest value · (premium)

## Sample response

```json
{
  "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"
  }
}
```

## Use cases

- **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

## SDKs

- **npm** — `npm install @apiverve/gamecharacter` (https://www.npmjs.com/package/@apiverve/gamecharacter)
- **NuGet** — `dotnet add package APIVerve.API.GameCharacterGenerator` (https://www.nuget.org/packages/APIVerve.API.GameCharacterGenerator)
- **Source** — https://github.com/apiverve/gamecharacter-api

## More

- Full reference: https://docs.apiverve.com/ref/gamecharacter
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
