Skip to content

Character Models# Character Models

character

Classes:

  • AscensionMaterial –

    Represents a material required for character ascension.

  • Birthday –

    Represents a character's birthday.

  • Character –

    Represents a character summary.

  • CharacterBaseStat –

    Represents a base stat of a character and its growth type.

  • CharacterCV –

    Represents character voice actor information for a specific language.

  • CharacterDetail –

    Represents detailed information about a character.

  • CharacterInfo –

    Represents detailed character information like title, story, affiliation, and CVs.

  • CharacterPromote –

    Represents a character promotion (ascension) level.

  • CharacterPromoteMaterial –

    Represents a material required for character promotion (ascension).

  • CharacterPromoteStat –

    Represents a stat bonus gained from character promotion (ascension).

  • CharacterUpgrade –

    Represents the upgrade details (stats and promotions) of a character.

  • Constellation –

    Represents a character constellation.

  • Talent –

    Represents a character talent.

  • TalentExtraLevel –

    Represents an extra talent level granted by a constellation.

  • TalentUpgrade –

    Represents a specific level upgrade for a talent.

  • TalentUpgradeItem –

    Represents an item required for talent upgrades.

AscensionMaterial pydantic-model

Represents a material required for character ascension.

Attributes:

  • id (int) –

    The ID of the ascension material.

  • rarity (int) –

    The rarity rank of the material.

Fields:

id pydantic-field

id: int

rarity pydantic-field

rarity: int

Birthday pydantic-model

Represents a character's birthday.

Attributes:

  • month (int) –

    The month of the birthday.

  • day (int) –

    The day of the birthday.

Fields:

day pydantic-field

day: int

month pydantic-field

month: int

Character pydantic-model

Represents a character summary.

Attributes:

  • id (str) –

    The character's unique ID (as a string).

  • rarity (int) –

    The character's rarity rank (4 or 5).

  • name (str) –

    The character's name.

  • element (Element) –

    The character's element.

  • weapon_type (WeaponType) –

    The type of weapon the character uses.

  • icon (str) –

    The icon URL for the character.

  • birthday (Birthday) –

    The character's birthday.

  • release (datetime | None) –

    The date and time the character was released (optional).

  • route (str) –

    The route identifier for the character.

  • beta (bool) –

    Whether the character data is considered beta/unreleased.

  • special_stat (SpecialStat | str) –

    The specialized stat gained through ascension (e.g., Crit Rate, Pyro DMG Bonus).

  • region (str) –

    The region the character is associated with.

Fields:

Validators:

beta pydantic-field

beta: bool = False

birthday pydantic-field

birthday: Birthday

element pydantic-field

element: Element

gacha property

gacha: str

The URL for the character's gacha artwork (full body image).

icon pydantic-field

icon: str

id pydantic-field

id: str

name pydantic-field

name: str

rarity pydantic-field

rarity: int

region pydantic-field

region: str

release pydantic-field

release: datetime | None = None

route pydantic-field

route: str

special_stat pydantic-field

special_stat: SpecialStat | str

weapon_type pydantic-field

weapon_type: WeaponType

CharacterBaseStat pydantic-model

Represents a base stat of a character and its growth type.

Attributes:

  • prop_type (str) –

    The identifier string for the stat (e.g., "FIGHT_PROP_BASE_HP").

  • init_value (float) –

    The initial value of the stat at level 1.

  • growth_type (str) –

    The identifier string for the stat's growth curve (e.g., "GROW_CURVE_HP_S4").

Fields:

growth_type pydantic-field

growth_type: str

init_value pydantic-field

init_value: float

prop_type pydantic-field

prop_type: str

CharacterCV pydantic-model

Represents character voice actor information for a specific language.

Attributes:

  • lang (str) –

    The language code (e.g., "en", "jp").

  • va (str) –

    The name of the voice actor for this language.

Fields:

lang pydantic-field

lang: str

va pydantic-field

va: str

CharacterDetail pydantic-model

Represents detailed information about a character.

Attributes:

Fields:

Validators:

ascension_materials pydantic-field

ascension_materials: list[AscensionMaterial]

beta pydantic-field

beta: bool = False

birthday pydantic-field

birthday: Birthday

constellations pydantic-field

constellations: list[Constellation]

element pydantic-field

element: Element

gacha property

gacha: str

The URL for the character's gacha artwork (full body image).

icon pydantic-field

icon: str

id pydantic-field

id: str

info pydantic-field

name pydantic-field

name: str

rarity pydantic-field

rarity: int

region pydantic-field

region: str

release pydantic-field

release: datetime | None = None

route pydantic-field

route: str

special_stat pydantic-field

special_stat: SpecialStat | str

talents pydantic-field

talents: list[Talent]

upgrade pydantic-field

weapon_type pydantic-field

weapon_type: WeaponType

CharacterInfo pydantic-model

Represents detailed character information like title, story, affiliation, and CVs.

Attributes:

  • title (str) –

    The character's title (e.g., "Spark Knight").

  • detail (str) –

    The character's story or profile description.

  • constellation (str) –

    The name of the character's constellation.

  • native (str) –

    The character's affiliation or origin (e.g., "Mondstadt").

  • cv (list[CharacterCV]) –

    A list of voice actor information for different languages.

Fields:

Validators:

  • _convert_cv → cv

constellation pydantic-field

constellation: str

cv pydantic-field

detail pydantic-field

detail: str

native pydantic-field

native: str

title pydantic-field

title: str

CharacterPromote pydantic-model

Represents a character promotion (ascension) level.

Attributes:

Fields:

Validators:

add_stats pydantic-field

add_stats: list[CharacterPromoteStat] | None = None

coin_cost pydantic-field

coin_cost: int | None = None

cost_items pydantic-field

cost_items: list[CharacterPromoteMaterial] | None = None

promote_level pydantic-field

promote_level: int

required_player_level pydantic-field

required_player_level: int | None = None

unlock_max_level pydantic-field

unlock_max_level: int

CharacterPromoteMaterial pydantic-model

Represents a material required for character promotion (ascension).

Attributes:

  • id (int) –

    The ID of the required material.

  • count (int) –

    The quantity of the material required.

Fields:

count pydantic-field

count: int

id pydantic-field

id: int

CharacterPromoteStat pydantic-model

Represents a stat bonus gained from character promotion (ascension).

Attributes:

  • id (str) –

    The identifier string for the stat (e.g., "FIGHT_PROP_HP").

  • value (float) –

    The value of the stat bonus.

Fields:

id pydantic-field

id: str

value pydantic-field

value: float

CharacterUpgrade pydantic-model

Represents the upgrade details (stats and promotions) of a character.

Attributes:

Fields:

base_stats pydantic-field

base_stats: list[CharacterBaseStat]

promotes pydantic-field

Constellation pydantic-model

Represents a character constellation.

Attributes:

  • name (str) –

    The name of the constellation.

  • description (str) –

    The description of the constellation's effect.

  • extra_level (TalentExtraLevel | None) –

    Information about extra talent levels granted by this constellation (optional).

  • icon (str) –

    The icon URL for the constellation.

Fields:

Validators:

description pydantic-field

description: str

extra_level pydantic-field

extra_level: TalentExtraLevel | None

icon pydantic-field

icon: str

name pydantic-field

name: str

Talent pydantic-model

Represents a character talent.

Attributes:

  • type (TalentType) –

    The type of talent (Normal, Skill, Ultimate, Passive).

  • name (str) –

    The name of the talent.

  • description (str) –

    The base description of the talent.

  • icon (str) –

    The icon URL for the talent.

  • upgrades (list[TalentUpgrade] | None) –

    A list of upgrade details for each level (optional, usually for active talents).

  • cooldown (float | None) –

    The cooldown time in seconds (optional).

  • cost (int | None) –

    The energy cost (optional, usually for Ultimate).

Fields:

Validators:

cooldown pydantic-field

cooldown: float | None = None

cost pydantic-field

cost: int | None = None

description pydantic-field

description: str

icon pydantic-field

icon: str

name pydantic-field

name: str

type pydantic-field

type: TalentType

upgrades pydantic-field

upgrades: list[TalentUpgrade] | None = None

TalentExtraLevel pydantic-model

Represents an extra talent level granted by a constellation.

Attributes:

Fields:

extra_level pydantic-field

extra_level: int

talent_type pydantic-field

talent_type: ExtraLevelType

TalentUpgrade pydantic-model

Represents a specific level upgrade for a talent.

Attributes:

  • level (int) –

    The target level of the upgrade.

  • cost_items (list[TalentUpgradeItem] | None) –

    A list of items required for this upgrade level (optional).

  • mora_cost (int | None) –

    The Mora cost for this upgrade level (optional).

  • description (list[str]) –

    A list of strings describing the talent's effect at this level.

  • params (list[int | float]) –

    A list of numerical parameters associated with the talent's effect at this level.

Fields:

Validators:

cost_items pydantic-field

cost_items: list[TalentUpgradeItem] | None = None

description pydantic-field

description: list[str]

level pydantic-field

level: int

mora_cost pydantic-field

mora_cost: int | None = None

params pydantic-field

params: list[int | float]

TalentUpgradeItem pydantic-model

Represents an item required for talent upgrades.

Attributes:

  • id (int) –

    The ID of the required item.

  • amount (int) –

    The quantity of the item required.

Fields:

amount pydantic-field

amount: int

id pydantic-field

id: int