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
docs(tutorials): align the free NVIDIA lane story with the real free-lane ordering
nirholas4f4b4b6be660
diff --git a/docs/tutorials/build-a-3d-asset-pipeline.md b/docs/tutorials/build-a-3d-asset-pipeline.mdindex 51220616b..a7ad78ed9 100644--- a/docs/tutorials/build-a-3d-asset-pipeline.md+++ b/docs/tutorials/build-a-3d-asset-pipeline.md@@ -54,6 +54,12 @@ GPU lane is busy. Any client you write has to handle both, and has to respect th[recipe page](/cookbook/text-to-3d-cli) walks through exactly why, and whathappens when you ignore it.+**If the command prints `rate_limited` instead:** every free rung was saturated at+that moment, which is a busy signal rather than your quota, and it can land on the+very first call of the day. The response carries `retry_after` in seconds. Wait+that long and run the command again; at peak it can take several tries. That is+also why the batching stage below caps its workers instead of fanning out wide.+**Prompting for this tier.** The free lane is single-subject. "a brass wateringcan" produces a watering can. "a kitchen with a table, three chairs and a window"produces a blob. Describe one object, with material and shape, and stop there.diff --git a/docs/tutorials/generate-3d-api.md b/docs/tutorials/generate-3d-api.mdindex 2cd76fb34..1a9f2ac4e 100644--- a/docs/tutorials/generate-3d-api.md+++ b/docs/tutorials/generate-3d-api.md@@ -17,7 +17,7 @@ GET /api/forge?job=ID → { status: "done", glb_url: "hGET glb_url → your model```-One wrinkle worth knowing up front: on the fast free lane the first response can already be `status: "done"` with a `glb_url` — no polling needed. Handle both cases and you're done.+Two wrinkles worth knowing up front. On the fast free lane the first response can already be `status: "done"` with a `glb_url`, so no polling is needed. And because the free lane is a shared GPU pool, the submit itself can answer `429 rate_limited` with a `retry_after` even on your very first call. Handle both and you're done.---@@ -88,14 +88,27 @@ import { writeFile } from 'node:fs/promises';const BASE = 'https://three.ws';const sleep = (ms) => new Promise((r) => setTimeout(r, ms));+// A 429 is the shared free lane asking you to come back, not a failure, and it+// can land on your very first call. The wait comes back in `retry_after` (and in+// the Retry-After header); honour it and the submit eventually goes through.+async function submitJob(body) {+ for (;;) {+ const res = await fetch(`${BASE}/api/forge`, {+ method: 'POST',+ headers: { 'content-type': 'application/json' },+ body: JSON.stringify(body),+ });+ const job = await res.json();+ if (res.ok) return job;+ if (res.status !== 429) throw new Error(job.message || job.error);+ const wait = Number(job.retry_after || res.headers.get('retry-after') || 10);+ console.log(` lane busy, retrying in ${wait}s`);+ await sleep(wait * 1000);+ }+}+async function generateModel(prompt, tier = 'standard') {- const submit = await fetch(`${BASE}/api/forge`, {- method: 'POST',- headers: { 'content-type': 'application/json' },- body: JSON.stringify({ prompt, tier }),- });- let job = await submit.json();- if (!submit.ok) throw new Error(job.message || job.error);+ let job = await submitJob({ prompt, tier });// Fast lane: the model may already be done in the first response.while (job.status !== 'done') {@@ -123,7 +136,7 @@ Run it:node generate.js "a low-poly treasure chest, iron-banded wood"```-**Batch an asset pack** by looping prompts through `generateModel` one at a time. Keep it sequential: the endpoint is rate-limited per IP (about 60 free generations an hour), so a `Promise.all` over a hundred prompts will hit `429 rate_limited`. On a 429, wait and retry; it's a rolling window, not a ban.+**Batch an asset pack** by looping prompts through `generateModel` one at a time. Keep it sequential: the endpoint is rate-limited per IP (about 60 free generations an hour), so a `Promise.all` over a hundred prompts will hit `429 rate_limited`. Because `submitJob` already backs off and retries, a batch survives both a busy lane and an exhausted window without any extra handling.---@@ -189,7 +202,7 @@ If you've never made an x402 call, start with [Build a paid x402 endpoint](/tuto| Response | Meaning | Fix ||----------|---------|-----|-| `429 rate_limited` | Per-IP hourly window exhausted (about 60 free generations an hour) | Back off and retry; keep batches sequential |+| `429 rate_limited` | Two causes, same code: the shared GPU lane is busy right now (`queued: false`, and it can hit your first call), or your per-IP hourly window is exhausted (about 60 free generations an hour) | Sleep for `retry_after` seconds and resubmit, as `submitJob` does in Step 3. Neither is a ban; keep batches sequential || `422 image_not_usable` | Photo failed the vision pre-check | Reshoot per the `message`, or send `skip_validation: true` || `402` on `tier: "high"` | High tier is hold-or-pay on platform engines | Hold $THREE (Bronze), pay per generation, use credits, or use the x402 endpoint || `status: "failed"` mid-job | Upstream generation error | Read `error`; retry once — transient provider errors happen |diff --git a/docs/tutorials/nvidia-3d-free.md b/docs/tutorials/nvidia-3d-free.mdindex 27135fdc3..0918830cf 100644--- a/docs/tutorials/nvidia-3d-free.md+++ b/docs/tutorials/nvidia-3d-free.md@@ -1,6 +1,6 @@# Generate 3D Models Free, Powered by NVIDIA-Every free text-to-3D generation in the Forge runs on **NVIDIA NIM** with **Microsoft TRELLIS** — a GPU model that turns a description into real, textured geometry. No API key, no credits, no cost to you. This tutorial shows what the free lane is, when it kicks in, how to get the best out of it, and how to watch TRELLIS rebuild a mesh live.+The free text-to-3D lane in the Forge is **Microsoft TRELLIS**, a GPU model that turns a description into real, textured geometry, and **NVIDIA NIM** is the hosted rung of it. The Forge runs TRELLIS on our own GPU workers first and hands your prompt to a TRELLIS NIM whenever those workers are cold or busy, which on a shared free lane is often. Either way there is no API key, no credits, and no cost to you. This tutorial shows what the free lane is, when the NVIDIA rung kicks in, how to pin it deliberately, and how to watch TRELLIS rebuild a mesh live.**What you'll make:** a 3D model generated for free on the NVIDIA NIM lane, downloaded as a GLB.@@ -10,25 +10,27 @@ Every free text-to-3D generation in the Forge runs on **NVIDIA NIM** with **Micr## What the free NVIDIA lane is-When you type a prompt into the Forge, the default path is:+When you type a prompt into the Forge, the path is:1. Your words become a **reference image**.-2. That image is reconstructed into a textured 3D mesh by **TRELLIS**, served on **NVIDIA NIM** (NVIDIA's inference microservice for hosted models).-3. The mesh is packaged as a **GLB** — the standard 3D file the whole web understands.+2. That image is reconstructed into a textured 3D mesh by **TRELLIS**.+3. The mesh is packaged as a **GLB**, the standard 3D file the whole web understands.-NVIDIA NIM keeps the GPU warm, so there's no slow cold start, and the lane costs the platform nothing per call — which is why it's the free default at the **Draft** and **Standard** tiers. You don't select it; it's simply what runs when you generate without bringing your own engine key.+Step 2 is the interesting one, because the same TRELLIS model runs on two different rungs of the free chain. **Draft** and **Standard** name our own self-hosted TRELLIS worker. When every self-hosted worker is cold, busy, or unhealthy, routing falls through to **NVIDIA NIM** (NVIDIA's inference microservice for hosted models), which is the last free rung and a health-gated safety net rather than a queue you wait in.++That fallthrough is what keeps the free lane answering at all. NVIDIA NIM keeps the GPU warm, so there is no slow cold start, and the lane costs the platform nothing per call. You never have to select it: bring no engine key and one of the free TRELLIS rungs serves you. You can also pin it deliberately, which is the next step.----## Step 1 — Open the Forge+## Step 1: Open the Forge-Go to [three.ws/forge](/forge). You'll land on the **Describe it** tab — text-to-3D mode.+Go to [three.ws/forge](/forge). You'll land on the **Describe it** tab, which is text-to-3D mode.-Leave the **Engine** selector on its default. That's the free NVIDIA NIM lane. (Bringing your own geometry engine key is optional and covered in [Turn a Text Prompt into a 3D Model](/tutorials/text-to-3d) — skip it here.)+Leave the **Engine** selector alone and you get the free TRELLIS chain: our own worker first, the NVIDIA NIM lane behind it. To generate on NVIDIA specifically, open the selector and pick **TRELLIS (free)**, the entry whose vendor reads *Microsoft TRELLIS · NVIDIA NIM*. Pinning it skips the routing decision entirely, so the rest of this tutorial is reproducible even when our own workers are warm. (Bringing your own geometry engine key is a separate thing, covered in [Turn a Text Prompt into a 3D Model](/tutorials/text-to-3d). Skip it here.)----## Step 2 — Describe one object+## Step 2: Describe one objectType a single subject and name its material:@@ -40,53 +42,55 @@ Keep prompts short. TRELLIS reads roughly the first **77 characters**, so a tigh1. **One object per prompt.** "a teapot" works; "a teapot on a table by a window" confuses it.2. **Name the material.** "brushed metal", "worn leather", "glazed ceramic".-3. **No scenery.** You're describing a thing, not a photo — drop backgrounds and lighting moods.+3. **No scenery.** You're describing a thing, not a photo, so drop backgrounds and lighting moods.Want a cookbook? See [Prompt Recipes for 3D Generation](/tutorials/prompts-for-3d).----## Step 3 — Pick a tier (both free lanes)+## Step 3: Pick a tier (both are free)| Tier | What you get | Speed ||------|-------------|-------|-| **Draft** | Fast, low-poly (~12k triangles) | ~15 s — generate five, keep the best shape |-| **Standard** | Balanced detail (~30k triangles) | ~1 min — the everyday default |+| **Draft** | Fast, low-poly (~12k triangles) | About 15 s on the NVIDIA rung, 35 s on our own worker. Generate five, keep the best shape |+| **Standard** | Balanced detail (~30k triangles) | About 20 s on the NVIDIA rung, a minute on our own worker. The everyday default |++Those are the live estimates the Forge itself reads, and `GET /api/forge?catalog` returns them per backend and tier if you want the current numbers rather than these.-Both Draft and Standard route to the free NVIDIA NIM lane for text prompts. Higher tiers and photo input use other engines — see [What's next](#whats-next).+Both Draft and Standard are free on every rung of the TRELLIS chain, so the tier you pick never changes what you pay. High tier and photo input are served by other engines, covered in [What's next](#whats-next).The tier maps to TRELLIS **sampling steps**: more steps, more refinement, more time. Draft runs lean; Standard spends a little longer for cleaner geometry.----## Step 4 — Generate and inspect+## Step 4: Generate and inspect-Click **Generate**. The Forge narrates each step — *painting reference image → reconstructing textured mesh → finalizing GLB* — and the preview image appears early, so you'll know within seconds whether it's on track.+Click **Generate**. The Forge narrates each step (*painting reference image, reconstructing textured mesh, finalizing GLB*) and the preview image appears early, so you'll know within seconds whether it's on track.When it finishes, the model loads in a live viewer:- **Drag** to rotate, **scroll** to zoom.- Press **F** for a fullscreen turntable; **Esc** to exit.-- Check the **back and underside** — that's where reconstruction flaws hide.+- Check the **back and underside**, which is where reconstruction flaws hide.Then rate it **👍 Keep** or **👎 Discard**. Your verdicts feed the engine picker, so honest ratings make your future generations better.----## Step 5 — Watch TRELLIS run live (the NIM demo)+## Step 5: Watch TRELLIS run live (the NIM demo)-To see the NVIDIA NIM contract end to end — no UI in the way — open the live demo at [three.ws/forge-nim](/forge-nim).+To see the NVIDIA NIM contract end to end, with no UI in the way, open the live demo at [three.ws/forge-nim](/forge-nim).-It talks **directly** to a TRELLIS NIM and returns the GLB **synchronously** in a single call. Type a prompt or drop a photo, and you'll watch the raw model come back as bytes and render in the browser. It's the clearest way to understand what "powered by NVIDIA NIM" actually means — the same TRELLIS reconstruction the Forge uses, with the wire contract visible.+It talks **directly** to a TRELLIS NIM and returns the GLB **synchronously** in a single call. Type a prompt or drop a photo, and you'll watch the raw model come back as bytes and render in the browser. It's the clearest way to understand what "powered by NVIDIA NIM" actually means: the same TRELLIS reconstruction the Forge uses, with the wire contract visible.-> The hosted NVIDIA preview only generates from **text prompts**. To reconstruct from your own **photos** on a NIM, you need a self-hosted TRELLIS NIM — that's the next tutorial.+> The hosted NVIDIA preview only generates from **text prompts**. To reconstruct from your own **photos** on a NIM, you need a self-hosted TRELLIS NIM, which is the next tutorial.----## Step 6 — Download or share+## Step 6: Download or share-- **Download GLB** — opens in Blender, three.js, Unity, Unreal, Windows 3D Viewer, and macOS Quick Look.-- **Share** — a link with a proper preview card.+- **Download GLB** opens in Blender, three.js, Unity, Unreal, Windows 3D Viewer, and macOS Quick Look.+- **Share** gives a link with a proper preview card.- Every generation is also saved to **Your creations** at the bottom of the page, tied to your browser.---@@ -97,14 +101,15 @@ It talks **directly** to a TRELLIS NIM and returns the GLB **synchronously** in|-----------------|----------------|| Right object, wrong style | Add a style word: "low-poly", "realistic", "stylized" || Surface looks flat | Name the material, or run the **High** tier for PBR textures |-| Extra junk attached | Your prompt described a scene — cut it to just the object |-| "Generation limit reached" | The free lane is rate-limited per visitor. Wait a minute |+| Extra junk attached | Your prompt described a scene, so cut it to just the object |+| "Generation limit reached" | The free lane is rate-limited per visitor (about 60 generations an hour, more for $THREE holders). Wait a minute |+| "The 3D generator is busy right now" | Every free rung is saturated, not your quota. It tells you how long to wait; try again after that |---## What's next- **Generate from your photos** → [Turn Photos into a 3D Model](/tutorials/image-to-3d).-- **Run TRELLIS on your own GPU** → [Run Microsoft TRELLIS on your own NVIDIA NIM](/tutorials/nvidia-nim-self-host) — self-host the NIM and reconstruct from photos too.-- **Generate from code** → [Generate 3D Models from Code](/tutorials/generate-3d-api) — the same engine as a plain HTTP API.+- **Run TRELLIS on your own GPU** → [Run Microsoft TRELLIS on your own NVIDIA NIM](/tutorials/nvidia-nim-self-host): self-host the NIM and reconstruct from photos too.+- **Generate from code** → [Generate 3D Models from Code](/tutorials/generate-3d-api): the same engine as a plain HTTP API.- **Use it as an agent body** → [Build your first agent](/tutorials/first-agent).diff --git a/public/tutorials-manifest.js b/public/tutorials-manifest.jsindex 47723199e..dff8ec33b 100644--- a/public/tutorials-manifest.js+++ b/public/tutorials-manifest.js@@ -84,7 +84,7 @@slug: 'nvidia-3d-free',tier: 'easy',title: 'Generate 3D models free, powered by NVIDIA',- blurb: "The Forge's free text-to-3D runs on NVIDIA NIM with Microsoft TRELLIS — no key, no cost. Learn what the free lane does, when it kicks in, and how to watch TRELLIS rebuild a mesh live.",+ blurb: "The Forge's free text-to-3D runs Microsoft TRELLIS, with NVIDIA NIM as the hosted rung behind our own GPU workers. No key, no cost. Learn when the NVIDIA lane serves your prompt, how to pin it, and how to watch TRELLIS rebuild a mesh live.",builds: 'A 3D model generated free on the NVIDIA NIM lane, downloaded as a GLB',time: '8 min',previewModel: '/animations/robotexpressive.glb',