Complete reference for Slloy's 9 subscription and credit pack plans, credit expiration buckets, dual-line margin guardrails, frontend CNY anchor, and video true-up rules.
All pricing, credit unit valuations, and cost-accounting rules live in a single authoritative module: server/src/pricing.ts. Routes and admin reports never compute prices or margins inline; they call pricing.ts functions and are enforced at startup by server/src/marginGuard.ts.
Signup Bonus: 100 credits upon account creation (reason = 'signup'), permitting 10 generations on z-image-turbo (10 credits) or 3 generations on seedream / seedream-5-5 (30 credits).
Daily Check-in: 10 credits per calendar day in Asia/Shanghai timezone (reason = 'checkin').
Bucket Consumption Order (credit_buckets): Every grant is stored in credit_buckets with an optional expires_at. Deductions (chargeCredit) consume buckets in earliest-expiring-first (FIFO by expires_at ASC NULLS LAST) order so expiring subscription credits (60 days) are spent before annual/pack credits (365 days) or non-expiring bonus credits.
Two distinct CNY-per-credit constants exist in server/src/pricing.ts for different accounting purposes:
Constant
Value
Purpose & Rules
CREDIT_CNY
¥0.011
Historical Cost Anchor (¥0.22 / 20 credits). Used only for nominal cost reference (chargedCny baseline in true-up comparisons). Never use CREDIT_CNY as user revenue or to calculate margin, as doing so undervalues revenue by 5.2x.
FX_USD_CNY
7.15
Backend Settlement Exchange Rate (USD -> CNY). Used to convert Stripe USD order cents into CNY revenue (paidCny = (amount_cents / 100) * 7.15) and to compute per-credit revenue across plans.
BASE_PLAN
"pro_monthly"
Catalog Pricing Benchmark Plan ($39.90 for 5,000 credits). Selected as the pricing anchor instead of pack_enterprise (¥0.0453) so standard retail prices are not artificially inflated by deep wholesale discounts.
BASE_UNIT_CNY
¥0.057057 (≈ ¥0.0571)
Real Revenue Per Credit on pro_monthly: (39.90 * 7.15) / 5000. All catalog margin audits and credit price formulas use BASE_UNIT_CNY.
Because upstream channel costs can fluctuate or rely on token estimation, assertNoThinMargin() multiplies estimated cost by a safety factor before computing worstMargin:
1.05: Bill-calibrated Ark video models (doubao-seedance-2-0-mini-260615, doubao-seedance-2-0-fast-260128) where token-per-second constants already include a +3% buffer.
1.20 (MARGIN_SAFETY_DEFAULT): Unbilled/estimated token-priced models (doubao-seedance-2-0-260128, doubao-seedance-2-5-260628, doubao-seedance-2-5-flash-261115) and any unknown model ID.
On Chinese locale pages (zh-CN), pricing cards display an approximate RMB anchor (e.g., ≈ ¥104) next to the USD price via frontend/site/components/plan-prices.ts:
Static Exchange Rate (fx):
export const fx = { asOf: "2026-11-17", cny: 7.0 } as const;
Design Rules:
Never fetch live exchange rates on the rendering path (avoids external latency and hydration mismatches).
Always prefix with ≈ ¥ and state that settlement is in USD via Stripe; format thousands using a deterministic regex (grouped()) rather than toLocaleString() to prevent Node SSR vs. browser ICU hydration mismatches.
365-Day CI Freshness Guard (tests/server/plan-prices.test.ts): A unit test asserts Date.now() - Date.parse(fx.asOf) < 365 days and verifies that monthlyPrice, annualPrice, packPrice, monthlyCredits, and annualCredits in plan-prices.ts match server/src/pricing.ts (PLANS) and config.subscriptions.introOffCents.
For token-billed video models (Volcengine Ark Seedance), actual token consumption (usage_tokens) is only known when the video finishes rendering.
Trigger Condition:
Video settlement runs on the foreground browser polling path (allowTrueUp = true in GET /api/video/status/:id; background videoSweeper.ts passes allowTrueUp = false so users are never surprise-charged after closing the tab).
The runtime setting app_settings.videoTrueUp is "1".
The upstream response includes measured realTokens > 0.
Real cost exceeds 1.2x (TRUEUP_THRESHOLD = 1.2) of the nominal cost anchor (chargedCny = chargedCredits * CREDIT_CNY).
Note that fairCredits divides by BASE_UNIT_CNY (¥0.0571), notCREDIT_CNY (¥0.011). Because catalog prices already include a 50% margin buffer, true-up only fires on extreme token anomalies and never double-charges normal generations.