Skip to content

Group Price ​

What it is ​

GroupPrice lets a user group apply a discount multiplier on a model (e.g. 0.8 = 20% off). It composes with Model Price:

deducted = consumption × ModelPrice × GroupPrice(group, model)

Where to find it ​

  • Admin → Group Prices: list, add, bulk edit
  • The logged-in user's group and the matched GroupPrice are shown in Personal Center as "Current discount".

Operator-relevant fields ​

FieldMeaningEffect
Groupdefault / vip / svipMatches the user's group field.
Modele.g. gpt-4oEmpty string = default multiplier for all models in this group.
Multiplier1.0 = no change; 0.8 = 20% off; 1.2 = 20% markupMultiplies the deduction.

Match order ​

  1. Exact (group, model) match
  2. Otherwise (group, "") — the group's default multiplier
  3. Otherwise 1.0

Common recipes ​

  • Flat VIP discount across all models

    GroupModelMultiplier
    vip(empty)0.8
  • VIP + extra discount on a premium model

    GroupModelMultiplier
    vip(empty)0.8
    vipgpt-4o0.6

Don't ​

  • Don't set every group to 1.0 (that is the default).
  • Don't set two rows with the same (group, model) — unique constraint violation.
  • GET /api/group_price/ — list
  • POST /api/group_price/ — add
  • PUT /api/group_price/ — update
  • DELETE /api/group_price/:id — delete