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
<!doctype html>
<html lang="en">
<head>
<script>/* three.ws theme boot — no-flash; runtime in /theme-switcher.js */(function(){document.documentElement.classList.add('js');try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" />
<title data-i18n="pricing.meta_title">Pricing · three.ws</title>
<meta
name="description"
content="Free during open beta. Pro and Enterprise plans for teams shipping 3D AI agents at scale. No view caps, no chat-turn limits."
data-i18n-attr="content:pricing.meta_description"/>
<meta property="og:title" content="Pricing · three.ws" data-i18n-attr="content:pricing.meta_og_title"/>
<meta
property="og:description"
content="Free during open beta. Pro and Enterprise plans for teams shipping 3D AI agents at scale."
data-i18n-attr="content:pricing.meta_og_description"/>
<meta property="og:url" content="https://three.ws/pricing" />
<meta property="og:image" content="https://three.ws/api/page-og?s=main&t=Pricing&d=Plans+and+pricing+for+three.ws%3A+free+forge+quota%2C+premium+passes%2C+and+pay-per-use+API+surfaces.&p=%2Fpricing" />
<meta name="twitter:card" content="summary_large_image" />
<link rel="canonical" href="https://three.ws/pricing" />
<link rel="icon" href="/favicon.ico" sizes="any" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<link rel="manifest" href="/manifest.webmanifest" />
<link rel="stylesheet" href="/style.css" />
<link rel="stylesheet" href="/nav.css" />
<link rel="stylesheet" href="/pricing.css" />
<link rel="stylesheet" href="/footer.css" />
<link rel="stylesheet" href="/fonts/fonts.css" />
<link rel="stylesheet" href="/mobile.css" />
<script defer src="/footer-newsletter.js"></script>
<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1">
<meta property="og:type" content="website">
<meta property="og:site_name" content="three.ws">
<meta property="og:locale" content="en_US">
<meta property="og:image:alt" content="Pricing — three.ws">
<meta name="twitter:site" content="@trythreews">
<meta name="twitter:title" content="Pricing · three.ws" data-i18n-attr="content:pricing.meta_twitter_title">
<meta name="twitter:description" content="Plans and pricing for three.ws: free forge quota, premium passes, and pay-per-use API surfaces." data-i18n-attr="content:pricing.meta_twitter_description">
<meta name="twitter:image" content="https://three.ws/api/page-og?s=main&t=Pricing&d=Plans+and+pricing+for+three.ws%3A+free+forge+quota%2C+premium+passes%2C+and+pay-per-use+API+surfaces.&p=%2Fpricing">
<script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"Pricing","description":"Plans and pricing for three.ws: free forge quota, premium passes, and pay-per-use API surfaces.","url":"https://three.ws/pricing","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=main&t=Pricing&d=Plans+and+pricing+for+three.ws%3A+free+forge+quota%2C+premium+passes%2C+and+pay-per-use+API+surfaces.&p=%2Fpricing"}]}</script>
</head>
<body>
<a href="#main-content" class="h-skip-link" data-i18n="pricing.skip_to_main_content">Skip to main content</a>
<header><div id="nav-container"></div></header>
<script src="/nav.js"></script>
<main id="main-content">
<!-- ── HERO ────────────────────────────────────────────────────── -->
<section class="pricing-hero">
<div class="eyebrow"><span class="eyebrow-dot"></span><span data-i18n="pricing.pricing">Pricing</span></div>
<h1 data-i18n-html="pricing.free_to_start_scale_when_you_re">Free to start.<br /><em>Scale when you’re ready.</em></h1>
<p class="lead" data-i18n="pricing.every_feature_is_free_during_open_beta">
Every feature is free during open beta — unlimited agents, embeds, voice,
animation, and x402 payments. Pro and Enterprise unlock higher limits and
dedicated support when you need them.
</p>
<div class="billing-toggle" id="billing-toggle">
<span class="label-monthly is-active" data-period="monthly" data-i18n="pricing.monthly">Monthly</span>
<div
class="toggle-track"
role="switch"
aria-checked="false"
aria-label="Toggle annual billing"
tabindex="0"
>
<div class="toggle-thumb"></div>
</div>
<span class="label-annual" data-period="annual"
data-i18n-html="pricing.annual_save_17">Annual <span class="billing-save">Save 17%</span></span
>
</div>
</section>
<!-- ── TIERS ───────────────────────────────────────────────────── -->
<!--
Pro/Enterprise subscription prices ($49/mo, $480/yr, the 2.9% platform
fee) are FIXED MARKETING FIGURES for the optional team plans — they are
not per-call compute and so are not in the pricing catalog
(api/_lib/pricing/catalog.js). Per-generation / per-call prices ARE
catalog-driven and rendered live in the "Pay only for what you generate"
section below, so the two never drift. Update plan prices here; update
generation prices in the catalog.
-->
<div class="pricing-tiers" id="pricing-tiers">
<div class="pricing-tier-card" data-tier="free">
<div class="pricing-tier-name">Free</div>
<div class="pricing-amount">$0<sub>/forever</sub></div>
<div class="pricing-cycle-info">No credit card required</div>
<ul class="pricing-features">
<li data-i18n="pricing.1_agent_1_custom_avatar">1 agent + 1 custom avatar</li>
<li data-i18n="pricing.unlimited_embeds">Unlimited <agent-3d> embeds</li>
<li data-i18n="pricing.default_rig_200_animation_clips">Default rig + 200 animation clips</li>
<li data-i18n="pricing.voice_chat_lipsync">Voice chat & lipsync</li>
<li data-i18n="pricing.public_deploy_at_three_ws">Public deploy at three.ws/<name></li>
<li data-i18n="pricing.x402_paid_skills_0_platform_fee">x402 paid skills (0% platform fee)</li>
<li data-i18n="pricing.community_support">Community support</li>
</ul>
<a href="/create" class="pricing-cta" data-i18n="pricing.start_free">Start free</a>
</div>
<div class="pricing-tier-card featured" data-tier="pro">
<span class="pricing-popular" data-i18n="pricing.most_popular">Most popular</span>
<div class="pricing-tier-name">Pro</div>
<div class="pricing-amount" data-monthly="$49" data-annual="$40">
$49<sub>/mo</sub>
</div>
<div
class="pricing-cycle-info"
data-monthly="Billed monthly"
data-annual="$480/yr — billed annually"
>
Billed monthly
</div>
<ul class="pricing-features">
<li data-i18n="pricing.everything_in_free">Everything in Free</li>
<li data-i18n="pricing.unlimited_agents_custom_avatars">Unlimited agents & custom avatars</li>
<li data-i18n="pricing.custom_voice_cloning">Custom voice cloning</li>
<li data-i18n="pricing.animation_studio_memory_seeds">Animation studio + memory seeds</li>
<li data-i18n="pricing.custom_subdomain_embed">Custom subdomain embed</li>
<li data-i18n="pricing.priority_cdn_gpu_rendering">Priority CDN & GPU rendering</li>
<li data-i18n="pricing.advanced_analytics_dashboard">Advanced analytics dashboard</li>
<li data-i18n="pricing.priority_email_support_sla">Priority email support & SLA</li>
</ul>
<!-- data-no-transition: the site-wide view-transition script intercepts
internal links at capture phase and navigates programmatically,
which would defeat this CTA's signed-in click handler (it opens
the checkout modal instead of navigating). -->
<a
href="/login?plan=pro"
class="pricing-cta primary"
id="pro-cta"
data-no-transition="1"
data-i18n="pricing.choose_pro">Choose Pro</a
>
<div class="pricing-pay-assets" aria-label="Accepted payment assets">
Pay in <strong data-i18n="pricing.usdc">USDC</strong>, <strong data-i18n="pricing.sol">SOL</strong>, or
<strong data-i18n="pricing.three">$THREE</strong>
<span class="pricing-three-discount" id="pro-three-discount" hidden></span>
</div>
</div>
<div class="pricing-tier-card" data-tier="enterprise">
<div class="pricing-tier-name">Enterprise</div>
<div class="pricing-amount" style="font-size: 36px; margin-top: 6px">
Custom
</div>
<div class="pricing-cycle-info">Volume pricing · tailored SLA</div>
<ul class="pricing-features">
<li data-i18n="pricing.everything_in_pro">Everything in Pro</li>
<li data-i18n="pricing.self_hosted_runtime_option">Self-hosted runtime option</li>
<li data-i18n="pricing.white_label_embed_api">White-label embed & API</li>
<li data-i18n="pricing.on_chain_identity_erc_8004">On-chain identity (ERC-8004)</li>
<li data-i18n="pricing.custom_rigs_licensing">Custom rigs & licensing</li>
<li data-i18n="pricing.sso_audit_logs_embed_policy_whitelisting">SSO, audit logs, embed-policy whitelisting</li>
<li data-i18n="pricing.dedicated_infrastructure_solutions_engineer">Dedicated infrastructure & solutions engineer</li>
</ul>
<a
href="mailto:[email protected]?subject=three.ws%20Enterprise"
class="pricing-cta"
data-i18n="pricing.contact_sales">Contact sales</a
>
</div>
</div>
<!-- ── PRO CHECKOUT — pay in USDC, SOL, or $THREE on Solana ─────── -->
<div class="pc-overlay" id="pc-overlay" hidden>
<div
class="pc-dialog"
role="dialog"
aria-modal="true"
aria-labelledby="pc-title"
id="pc-dialog"
tabindex="-1"
>
<button class="pc-close" id="pc-close" aria-label="Close checkout" data-i18n-attr="aria-label:pricing.close_checkout_arialabel">
<svg viewBox="0 0 16 16" aria-hidden="true">
<path
d="M3 3l10 10M13 3L3 13"
stroke="currentColor"
stroke-width="1.6"
stroke-linecap="round"
/>
</svg>
</button>
<h3 id="pc-title" data-i18n="pricing.upgrade_to_pro">Upgrade to Pro</h3>
<p class="pc-sub" id="pc-sub" data-i18n="pricing.30_days_of_pro_settled_on_solana">
30 days of Pro, settled on Solana. Choose how you want to pay.
</p>
<!-- Step 1 — pick the asset -->
<div class="pc-step" id="pc-step-asset">
<div class="pc-assets" role="radiogroup" aria-label="Payment asset">
<button
class="pc-asset is-selected"
type="button"
role="radio"
aria-checked="true"
data-asset="USDC"
data-i18n-html="pricing.usdc_49_stable_pay_the_sticker_price">
<span class="pc-asset-name">USDC</span>
<span class="pc-asset-price" data-asset-price="USDC">$49</span>
<span class="pc-asset-note">Stable — pay the sticker price</span>
</button>
<button
class="pc-asset"
type="button"
role="radio"
aria-checked="false"
data-asset="SOL"
data-i18n-html="pricing.sol_49_quoted_at_the_live_price">
<span class="pc-asset-name">SOL</span>
<span class="pc-asset-price" data-asset-price="SOL">$49</span>
<span class="pc-asset-note">Quoted at the live price</span>
</button>
<button
class="pc-asset"
type="button"
role="radio"
aria-checked="false"
data-asset="THREE"
data-i18n-html="pricing.20_off_three_39_20_the_platform">
<span class="pc-asset-badge" data-three-badge>20% off</span>
<span class="pc-asset-name">$THREE</span>
<span class="pc-asset-price" data-asset-price="THREE">$39.20</span>
<span class="pc-asset-note">The platform coin — discounted</span>
</button>
</div>
<button class="pricing-cta primary pc-continue" id="pc-continue" type="button" data-i18n="pricing.continue">
Continue
</button>
<p class="pc-fineprint" data-i18n="pricing.payments_are_verified_on_chain_and_activate">
Payments are verified on-chain and activate instantly. SOL and $THREE
amounts are pinned when the quote is created.
</p>
</div>
<!-- Step 2 — pay the pinned quote -->
<div class="pc-step" id="pc-step-pay" hidden>
<div class="pc-quote">
<div class="pc-quote-amount" id="pc-amount"></div>
<div class="pc-quote-meta">
<span id="pc-usd"></span> · quote expires in
<strong id="pc-countdown">--:--</strong>
</div>
</div>
<div class="pc-pay-grid">
<div class="pc-qr-wrap">
<canvas id="pc-qr" width="220" height="220" aria-label="Solana Pay QR code"></canvas>
</div>
<div class="pc-pay-actions">
<a
class="pricing-cta primary"
id="pc-wallet-link"
rel="noopener"
data-i18n="pricing.open_in_wallet">Open in wallet</a
>
<button class="pricing-cta" type="button" id="pc-copy-url" data-i18n="pricing.copy_payment_link">
Copy payment link
</button>
<button class="pricing-cta" type="button" id="pc-copy-addr" data-i18n="pricing.copy_address">
Copy address
</button>
</div>
</div>
<label class="pc-sig-label" for="pc-txsig"
data-i18n="pricing.paid_from_an_exchange_or_cli_paste">Paid from an exchange or CLI? Paste the transaction signature:</label
>
<div class="pc-sig-row">
<input
id="pc-txsig"
autocomplete="off"
spellcheck="false"
placeholder="Transaction signature"
/>
<button class="pricing-cta primary" type="button" id="pc-confirm" data-i18n="pricing.confirm">
Confirm
</button>
</div>
<button class="pc-back" type="button" id="pc-back" data-i18n="pricing.change_payment_asset">
← Change payment asset
</button>
<div class="pc-status" id="pc-status" role="status" aria-live="polite"></div>
</div>
<!-- Step 3 — done -->
<div class="pc-step pc-success" id="pc-step-done" hidden>
<div class="pc-success-mark" aria-hidden="true">✓</div>
<h4 data-i18n="pricing.you_re_pro">You’re Pro</h4>
<p id="pc-done-detail"></p>
<a class="pricing-cta primary" href="/dashboard" data-i18n="pricing.go_to_dashboard">Go to dashboard</a>
</div>
</div>
</div>
<!-- ── 3D AVATAR CANVAS ────────────────────────────────────────── -->
<canvas class="pricing-avatar-canvas" id="avatar-canvas"></canvas>
<!-- ── PAY PER USE (catalog-driven) ────────────────────────────── -->
<!--
Prices here are fetched live from /api/three/catalog (publicCatalog over
api/_lib/pricing/catalog.js) — never hardcoded — so the pricing page and
the pay/x402 flows always quote the same number. Quoted in USD, settled
in $THREE. States: loading skeleton / populated / empty / error.
-->
<section
class="pricing-payg reveal-section"
id="pricing-payg"
aria-labelledby="payg-heading"
>
<h2 id="payg-heading" data-i18n="pricing.pay_only_for_what_you_generate">Pay only for what you generate</h2>
<p class="payg-lead" data-i18n-html="pricing.no_subscription_needed_generation_and_comput">
No subscription needed. Generation and compute are billed per call —
quoted in USD, settled in <a href="/three">$THREE</a> at the live rate.
Drafts are always free.
</p>
<div class="payg-holder" id="payg-holder" hidden></div>
<div
class="payg-grid"
id="payg-grid"
aria-busy="true"
aria-live="polite"
></div>
<p class="payg-foot" data-i18n-html="pricing.variable_items_rare_names_limited_collectibl">
Variable items — rare <code>.threews.sol</code> names, limited
collectibles, and creator-priced marketplace sales — are priced per
item at checkout. <a href="/three">See the full $THREE economy →</a>
</p>
</section>
<!-- ── FEATURE COMPARISON ──────────────────────────────────────── -->
<section class="pricing-comparison reveal-section">
<h2 data-i18n="pricing.compare_every_feature">Compare every feature</h2>
<table class="comparison-table">
<thead>
<tr>
<th data-i18n="pricing.feature">Feature</th>
<th data-i18n="pricing.free">Free</th>
<th class="featured-col" data-i18n="pricing.pro">Pro</th>
<th data-i18n="pricing.enterprise">Enterprise</th>
</tr>
</thead>
<tbody>
<tr class="section-row">
<td colspan="4" data-i18n="pricing.agents_avatars">Agents & avatars</td>
</tr>
<tr>
<td data-i18n="pricing.agents">Agents</td>
<td class="val">1</td>
<td class="val featured-col" data-i18n="pricing.unlimited">Unlimited</td>
<td class="val" data-i18n="pricing.unlimited_2">Unlimited</td>
</tr>
<tr>
<td data-i18n="pricing.custom_avatars">Custom avatars</td>
<td class="val">1</td>
<td class="val featured-col" data-i18n="pricing.unlimited_3">Unlimited</td>
<td class="val" data-i18n="pricing.unlimited_4">Unlimited</td>
</tr>
<tr>
<td data-i18n="pricing.animation_clips">Animation clips</td>
<td class="val">200</td>
<td class="val featured-col" data-i18n="pricing.200_custom">200 + custom</td>
<td class="val" data-i18n="pricing.unlimited_custom_rigs">Unlimited + custom rigs</td>
</tr>
<tr>
<td data-i18n="pricing.memory_seeds">Memory seeds</td>
<td><span class="check"></span></td>
<td class="featured-col"><span class="check yes"></span></td>
<td><span class="check yes"></span></td>
</tr>
<tr class="section-row">
<td colspan="4" data-i18n="pricing.voice_lipsync">Voice & lipsync</td>
</tr>
<tr>
<td data-i18n="pricing.voice_chat">Voice chat</td>
<td><span class="check yes"></span></td>
<td class="featured-col"><span class="check yes"></span></td>
<td><span class="check yes"></span></td>
</tr>
<tr>
<td data-i18n="pricing.tts_lipsync">TTS lipsync</td>
<td><span class="check yes"></span></td>
<td class="featured-col"><span class="check yes"></span></td>
<td><span class="check yes"></span></td>
</tr>
<tr>
<td data-i18n="pricing.custom_voice_cloning_2">Custom voice cloning</td>
<td><span class="check"></span></td>
<td class="featured-col"><span class="check yes"></span></td>
<td><span class="check yes"></span></td>
</tr>
<tr class="section-row">
<td colspan="4" data-i18n="pricing.embed_deploy">Embed & deploy</td>
</tr>
<tr>
<td data-i18n="pricing.embeds"><agent-3d> embeds</td>
<td class="val" data-i18n="pricing.unlimited_5">Unlimited</td>
<td class="val featured-col" data-i18n="pricing.unlimited_6">Unlimited</td>
<td class="val" data-i18n="pricing.unlimited_7">Unlimited</td>
</tr>
<tr>
<td data-i18n="pricing.custom_domain_embeds">Custom domain embeds</td>
<td><span class="check"></span></td>
<td class="featured-col"><span class="check yes"></span></td>
<td><span class="check yes"></span></td>
</tr>
<tr>
<td data-i18n="pricing.white_label_theming">White-label theming</td>
<td><span class="check"></span></td>
<td><span class="check"></span></td>
<td><span class="check yes"></span></td>
</tr>
<tr>
<td data-i18n="pricing.embed_policy_whitelisting">Embed-policy whitelisting</td>
<td><span class="check"></span></td>
<td><span class="check"></span></td>
<td><span class="check yes"></span></td>
</tr>
<tr class="section-row">
<td colspan="4" data-i18n="pricing.platform_infra">Platform & infra</td>
</tr>
<tr>
<td data-i18n="pricing.cdn_delivery">CDN delivery</td>
<td class="val" data-i18n="pricing.shared">Shared</td>
<td class="val featured-col" data-i18n="pricing.priority">Priority</td>
<td class="val" data-i18n="pricing.dedicated">Dedicated</td>
</tr>
<tr>
<td data-i18n="pricing.gpu_rendering">GPU rendering</td>
<td class="val" data-i18n="pricing.shared_2">Shared</td>
<td class="val featured-col" data-i18n="pricing.priority_2">Priority</td>
<td class="val" data-i18n="pricing.dedicated_2">Dedicated</td>
</tr>
<tr>
<td data-i18n="pricing.analytics_dashboard">Analytics dashboard</td>
<td class="val" data-i18n="pricing.basic">Basic</td>
<td class="val featured-col" data-i18n="pricing.advanced">Advanced</td>
<td class="val" data-i18n="pricing.custom">Custom</td>
</tr>
<tr>
<td data-i18n="pricing.self_hosted_runtime">Self-hosted runtime</td>
<td><span class="check"></span></td>
<td><span class="check"></span></td>
<td><span class="check yes"></span></td>
</tr>
<tr class="section-row">
<td colspan="4" data-i18n="pricing.monetization_identity">Monetization & identity</td>
</tr>
<tr>
<td data-i18n="pricing.x402_paid_skills">x402 paid skills</td>
<td><span class="check yes"></span></td>
<td class="featured-col"><span class="check yes"></span></td>
<td><span class="check yes"></span></td>
</tr>
<tr>
<td data-i18n="pricing.platform_fee">Platform fee</td>
<td class="val" data-i18n="pricing.0_beta">0% (beta)</td>
<td class="val featured-col">2.9%</td>
<td class="val" data-i18n="pricing.custom_2">Custom</td>
</tr>
<tr>
<td data-i18n="pricing.on_chain_identity_erc_8004_2">On-chain identity (ERC-8004)</td>
<td><span class="check"></span></td>
<td><span class="check"></span></td>
<td><span class="check yes"></span></td>
</tr>
<tr class="section-row">
<td colspan="4" data-i18n="pricing.support">Support</td>
</tr>
<tr>
<td data-i18n="pricing.community_discord">Community (Discord)</td>
<td><span class="check yes"></span></td>
<td class="featured-col"><span class="check yes"></span></td>
<td><span class="check yes"></span></td>
</tr>
<tr>
<td data-i18n="pricing.priority_email">Priority email</td>
<td><span class="check"></span></td>
<td class="featured-col"><span class="check yes"></span></td>
<td><span class="check yes"></span></td>
</tr>
<tr>
<td data-i18n="pricing.sla_guarantee">SLA guarantee</td>
<td><span class="check"></span></td>
<td class="featured-col"><span class="check yes"></span></td>
<td><span class="check yes"></span></td>
</tr>
<tr>
<td data-i18n="pricing.dedicated_solutions_engineer">Dedicated solutions engineer</td>
<td><span class="check"></span></td>
<td><span class="check"></span></td>
<td><span class="check yes"></span></td>
</tr>
<tr>
<td data-i18n="pricing.sso_audit_logs">SSO & audit logs</td>
<td><span class="check"></span></td>
<td><span class="check"></span></td>
<td><span class="check yes"></span></td>
</tr>
</tbody>
</table>
</section>
<!-- ── FAQ ─────────────────────────────────────────────────────── -->
<section class="pricing-faq reveal-section">
<h2 data-i18n="pricing.frequently_asked_questions">Frequently asked questions</h2>
<details>
<summary data-i18n="pricing.what_s_included_in_the_free_beta">What's included in the free beta?</summary>
<p data-i18n="pricing.everything_unlimited_embeds_voice_animation">
Everything: unlimited embeds, voice, animation, mocap, AR, x402 paid skills,
the dashboard, and the API. We're intentionally not metering anything during
beta — we want to see how people actually use the platform before drawing
pricing lines.
</p>
</details>
<details>
<summary data-i18n="pricing.what_happens_when_beta_ends">What happens when beta ends?</summary>
<p data-i18n="pricing.a_generous_free_tier_stays_free_forever">
A generous free tier stays free forever for hobby and open-source projects.
Paid tiers add higher agent limits, custom domains, priority infrastructure,
and dedicated support. Existing users get 60 days' notice and a
grandfathered transition rate.
</p>
</details>
<details>
<summary data-i18n="pricing.can_i_monetize_my_own_agents">Can I monetize my own agents?</summary>
<p data-i18n="pricing.yes_the_x402_protocol_lets_you_charge">
Yes. The x402 protocol lets you charge per skill invocation (per chat turn,
per generation, per API call) in USDC. During beta you keep 100% of revenue.
After beta the platform fee is 2.9% on Pro and negotiable on Enterprise.
</p>
</details>
<details id="no-crypto" open>
<summary data-i18n="pricing.do_i_need_crypto_to_use_three">Do I need crypto to use three.ws?</summary>
<p data-i18n="pricing.no_the_web_component_dashboard_and_api">
No. The web component, dashboard, and API work without a wallet. Crypto
unlocks: on-chain agent identity (ERC-8004), payable skills (x402), and
creator payouts. If you don't need those, the platform works like any other
SaaS.
</p>
</details>
<details>
<summary data-i18n="pricing.can_i_switch_plans_later">Can I switch plans later?</summary>
<p data-i18n="pricing.upgrade_or_downgrade_any_time_from_your">
Upgrade or downgrade any time from your dashboard. When upgrading, you're
prorated for the remainder of the current billing cycle. When downgrading,
the change takes effect at the start of the next cycle.
</p>
</details>
<details>
<summary data-i18n="pricing.what_about_enterprise_pricing">What about enterprise pricing?</summary>
<p data-i18n="pricing.custom_subdomain_sso_audit_logs_embed_policy">
Custom subdomain, SSO, audit logs, embed-policy whitelisting, white-label
themes, self-hosted runtime, and SLA. Email [email protected] and we'll set up
a call within 24 hours.
</p>
</details>
<details>
<summary data-i18n="pricing.how_does_the_annual_discount_work">How does the annual discount work?</summary>
<p data-i18n="pricing.annual_billing_saves_17_compared_to_monthly">
Annual billing saves 17% compared to monthly. You're billed once per year at
the discounted rate. If you cancel mid-year, your access continues through
the end of the paid period.
</p>
</details>
</section>
<!-- ── BOTTOM CTA ──────────────────────────────────────────────── -->
<section class="pricing-bottom-cta reveal-section">
<div class="cta-card">
<h2 data-i18n-html="pricing.ready_to_give_your_ai_agent_a">Ready to give your<br />AI agent a body?</h2>
<p data-i18n="pricing.free_during_open_beta_no_credit_card">Free during open beta. No credit card. Two lines of HTML.</p>
<div class="cta-row">
<a href="/create" class="pricing-cta primary" data-i18n="pricing.build_your_first_agent">Build your first agent</a>
<a href="/docs" class="pricing-cta" data-i18n="pricing.read_the_docs">Read the docs</a>
</div>
</div>
</section>
<!-- ── FOOTER ──────────────────────────────────────────────────── -->
<footer class="h-footer h-footer-horizon">
<div class="h-footer-glow-line" aria-hidden="true"></div>
<div class="h-footer-floor" aria-hidden="true"></div>
<div class="h-footer-haze" aria-hidden="true"></div>
<div class="h-footer-watermark" aria-hidden="true">three.ws</div>
<div class="h-footer-cta">
<div class="h-footer-newsletter">
<h3 data-i18n="pricing.stay_in_the_loop">Stay in the loop</h3>
<p data-i18n="pricing.get_updates_on_new_features_agent_tooling">Get updates on new features, agent tooling, and protocol changes.</p>
<form class="h-footer-newsletter-form" data-newsletter-form novalidate>
<input
type="email"
class="h-footer-newsletter-input"
name="email"
placeholder="Enter your email"
aria-label="Email address"
autocomplete="email"
required
/>
<button
type="submit"
class="h-footer-newsletter-btn"
aria-label="Subscribe"
data-i18n-attr="aria-label:pricing.subscribe_arialabel">
<svg viewBox="0 0 16 16" aria-hidden="true">
<path
fill="none"
stroke="currentColor"
stroke-width="1.6"
stroke-linecap="round"
stroke-linejoin="round"
d="M2 8h11m0 0L9 4m4 4l-4 4"
/>
</svg>
</button>
</form>
<p
class="h-footer-newsletter-msg"
data-newsletter-msg
aria-live="polite"
></p>
</div>
<div class="h-footer-community">
<h3 data-i18n="pricing.join_the_community">Join the community</h3>
<p data-i18n="pricing.follow_along_for_builds_demos_and_conversati">Follow along for builds, demos, and conversations with the team.</p>
<a
class="h-footer-community-btn"
href="https://x.com/trythreews"
target="_blank"
rel="noopener noreferrer"
>
<svg viewBox="0 0 24 24" aria-hidden="true">
<path
fill="currentColor"
d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"
/>
</svg>
Follow on X
</a>
</div>
</div>
<div class="h-footer-inner">
<div class="h-footer-brand-col">
<div class="h-footer-brand">
<img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" />
<span class="wordmark-dot" aria-hidden="true"></span>
<span data-i18n="pricing.three_ws">three.ws</span>
</div>
<p class="h-footer-tagline" data-i18n="pricing.give_your_ai_a_body">Give your AI a body.</p>
<div class="h-footer-socials">
<a
class="h-footer-social"
href="https://x.com/trythreews"
target="_blank"
rel="noopener noreferrer"
aria-label="three.ws on X"
data-i18n-attr="aria-label:pricing.three_ws_on_x_arialabel">
<svg viewBox="0 0 24 24" aria-hidden="true">
<path
fill="currentColor"
d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"
/>
</svg>
</a>
<a
class="h-footer-social"
href="https://github.com/nirholas/three.ws"
target="_blank"
rel="noopener noreferrer"
aria-label="three.ws on GitHub"
data-i18n-attr="aria-label:pricing.three_ws_on_github_arialabel">
<svg viewBox="0 0 16 16" aria-hidden="true">
<path
fill="currentColor"
d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"
/>
</svg>
</a>
</div>
</div>
<nav class="h-footer-links" aria-label="Footer">
<div class="h-footer-link-col">
<h4 class="h-footer-link-heading" data-i18n="pricing.product">Product</h4>
<a href="/create" data-i18n="pricing.create">Create</a>
<a href="/marketplace" data-i18n="pricing.marketplace">Marketplace</a>
<a href="/studio" data-i18n="pricing.studio">Studio</a>
<a href="/widgets" data-i18n="pricing.widgets">Widgets</a>
<a href="/pricing" data-i18n="pricing.pricing_2">Pricing</a>
</div>
<div class="h-footer-link-col">
<h4 class="h-footer-link-heading" data-i18n="pricing.developers">Developers</h4>
<a href="/docs" data-i18n="pricing.docs">Docs</a>
<a
href="https://github.com/nirholas/three.ws"
target="_blank"
rel="noopener noreferrer"
data-i18n="pricing.github">GitHub</a
>
<a href="/bazaar" data-i18n="pricing.x402_bazaar">x402 Bazaar</a>
<a
href="https://developers.metaplex.com/core"
target="_blank"
rel="noopener noreferrer"
data-i18n="pricing.metaplex_core">Metaplex Core</a
>
</div>
<div class="h-footer-link-col">
<h4 class="h-footer-link-heading" data-i18n="pricing.company">Company</h4>
<a href="/blog" data-i18n="pricing.blog">Blog</a>
<a href="/community" data-i18n="pricing.community">Community</a>
<a href="/features" data-i18n="pricing.features">Features</a>
<a href="/dashboard" data-i18n="pricing.dashboard">Dashboard</a>
</div>
<div class="h-footer-link-col">
<h4 class="h-footer-link-heading" data-i18n="pricing.legal">Legal</h4>
<a href="/legal/privacy" data-i18n="pricing.privacy">Privacy</a>
<a href="/legal/tos" data-i18n="pricing.terms">Terms</a>
</div>
</nav>
</div>
<div class="h-footer-bottom">
<p class="h-footer-legal" data-i18n="pricing.2026_three_ws_all_rights_reserved">© 2026 three.ws — All rights reserved.</p>
<div class="h-footer-badges">
<a href="/pay" class="h-footer-badge" aria-label="Built with x402 payments" data-i18n-attr="aria-label:pricing.built_with_x402_payments_arialabel">
<svg viewBox="0 0 16 16" aria-hidden="true">
<circle
cx="8"
cy="8"
r="7"
fill="none"
stroke="currentColor"
stroke-width="1.3"
/>
<path
d="M8 4v8M5.5 6h3.5a1.5 1.5 0 010 3H6.5a1.5 1.5 0 000 3H11"
fill="none"
stroke="currentColor"
stroke-width="1.2"
stroke-linecap="round"
stroke-linejoin="round"
/>
</svg>
Built with x402
</a>
<span class="h-footer-badge" aria-label="All systems operational" data-i18n-html="pricing.all_systems_operational" data-i18n-attr="aria-label:pricing.all_systems_operational_arialabel">
<span class="h-footer-status-dot"></span>
All systems operational
</span>
</div>
<div class="h-footer-legal-links">
<a href="/legal/privacy" data-i18n="pricing.privacy_policy">Privacy Policy</a>
<a href="/legal/tos" data-i18n="pricing.terms_of_use">Terms of Use</a>
</div>
</div>
</footer>
</main>
<!-- ── Reveal-on-scroll for below-the-fold sections ────────────────────── -->
<script>
(function () {
const sections = document.querySelectorAll('.reveal-section');
if (!sections.length) return;
const reduce = window.matchMedia('(prefers-reduced-motion: reduce)').matches;
const revealAll = () =>
sections.forEach((s) => s.classList.add('is-revealed'));
if (reduce || !('IntersectionObserver' in window)) {
revealAll();
return;
}
const io = new IntersectionObserver(
(entries, obs) => {
for (const entry of entries) {
if (entry.isIntersecting) {
entry.target.classList.add('is-revealed');
obs.unobserve(entry.target);
}
}
},
{ threshold: 0.12, rootMargin: '0px 0px -8% 0px' },
);
sections.forEach((s) => io.observe(s));
})();
</script>
<!-- ── Billing toggle ──────────────────────────────────────────────── -->
<script>
(function () {
const toggle = document.getElementById('billing-toggle');
if (!toggle) return;
const track = toggle.querySelector('.toggle-track');
const labelM = toggle.querySelector('.label-monthly');
const labelA = toggle.querySelector('.label-annual');
let annual = false;
function apply() {
toggle.classList.toggle('annual', annual);
track.setAttribute('aria-checked', String(annual));
labelM.classList.toggle('is-active', !annual);
labelA.classList.toggle('is-active', annual);
document.querySelectorAll('[data-monthly][data-annual]').forEach((el) => {
const val = annual ? el.dataset.annual : el.dataset.monthly;
if (el.classList.contains('pricing-amount')) {
el.innerHTML = val + '<sub>/mo</sub>';
} else {
el.textContent = val;
}
// Crossfade the figure on cycle flip (no-op under reduced motion —
// the .price-swap animation is disabled in pricing.css).
el.classList.remove('price-swap');
void el.offsetWidth; /* restart the animation */
el.classList.add('price-swap');
});
}
track.addEventListener('click', () => {
annual = !annual;
apply();
});
track.addEventListener('keydown', (e) => {
if (e.key === ' ' || e.key === 'Enter') {
e.preventDefault();
annual = !annual;
apply();
}
});
labelM.addEventListener('click', () => {
annual = false;
apply();
});
labelA.addEventListener('click', () => {
annual = true;
apply();
});
})();
</script>
<!-- ── 3D Avatar on pricing tiers ──────────────────────────────────── -->
<script type="module">
import * as THREE from 'three';
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
import { MeshoptDecoder } from 'three/addons/libs/meshopt_decoder.module.js';
const canvas = document.getElementById('avatar-canvas');
const tierCards = [...document.querySelectorAll('.pricing-tier-card')];
if (!canvas || !tierCards.length) throw new Error('Missing pricing DOM');
const renderer = new THREE.WebGLRenderer({ canvas, antialias: true, alpha: true });
renderer.setPixelRatio(Math.min(devicePixelRatio, 2));
renderer.outputColorSpace = THREE.SRGBColorSpace;
renderer.toneMapping = THREE.ACESFilmicToneMapping;
renderer.toneMappingExposure = 1.1;
const scene = new THREE.Scene();
const PX_PER_UNIT = 120;
const camera = new THREE.OrthographicCamera(-1, 1, 1, -1, 0.1, 100);
camera.position.z = 10;
function updateFrustum() {
const hw = window.innerWidth / PX_PER_UNIT / 2;
const hh = window.innerHeight / PX_PER_UNIT / 2;
camera.left = -hw;
camera.right = hw;
camera.top = hh;
camera.bottom = -hh;
camera.updateProjectionMatrix();
}
const _v3 = new THREE.Vector3();
function domToWorld(sx, sy) {
_v3.set((sx / window.innerWidth) * 2 - 1, -(sy / window.innerHeight) * 2 + 1, 0);
_v3.unproject(camera);
return { x: _v3.x, y: _v3.y };
}
let avatar = null,
mixer = null,
rootBone = null,
baseRootPos = null;
let phase = 'loading';
let activeTier = null;
function resize() {
renderer.setSize(window.innerWidth, window.innerHeight, false);
updateFrustum();
if (avatar && activeTier && phase === 'idle') {
const t = standOnTopOf(activeTier);
avatar.position.set(t.x, t.y, 0);
}
}
window.addEventListener('resize', resize);
resize();
scene.add(new THREE.AmbientLight(0xffffff, 0.6));
const key = new THREE.DirectionalLight(0xfff4dc, 2.0);
key.position.set(3, 6, 5);
scene.add(key);
const rim = new THREE.DirectionalLight(0x4060ff, 0.6);
rim.position.set(-4, 3, -2);
scene.add(rim);
const fill = new THREE.DirectionalLight(0xffeedd, 0.4);
fill.position.set(0, 2, 7);
scene.add(fill);
const actions = {};
let currentAction = null;
const FADE_S = 0.3;
function setAnimation(name, { loop = true, hold = false } = {}) {
const next = actions[name];
if (!next || next === currentAction) return;
next.reset();
next.setLoop(loop ? THREE.LoopRepeat : THREE.LoopOnce, loop ? Infinity : 1);
next.clampWhenFinished = hold;
if (currentAction) next.crossFadeFrom(currentAction, FADE_S, false).play();
else next.fadeIn(FADE_S).play();
currentAction = next;
}
function standOnTopOf(tierEl) {
const r = tierEl.getBoundingClientRect();
return domToWorld(r.left + r.width / 2, r.top);
}
let walkT = 0,
walkStart = null,
walkEnd = null,
walkDur = 0.85,
walkPeakRise = 0;
let onArrival = null;
const WALK_SPEED = 5;
function smoothstep(t) {
return t * t * (3 - 2 * t);
}
function beginMove(tierEl) {
if (activeTier) activeTier.classList.remove('is-active');
activeTier = tierEl;
activeTier.classList.add('is-active');
}
function walkToTier(tierEl) {
if (!avatar || tierEl === activeTier) return;
beginMove(tierEl);
phase = 'walking';
walkT = 0;
walkStart = { x: avatar.position.x, y: avatar.position.y };
walkEnd = standOnTopOf(tierEl);
const dx = Math.abs(walkEnd.x - walkStart.x);
walkDur = Math.max(0.4, dx / WALK_SPEED);
const minX = Math.min(walkStart.x, walkEnd.x);
const maxX = Math.max(walkStart.x, walkEnd.x);
const baseY = Math.max(walkStart.y, walkEnd.y);
let peakY = baseY;
for (const tt of tierCards) {
const tp = standOnTopOf(tt);
if (tp.x > minX && tp.x < maxX && tp.y > peakY) peakY = tp.y;
}
walkPeakRise = peakY - baseY;
setAnimation('walk', { loop: true });
const dir = Math.sign(walkEnd.x - walkStart.x) || 0;
avatar.rotation.y = dir * (Math.PI / 2);
}
const CTA_REACTION = {
free: 'wave',
pro: 'av-celebrating',
enterprise: 'av-brag-claps',
};
const CTA_REACTION_MAX_MS = 3500;
function landOnTier() {
phase = 'idle';
const snap = standOnTopOf(activeTier);
avatar.position.set(snap.x, snap.y, 0);
avatar.rotation.y = 0;
setAnimation('idle', { loop: true });
if (onArrival) {
const cb = onArrival;
onArrival = null;
setTimeout(cb, 300);
}
}
let hoverTimer = null,
hoverPendingTier = null;
function scheduleMove(tierEl) {
if (!tierEl) {
clearTimeout(hoverTimer);
hoverPendingTier = null;
return;
}
if (tierEl === activeTier) {
clearTimeout(hoverTimer);
hoverPendingTier = null;
return;
}
if (tierEl === hoverPendingTier) return;
clearTimeout(hoverTimer);
hoverPendingTier = tierEl;
hoverTimer = setTimeout(() => {
hoverPendingTier = null;
if (phase === 'walking') {
setTimeout(() => scheduleMove(tierEl), 200);
} else walkToTier(tierEl);
}, 120);
}
function tierAtPoint(cx, cy) {
for (const t of tierCards) {
const r = t.getBoundingClientRect();
if (cx >= r.left && cx <= r.right && cy >= r.top && cy <= r.bottom) return t;
}
return null;
}
const tiersGrid = document.getElementById('pricing-tiers');
tiersGrid.addEventListener('mousemove', (e) =>
scheduleMove(tierAtPoint(e.clientX, e.clientY)),
);
tiersGrid.addEventListener('mouseleave', () => scheduleMove(null));
document.querySelectorAll('.pricing-cta').forEach((cta) => {
const tierEl = cta.closest('.pricing-tier-card');
if (!tierEl) return;
cta.addEventListener('click', (e) => {
if (!avatar) return;
const tierName = tierEl.dataset.tier;
const reactionClip = CTA_REACTION[tierName] ?? 'wave';
const fireReaction = () => {
setAnimation(reactionClip, { loop: false, hold: true });
const clipDur = actions[reactionClip]?.getClip().duration ?? 2.0;
setTimeout(
() => {
if (phase === 'idle') setAnimation('idle', { loop: true });
},
Math.min(clipDur * 1000, CTA_REACTION_MAX_MS),
);
};
if (tierEl === activeTier && phase === 'idle') {
fireReaction();
} else {
onArrival = fireReaction;
if (tierEl !== activeTier) walkToTier(tierEl);
}
});
});
let mouseNx = 0,
mouseNy = 0;
window.addEventListener('mousemove', (e) => {
mouseNx = (e.clientX / window.innerWidth) * 2 - 1;
mouseNy = (e.clientY / window.innerHeight) * 2 - 1;
});
const ro = new ResizeObserver(() => {
if (avatar && activeTier && phase === 'idle') {
const t = standOnTopOf(activeTier);
avatar.position.set(t.x, t.y, 0);
}
});
tierCards.forEach((t) => ro.observe(t));
const CLIPS = ['idle', 'walk', 'wave', 'av-celebrating', 'av-brag-claps'];
// cz.glb ships with EXT_meshopt_compression — the decoder must be wired
// before the loader can parse a single bufferView, otherwise GLTFLoader
// throws "setMeshoptDecoder must be called before loading compressed files".
const gltfLoader = new GLTFLoader();
gltfLoader.setMeshoptDecoder(MeshoptDecoder);
gltfLoader.load('/avatars/cz.glb', (gltf) => {
avatar = gltf.scene;
avatar.traverse((n) => {
if (!rootBone && /^(Hips|Root|mixamorig:?Hips)$/i.test(n.name)) rootBone = n;
});
avatar.rotation.y = 0;
scene.add(avatar);
mixer = new THREE.AnimationMixer(avatar);
Promise.all(
CLIPS.map((name) =>
fetch(`/animations/clips/${name}.json`).then((r) => r.json()),
),
).then((jsons) => {
CLIPS.forEach((name, i) => {
actions[name] = mixer.clipAction(THREE.AnimationClip.parse(jsons[i]));
});
if (rootBone) baseRootPos = rootBone.position.clone();
const _r = renderer.render.bind(renderer);
renderer.render = (sc, cam) => {
try {
if (rootBone && baseRootPos) rootBone.position.copy(baseRootPos);
} catch (_) {}
_r(sc, cam);
};
const pro = document.querySelector('[data-tier="pro"]');
activeTier = pro;
pro.classList.add('is-active');
const start = standOnTopOf(pro);
avatar.position.set(start.x, start.y, 0);
setAnimation('idle', { loop: true });
phase = 'idle';
}).catch((err) => {
// Animation clips failed to load — keep the static pricing page
// intact and skip the decorative tier-hopping avatar.
console.warn('[pricing] animation clips unavailable, skipping avatar', err);
});
});
const timer = new THREE.Timer();
(function tick() {
requestAnimationFrame(tick);
try {
timer.update();
const dt = Math.min(timer.getDelta(), 0.05);
mixer?.update(dt);
if (phase === 'walking' && avatar && walkStart && walkEnd) {
walkT += dt;
const p = Math.min(walkT / walkDur, 1);
const e = smoothstep(p);
const x = walkStart.x + (walkEnd.x - walkStart.x) * e;
const arc = walkPeakRise * 4 * p * (1 - p);
const y = walkStart.y + (walkEnd.y - walkStart.y) * e + arc;
avatar.position.set(x, y, 0);
if (p >= 1) landOnTier();
}
camera.position.x += (mouseNx * 0.1 - camera.position.x) * 0.04;
camera.position.y += (-mouseNy * 0.07 - camera.position.y) * 0.04;
renderer.render(scene, camera);
} catch (_) {}
})();
</script>
<!-- ── Pay-per-use catalog (live from /api/three/catalog) ──────────── -->
<script type="module">
import { track, ANALYTICS_EVENTS } from '/src/analytics.js';
const esc = (s) =>
String(s).replace(/[<>&]/g, (c) => ({ '<': '<', '>': '>', '&': '&' })[c]);
// Conversion instrumentation — pricing view + tier buy-intent. No PII:
// these carry only the surface name and which CTA was clicked. Safe no-op
// when PostHog isn't loaded (see src/analytics.js).
track(ANALYTICS_EVENTS.SURFACE_OPENED, { surface: 'pricing' });
for (const cta of document.querySelectorAll('.pricing-tier-card .pricing-cta')) {
const tier = cta.closest('.pricing-tier-card')?.dataset.tier || 'unknown';
cta.addEventListener('click', () =>
track(ANALYTICS_EVENTS.CTA_CLICKED, { cta: `plan:${tier}`, location: 'pricing' }),
);
}
const grid = document.getElementById('payg-grid');
if (grid) {
// The draft lane is on the free-forever allowlist (not a catalog
// action), so it's rendered explicitly as the obvious default — no
// wall in front of the free aha.
const FREE_CARD = `
<article class="payg-card is-free">
<div class="payg-card-top">
<span class="payg-card-label">Draft generation</span>
<span class="payg-badge">Free</span>
</div>
<div class="payg-card-price"><span class="amt">$0</span><span class="unit">/ generation</span></div>
<div class="payg-card-note">No wallet, no card — the default lane on NVIDIA NIM.</div>
<a class="payg-card-cta" href="/create" data-payg-cta="free">Start generating free</a>
</article>`;
const UNIT = { generation: 'generation', data: 'call' };
const fmtUsd = (usd) => '$' + Number(usd).toFixed(2);
// Personalized holder pricing — set from /api/pricing when the visitor
// is signed in with $THREE held. Server is the source of truth for the
// discounted "your price"; we never do balance math on the client.
let holder = null;
// A consistent holder-discount banner above the grid. Renders the real
// resolved tier + the live discount, or the upgrade nudge for members.
function renderHolderBanner() {
const host = document.getElementById('payg-holder');
if (!host) return;
if (!holder) {
host.innerHTML = '';
host.hidden = true;
return;
}
host.hidden = false;
const bps = Number(holder.discount_bps || 0);
if (bps > 0) {
host.innerHTML = `<div class="payg-holder-card is-active">
<span class="payg-holder-badge">${esc(holder.tier.label)}</span>
<span class="payg-holder-msg">You hold <strong>${fmtUsd(holder.usd_held)}</strong> of $THREE — every paid lane below is <strong>${holder.discount_percent}% off</strong>, applied at checkout.</span>
<a class="payg-holder-cta" href="/three">Manage holdings →</a>
</div>`;
} else {
const toNext = holder.next_tier
? ` Hold <strong>${fmtUsd(holder.usd_to_next)}</strong> more of $THREE to reach <strong>${esc(holder.next_tier.label)}</strong> and unlock ${(holder.next_tier.discount_bps / 100).toFixed(0)}% off.`
: '';
host.innerHTML = `<div class="payg-holder-card">
<span class="payg-holder-msg">Hold $THREE to discount every paid lane.${toNext}</span>
<a class="payg-holder-cta" href="/three">Get $THREE →</a>
</div>`;
}
}
function skeleton() {
grid.setAttribute('aria-busy', 'true');
grid.innerHTML =
FREE_CARD +
Array.from({ length: 5 })
.map(
() =>
`<article class="payg-card is-skeleton" aria-hidden="true"><div class="sk sk-label"></div><div class="sk sk-price"></div><div class="sk sk-note"></div></article>`,
)
.join('');
}
function renderError() {
grid.setAttribute('aria-busy', 'false');
grid.innerHTML =
FREE_CARD +
`<article class="payg-card is-msg">
<div class="payg-card-label">Live prices unavailable</div>
<div class="payg-card-note">We couldn't load the price catalog just now. The free draft lane is always available — retry or <a href="/three">view the $THREE economy</a>.</div>
<button class="payg-card-cta" type="button" id="payg-retry">Retry</button>
</article>`;
document.getElementById('payg-retry')?.addEventListener('click', load);
}
function render(actions) {
// Only fixed-price compute lanes belong on this grid; variable items
// (usd === null) are covered by the footer note.
const fixed = (actions || []).filter(
(a) =>
a.usd != null &&
Number(a.usd) > 0 &&
(a.category === 'generation' || a.category === 'data'),
);
grid.setAttribute('aria-busy', 'false');
if (!fixed.length) {
grid.innerHTML =
FREE_CARD +
`<article class="payg-card is-msg"><div class="payg-card-label">More paid lanes coming online</div><div class="payg-card-note">Start free today — paid generation tiers unlock as engines come online.</div><a class="payg-card-cta" href="/create">Start free</a></article>`;
return;
}
// Cheapest first reads as an honest ramp from the free draft.
fixed.sort((a, b) => Number(a.usd) - Number(b.usd));
grid.innerHTML =
FREE_CARD +
fixed
.map((a) => {
const unit = UNIT[a.category] || 'call';
// When the signed-in holder gets a discount, strike the list
// price and show their real price — the number checkout quotes.
const yours = a.your_usd != null ? Number(a.your_usd) : null;
const discounted = yours != null && yours < Number(a.usd);
const priceHtml = discounted
? `<span class="amt"><s class="payg-was">${fmtUsd(a.usd)}</s> ${fmtUsd(yours)}</span><span class="unit">/ ${unit}</span>`
: `<span class="amt">${fmtUsd(a.usd)}</span><span class="unit">/ ${unit}</span>`;
return `<article class="payg-card${discounted ? ' is-yourprice' : ''}">
<div class="payg-card-top"><span class="payg-card-label">${esc(a.label)}</span>${discounted ? '<span class="payg-badge is-discount">your price</span>' : ''}</div>
<div class="payg-card-price">${priceHtml}</div>
<div class="payg-card-settle">settled in <strong>$THREE</strong></div>
</article>`;
})
.join('');
}
let viewed = false;
async function load() {
skeleton();
try {
// /api/pricing is the canonical server-truth surface: catalog +
// platform fee + holder discount ladder + a personalized "your
// price" when signed in. Credentials so the session is read.
const r = await fetch('/api/pricing', { headers: { accept: 'application/json' }, credentials: 'include' });
if (!r.ok) throw new Error(`pricing ${r.status}`);
const data = await r.json();
holder = data.holder || null;
renderHolderBanner();
render(data.actions);
if (!viewed) {
viewed = true;
track(ANALYTICS_EVENTS.SURFACE_OPENED, { surface: 'pricing:pay-per-use' });
}
} catch (err) {
console.warn('[pricing] catalog load failed:', err?.message || err);
renderError();
}
}
load();
}
</script>
<!-- ── Pro checkout — USDC / SOL / $THREE on Solana ────────────────── -->
<script type="module">
import { track, ANALYTICS_EVENTS } from '/src/analytics.js';
const $ = (id) => document.getElementById(id);
const overlay = $('pc-overlay');
const proCta = $('pro-cta');
if (overlay && proCta) {
const PLAN = 'pro';
let user = null;
let plans = null;
let selectedAsset = 'USDC';
let intent = null;
let countdownTimer = null;
let pollTimer = null;
let lastFocus = null;
const fmtUsd = (n) =>
'$' + Number(n).toFixed(Number.isInteger(Number(n)) ? 0 : 2);
const assetLabel = (a) => (a === 'THREE' ? '$THREE' : a);
// Server truth for prices + the $THREE discount — never hardcoded.
async function loadPlans() {
try {
const r = await fetch('/api/payments/solana/plans', {
headers: { accept: 'application/json' },
});
if (!r.ok) return;
plans = await r.json();
const pro = plans.plans?.[PLAN];
if (!pro) return;
// Sync the tier card's monthly figure with what checkout charges.
const amountEl = document.querySelector(
'[data-tier="pro"] .pricing-amount',
);
if (amountEl) {
amountEl.dataset.monthly = fmtUsd(pro.price_usd);
if (!document.querySelector('#billing-toggle.annual')) {
amountEl.innerHTML = fmtUsd(pro.price_usd) + '<sub>/mo</sub>';
}
}
const pct = (plans.three_discount_bps / 100).toFixed(0);
const discountEl = $('pro-three-discount');
if (discountEl && plans.three_discount_bps > 0) {
discountEl.textContent = `— ${pct}% off in $THREE`;
discountEl.hidden = false;
}
document.querySelector('[data-asset-price="USDC"]').textContent =
fmtUsd(pro.price_usd);
document.querySelector('[data-asset-price="SOL"]').textContent =
fmtUsd(pro.price_usd);
document.querySelector('[data-asset-price="THREE"]').textContent =
fmtUsd(pro.three_price_usd);
const badge = document.querySelector('[data-three-badge]');
if (badge) badge.textContent = `${pct}% off`;
} catch (err) {
console.warn('[pricing] plan config load failed:', err?.message);
}
}
async function loadSession() {
try {
const r = await fetch('/api/auth/me', { credentials: 'include' });
if (r.ok) user = (await r.json()).user;
} catch {}
if (user && ['pro', 'team', 'enterprise'].includes(user.plan)) {
proCta.textContent = 'You’re on ' + (user.plan === 'pro' ? 'Pro ✓' : user.plan[0].toUpperCase() + user.plan.slice(1) + ' ✓');
proCta.href = '/dashboard/account';
}
}
function setStatus(text, kind = '') {
const el = $('pc-status');
el.textContent = text;
el.className = 'pc-status' + (kind ? ' is-' + kind : '');
}
function showStep(step) {
for (const id of ['pc-step-asset', 'pc-step-pay', 'pc-step-done'])
$(id).hidden = id !== step;
}
function openModal() {
lastFocus = document.activeElement;
overlay.hidden = false;
document.body.style.overflow = 'hidden';
showStep('pc-step-asset');
setStatus('');
$('pc-dialog').focus();
track(ANALYTICS_EVENTS.SURFACE_OPENED, { surface: 'pricing:checkout' });
}
function closeModal() {
overlay.hidden = true;
document.body.style.overflow = '';
clearInterval(countdownTimer);
clearTimeout(pollTimer);
intent = null;
lastFocus?.focus?.();
}
proCta.addEventListener('click', (e) => {
// Signed out (or already upgraded) → let the link navigate.
if (!user || ['pro', 'team', 'enterprise'].includes(user.plan)) return;
e.preventDefault();
// In the iOS app, plans are bought on three.ws in Safari.
if (window.threeWsNative?.requireSafari?.() === true) return;
openModal();
});
$('pc-close').addEventListener('click', closeModal);
overlay.addEventListener('click', (e) => {
if (e.target === overlay) closeModal();
});
document.addEventListener('keydown', (e) => {
if (e.key === 'Escape' && !overlay.hidden) closeModal();
});
for (const btn of overlay.querySelectorAll('.pc-asset')) {
btn.addEventListener('click', () => {
selectedAsset = btn.dataset.asset;
for (const b of overlay.querySelectorAll('.pc-asset')) {
const on = b === btn;
b.classList.toggle('is-selected', on);
b.setAttribute('aria-checked', String(on));
}
});
}
function startCountdown(expiresAt) {
clearInterval(countdownTimer);
const el = $('pc-countdown');
const tick = () => {
const left = Math.max(0, new Date(expiresAt).getTime() - Date.now());
const m = Math.floor(left / 60000);
const s = Math.floor((left % 60000) / 1000);
el.textContent = `${m}:${String(s).padStart(2, '0')}`;
if (left <= 0) {
clearInterval(countdownTimer);
// Hide the payment targets so nobody pays a dead quote; the
// confirm input stays live for a payment already in flight.
$('pc-qr').style.opacity = '0.15';
$('pc-wallet-link').removeAttribute('href');
setStatus(
'Quote expired. If you already paid, paste your signature above — otherwise go back and get a fresh quote.',
'err',
);
}
};
tick();
countdownTimer = setInterval(tick, 1000);
}
async function createCheckout() {
$('pc-continue').disabled = true;
$('pc-continue').textContent = 'Creating quote…';
try {
const r = await fetch('/api/payments/solana/checkout', {
method: 'POST',
credentials: 'include',
headers: { 'content-type': 'application/json' },
body: JSON.stringify({ plan: PLAN, asset: selectedAsset }),
});
const d = await r.json();
if (!r.ok)
throw new Error(d.error_description || d.message || 'checkout failed');
intent = d;
$('pc-amount').textContent =
`${d.amount_asset} ${assetLabel(d.asset)}`;
$('pc-usd').textContent =
fmtUsd(d.amount_usd) +
(d.discount_bps > 0
? ` (${(d.discount_bps / 100).toFixed(0)}% off in $THREE)`
: '');
$('pc-wallet-link').href = d.solana_pay_url;
$('pc-qr').style.opacity = '1';
const QRCode = await import('qrcode');
await (QRCode.default ?? QRCode).toCanvas($('pc-qr'), d.solana_pay_url, {
width: 220,
margin: 1,
});
$('pc-txsig').value = '';
setStatus('');
showStep('pc-step-pay');
startCountdown(d.expires_at);
track(ANALYTICS_EVENTS.CTA_CLICKED, {
cta: `plan:${PLAN}:checkout:${selectedAsset}`,
location: 'pricing',
});
} catch (err) {
setStatus(err.message, 'err');
alert(err.message);
} finally {
$('pc-continue').disabled = false;
$('pc-continue').textContent = 'Continue';
}
}
$('pc-continue').addEventListener('click', createCheckout);
$('pc-back').addEventListener('click', () => {
clearInterval(countdownTimer);
clearTimeout(pollTimer);
showStep('pc-step-asset');
setStatus('');
});
const copy = (text, btn) =>
navigator.clipboard?.writeText(text).then(() => {
const orig = btn.textContent;
btn.textContent = 'Copied ✓';
setTimeout(() => (btn.textContent = orig), 1500);
});
$('pc-copy-url').addEventListener('click', (e) =>
intent && copy(intent.solana_pay_url, e.currentTarget),
);
$('pc-copy-addr').addEventListener('click', (e) =>
intent && copy(intent.recipient, e.currentTarget),
);
// Confirm, retrying while the tx finalizes (finalization takes ~10-30s;
// the API only accepts finalized transactions).
let confirmTries = 0;
async function confirmPayment() {
const txsig = $('pc-txsig').value.trim();
if (!txsig) return setStatus('Paste the transaction signature first.', 'err');
if (!intent) return setStatus('No active quote — go back and start over.', 'err');
$('pc-confirm').disabled = true;
setStatus('Verifying on-chain…');
try {
const r = await fetch('/api/payments/solana/confirm', {
method: 'POST',
credentials: 'include',
headers: { 'content-type': 'application/json' },
body: JSON.stringify({ intent_id: intent.intent_id, tx_signature: txsig }),
});
const d = await r.json();
if (r.ok) {
clearInterval(countdownTimer);
$('pc-done-detail').textContent =
`Paid in ${assetLabel(d.asset)}. Pro is active until ` +
new Date(d.active_until).toLocaleDateString() + '.';
showStep('pc-step-done');
track(ANALYTICS_EVENTS.CTA_CLICKED, {
cta: `plan:${PLAN}:paid:${d.asset}`,
location: 'pricing',
});
return;
}
if (d.error === 'tx_not_found' && confirmTries < 30) {
confirmTries += 1;
setStatus('Waiting for the transaction to finalize… (retrying automatically)');
pollTimer = setTimeout(confirmPayment, 6000);
return;
}
throw new Error(d.error_description || d.message || 'confirmation failed');
} catch (err) {
setStatus(err.message, 'err');
$('pc-confirm').disabled = false;
}
}
$('pc-confirm').addEventListener('click', () => {
confirmTries = 0;
clearTimeout(pollTimer);
pollTimer = null;
confirmPayment();
});
loadPlans();
loadSession();
}
</script>
<script src="/brand.js" defer></script>
<div id="footer-container"></div>
<script src="/footer.js"></script>
<!-- Runtime i18n: detects locale, swaps annotated copy, mounts <lang-switcher>. -->
<script type="module" src="/i18n.js"></script>
</body>
</html>