Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
feat(forge): raise standard + high tier quality budgets on the self-host lane
nirholasdb9edd5c6e0d
diff --git a/api/_lib/forge-tiers.js b/api/_lib/forge-tiers.jsindex 5882cb14e..ad8088e88 100644--- a/api/_lib/forge-tiers.js+++ b/api/_lib/forge-tiers.js@@ -584,10 +584,22 @@ export function selfHostPrimary() {// GPU time runs against platform GCP credits (the L4 is already reserved at// minScale 1), so tiers price the USER for quality, not us for compute.// Draft stays at the worker's fast defaults for iteration speed.+//+// Owner directive 2026-07-16: burn the $100k GCP credit pool for realism, no+// ceiling concern on compute. Raised standard (the free default most users+// actually get) and high (the paid ceiling) again on top of the same-day+// swarm pass: standard's texture and geometry-retention budgets were still+// well under the worker's clamp ceiling (texture_size ≤ 4096 as of the+// same-day worker quality-clamp raise), and high shared standard's 2048+// texture cap despite costing 3.3x more — a paying customer's asset should+// visibly outresolve the free tier, not just out-sample it. Verified against+// the client's 300s poll budget (src/home-forge.js MAX_POLL_MS) and high's+// own etaMultiplier: 2.2 headroom — steps moved the least (biggest linear+// time cost), texture/simplify moved the most (near-free export-time cost).export const SELFHOST_TRELLIS_QUALITY = Object.freeze({draft: Object.freeze({ ss_steps: 12, slat_steps: 12, simplify: 0.95, texture_size: 1024 }),- standard: Object.freeze({ ss_steps: 25, slat_steps: 25, simplify: 0.9, texture_size: 2048 }),- high: Object.freeze({ ss_steps: 45, slat_steps: 45, simplify: 0.85, texture_size: 2048 }),+ standard: Object.freeze({ ss_steps: 35, slat_steps: 35, simplify: 0.82, texture_size: 3072 }),+ high: Object.freeze({ ss_steps: 50, slat_steps: 50, simplify: 0.65, texture_size: 4096 }),});export function selfhostQualityForTier(tierId) {diff --git a/tests/api/forge-trellis-selfhost.test.js b/tests/api/forge-trellis-selfhost.test.jsindex 97d13d436..5a3116a36 100644--- a/tests/api/forge-trellis-selfhost.test.js+++ b/tests/api/forge-trellis-selfhost.test.js@@ -209,11 +209,12 @@ describe('forge-tiers — self-host TRELLIS per-tier quality budgets', () => {expect(standard.simplify).toBeLessThan(draft.simplify);expect(high.simplify).toBeLessThan(standard.simplify);expect(high.texture_size).toBeGreaterThanOrEqual(standard.texture_size);- // Worker clamps: stay inside the envelope it accepts.+ // Worker clamps: stay inside the envelope it accepts (texture ceiling+ // raised 2048→4096 alongside the worker's own quality-clamp bump).for (const q of [draft, standard, high]) {expect(q.ss_steps).toBeLessThanOrEqual(50);expect(q.slat_steps).toBeLessThanOrEqual(50);- expect(q.texture_size).toBeLessThanOrEqual(2048);+ expect(q.texture_size).toBeLessThanOrEqual(4096);}});