Skip to content

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.

feat(studio): every ChatGPT generation carries the place-in-your-room AR link

nirholas9caf58802339
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5b44b4b26..e2715381b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -15,6 +15,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **3D previews stop erroring on the scanner and every plain page footer** — The walking robot in the site footer failed to appear on plain pages like /hydrate and /login because its compressed 3D model needed a decoder the page never loaded; the decoder is now wired in before the viewer starts, so the robot renders everywhere. The 3D scanner also downloaded a 748KB placeholder avatar the moment the page opened, even for visitors who never started a scan, and logged a fetch error on every visit to the old /scan address; the placeholder now loads only when the build step is actually on screen, and if its download ever fails the progress view stays clean instead of showing a dead black panel. (`/create/selfie`) `[fix]`
- **Agent and coin art always renders on the Activity and Deployments feeds** — Avatars on the /activity trading floor and the /deployments on-chain feed come from wherever the agent's creator hosted them, and browsers were silently blocking many of those hosts (IPFS gateways serving metadata instead of an image, dead image servers), leaving blank tiles and repeated failed requests. Every third-party image now loads through the platform's own image resolver, which finds the real artwork across multiple IPFS gateways and shows a clean generated placeholder when the original is truly gone. (`/activity`) `[fix]`
- **AR Forge: type a prompt, place the model in your room** — A new mobile-first app at /ar turns a one-line prompt into a real, downloadable 3D model on the free generation lane, then puts it in your space with one tap: WebXR or Scene Viewer on Android, Quick Look on iPhone. On a desktop it shows a QR code that hands the finished model straight to your phone's camera app, and every creation gets a shareable viewer link. No account, no payment, fair-use rate limits only. (`/ar`) `[feature]`
+- **ChatGPT generations now place straight into your room** — Every 3D model generated through the ChatGPT app and the three.ws 3D Studio GPT now comes back with a one-tap AR link, the same place-it-in-your-home flow the forge has. Open it on a phone and the model appears in your real space: iPhone uses Quick Look, Android uses Scene Viewer, and a computer falls back to the interactive viewer. The inline widget also grew a View in your space button, and refined versions each carry their own AR link. (`/ar`) `[feature, improvement]`
- **Cleaner pages: sitemap header fits, stray glow clipped, quieter console** — A site-wide polish pass on cosmetic issues found in a full-site sweep. The /sitemap page now uses the standard site header instead of a cramped custom top bar that pushed the navigation past the right edge of the screen. The walk companion's caption bubble and the decorative glow on /x402-revenue are both capped so they can never spill outside the viewport or cause sideways scrolling. The companion's expected avatar fallback (a non-humanoid model handing off to the robot) no longer prints a warning on every page view, and the live demo frames on /labs and /integrations no longer trigger a browser sandbox warning. (`/sitemap`) `[fix]`
- **Coin Clash, coin worlds, and the sign-in page fail gracefully** — When the community battle service is offline, /clash and the /temporary world picker used to keep retrying and logging failed requests in the background. Both now recognize the outage on the first response, stop polling, and show a clear notice with live places to go instead (launches, markets, or walking the default world solo). The sign-in page also no longer throws a background error if its 3D greeter can't load; the form works exactly the same without him. (`/clash`) `[fix]`
- **Everything OpenAI, brought up to the GPT-5.6 era** — The whole OpenAI surface caught up with the current model family. The agent-brain tutorial, API reference, and architecture docs now describe the real lineup (GPT-5.6 Sol, Terra, and Luna, plus the GPT-5.5 and 5.4 tiers and o3), the agent-creation wizard offers GPT-5.6 Sol as its OpenAI pick, and the built-in chat app now recognizes GPT-5.x models properly: vision input, reasoning-effort controls, and the right token limits. The ChatGPT 3D Studio docs also grew: how the inline persona widget renders a living agent body, and the full REST contract behind the three.ws 3D Studio custom GPT. Old model names like gpt-4o keep working everywhere as aliases. (`/docs/mcp-studio`) `[improvement, docs]`
diff --git a/api/3d/generate.js b/api/3d/generate.js
index e2afaefee..814c0b1ea 100644
--- a/api/3d/generate.js
+++ b/api/3d/generate.js
@@ -13,13 +13,18 @@
// wire contract is new: a clean, minimal agent shape.
//
// POST { prompt, format?:'glb' }
-// → 200 { status:'done', glbUrl, viewerUrl, ... } (draft finished inline)
-// → 200 { status:'pending', job, poll, ... } (queued — poll below)
+// → 200 { status:'done', glbUrl, viewerUrl, arUrl, ... } (draft finished inline)
+// → 200 { status:'pending', job, poll, ... } (queued — poll below)
//
-// GET ?job=<id>
-// → 200 { status:'pending' } (still generating)
-// → 200 { status:'done', glbUrl, viewerUrl } (GLB ready)
-// → 200 { status:'error', error } (upstream failed; free = no charge)
+// GET ?job=<id>&title=<prompt> (title optional — labels the AR/viewer pages)
+// → 200 { status:'pending' } (still generating)
+// → 200 { status:'done', glbUrl, viewerUrl, arUrl } (GLB ready)
+// → 200 { status:'error', error } (upstream failed; free = no charge)
+//
+// arUrl is the device-aware AR launch (api/ar.js): opened on a phone it places
+// the model in the caller's real room (Scene Viewer on Android, Quick Look on
+// iOS); on desktop it falls back to the WebGL viewer. Same lane as /forge and
+// /ar — surface it to end users as "place it in your room".
//
// Free = the draft/NIM tier only, and we say so honestly: single-subject prompts,
// ~draft-fidelity geometry, no rigging. Higher quality + rigging live behind the
@@ -27,7 +32,7 @@
import { cors, wrap, method, json, error, readJson, rateLimited } from '../_lib/http.js';
import { limits, clientIp } from '../_lib/rate-limit.js';
-import { startForge, originFromReq, viewerUrl } from '../_mcp-studio/forge-client.js';
+import { startForge, originFromReq, viewerUrl, arLaunchUrl } from '../_mcp-studio/forge-client.js';
const PROMPT_MIN = 3; // the draft lane needs a subject to condition on
const PROMPT_MAX = 1000; // matches /api/forge's own prompt ceiling
@@ -53,13 +58,14 @@ const UPGRADE = Object.freeze({
// Shape a /api/forge draft-lane submit response into this route's agent contract.
// Pure + exported so the boundary is pinned in tests against real captured forge
// shapes (inline-done vs queued) without any network.
-export function shapeSubmit(job, base) {
+export function shapeSubmit(job, base, prompt) {
const glbUrl = typeof job?.glb_url === 'string' ? job.glb_url : '';
if (job?.status === 'done' && glbUrl) {
return {
status: 'done',
glbUrl,
viewerUrl: viewerUrl(base, glbUrl),
+ arUrl: arLaunchUrl(base, glbUrl, prompt),
format: 'glb',
tier: 'draft',
free: true,
@@ -67,10 +73,13 @@ export function shapeSubmit(job, base) {
};
}
const token = job?.job_id ?? null;
+ // The poll URL carries the prompt as `title` so the eventual done response
+ // labels the AR/viewer pages without the caller resending anything.
+ const t = typeof prompt === 'string' && prompt.trim() ? `&title=${encodeURIComponent(prompt.trim().slice(0, 80))}` : '';
return {
status: 'pending',
job: token,
- poll: token ? `/api/3d/generate?job=${encodeURIComponent(token)}` : null,
+ poll: token ? `/api/3d/generate?job=${encodeURIComponent(token)}${t}` : null,
format: 'glb',
tier: 'draft',
free: true,
@@ -80,7 +89,7 @@ export function shapeSubmit(job, base) {
// Shape a /api/forge poll response into { status:'pending'|'done'|'error', ... }.
// Pure + exported for the same reason as shapeSubmit.
-export function shapePoll(data, base, jobId) {
+export function shapePoll(data, base, jobId, title) {
const glbUrl = typeof data?.glb_url === 'string' ? data.glb_url : '';
if (data?.status === 'done' && glbUrl) {
return {
@@ -88,6 +97,7 @@ export function shapePoll(data, base, jobId) {
job: jobId,
glbUrl,
viewerUrl: viewerUrl(base, glbUrl),
+ arUrl: arLaunchUrl(base, glbUrl, title),
format: 'glb',
tier: 'draft',
free: true,
@@ -104,11 +114,13 @@ export function shapePoll(data, base, jobId) {
upgrade: UPGRADE,
};
}
- // queued / running / anything transient → still pending.
+ // queued / running / anything transient → still pending; keep the title on the
+ // poll URL so it survives to the done response.
+ const t = typeof title === 'string' && title.trim() ? `&title=${encodeURIComponent(title.trim().slice(0, 80))}` : '';
return {
status: 'pending',
job: jobId,
- poll: `/api/3d/generate?job=${encodeURIComponent(jobId)}`,
+ poll: `/api/3d/generate?job=${encodeURIComponent(jobId)}${t}`,
free: true,
};
}
@@ -208,10 +220,10 @@ async function generate(req, res) {
return failFromLane(res, err);
}
- return json(res, 200, shapeSubmit(job, base));
+ return json(res, 200, shapeSubmit(job, base, prompt));
}
-async function poll(req, res, jobId) {
+async function poll(req, res, jobId, title) {
if (!JOB_HANDLE_RE.test(jobId)) {
return json(res, 400, { error: 'invalid_job', message: 'Malformed job id. Pass the "job" value from the generate response.' });
}
@@ -231,7 +243,7 @@ async function poll(req, res, jobId) {
} catch {
// A transient network blip on the self-call is not a job failure — tell the
// caller it's still pending so its poll loop retries.
- return json(res, 200, shapePoll({ status: 'running' }, base, jobId));
+ return json(res, 200, shapePoll({ status: 'running' }, base, jobId, title));
}
const data = await upstream.json().catch(() => ({}));
@@ -245,10 +257,10 @@ async function poll(req, res, jobId) {
}
if (!upstream.ok) {
// Upstream hiccup mid-poll — keep the job alive as pending so the loop retries.
- return json(res, 200, shapePoll({ status: 'running' }, base, jobId));
+ return json(res, 200, shapePoll({ status: 'running' }, base, jobId, title));
}
- return json(res, 200, shapePoll(data, base, jobId));
+ return json(res, 200, shapePoll(data, base, jobId, title));
}
export default wrap(async (req, res) => {
@@ -262,7 +274,8 @@ export default wrap(async (req, res) => {
if (!jobId) {
return error(res, 400, 'missing_job', 'Pass ?job=<id> to poll a generation, or POST { prompt } to start one.');
}
- return poll(req, res, jobId);
+ const title = (url.searchParams.get('title') || '').trim().slice(0, 120);
+ return poll(req, res, jobId, title);
});
// The free NIM draft often finishes inside the submit window; startForge waits up
diff --git a/api/_mcp-studio/tools.js b/api/_mcp-studio/tools.js
index 8bcfdbb58..752a7559a 100644
--- a/api/_mcp-studio/tools.js
+++ b/api/_mcp-studio/tools.js
@@ -79,6 +79,7 @@ function ok({ glbUrl, base, kind, prompt, rigged }) {
viewerUrl: vUrl,
prompt: prompt || undefined,
rigged: Boolean(rigged),
+ ar: { glbUrl, launchUrl: aUrl },
}),
};
const label = rigged ? 'rigged 3D model' : '3D model';
@@ -129,7 +130,14 @@ function refineOk({ glbUrl, base, prompt, instruction, lineage, activeIndex }) {
}),
activeIndex,
// Conformant Spatial MCP artifact (specs/SPATIAL_MCP.md) for the refined model.
- spatial: buildSpatialArtifact({ glbUrl, kind: 'model', viewerUrl: vUrl, prompt: prompt || undefined, title: instruction || undefined }),
+ spatial: buildSpatialArtifact({
+ glbUrl,
+ kind: 'model',
+ viewerUrl: vUrl,
+ prompt: prompt || undefined,
+ title: instruction || undefined,
+ ar: { glbUrl, launchUrl: aUrl },
+ }),
};
const versionNo = activeIndex; // 0 = original, 1 = first refinement, …
return {
diff --git a/data/changelog.json b/data/changelog.json
index 91c4ea78a..727251000 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,16 @@
{
"$comment": "Curated changelog entries for three.ws — the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.",
"entries": [
+ {
+ "date": "2026-07-14",
+ "title": "ChatGPT generations now place straight into your room",
+ "summary": "Every 3D model generated through the ChatGPT app and the three.ws 3D Studio GPT now comes back with a one-tap AR link, the same place-it-in-your-home flow the forge has. Open it on a phone and the model appears in your real space: iPhone uses Quick Look, Android uses Scene Viewer, and a computer falls back to the interactive viewer. The inline widget also grew a View in your space button, and refined versions each carry their own AR link.",
+ "tags": [
+ "feature",
+ "improvement"
+ ],
+ "link": "/ar"
+ },
{
"date": "2026-07-14",
"title": "Short prompts now generate what you actually meant",
diff --git a/docs/api-reference.md b/docs/api-reference.md
index bd943d885..41af9f80e 100644
--- a/docs/api-reference.md
+++ b/docs/api-reference.md
@@ -757,20 +757,30 @@ content-safety gate before any GPU work starts.
**Response, finished inline**
```json
-{ "status": "done", "glbUrl": "https://cdn.three.ws/forge/anon/<id>.glb", "viewerUrl": "https://three.ws/viewer?src=…", "format": "glb" }
+{ "status": "done", "glbUrl": "https://cdn.three.ws/forge/anon/<id>.glb", "viewerUrl": "https://three.ws/viewer?src=…", "arUrl": "https://three.ws/api/ar?src=…&title=a%20small%20ceramic%20robot%20figurine", "format": "glb" }
```
+`arUrl` is the place-in-your-room link (`GET /api/ar`, documented below):
+opened on a phone it launches AR directly — Scene Viewer on Android, Quick
+Look on iOS (the GLB converts to USDZ in-page) — and on desktop it falls back
+to the interactive viewer. The prompt rides along as `title` to label the AR
+page. This is the same lane the `/forge` and `/ar` pages use; surface it to
+end users as "place it in your room".
+
**Response, queued** (ChatGPT Actions time out at ~45s; the lane bounds its
synchronous hold to 30s, so a slow job always returns `pending` plus a poll
handle before the Action deadline)
```json
-{ "status": "pending", "job": "f1.<signed-token>", "poll": "/api/3d/studio?job=f1.<signed-token>", "format": "glb" }
+{ "status": "pending", "job": "f1.<signed-token>", "poll": "/api/3d/studio?job=f1.<signed-token>&title=a%20small%20ceramic%20robot%20figurine", "format": "glb" }
```
-Poll `GET /api/3d/studio?job=<id>` until `status` is `"done"` (same shape as
-above) or `"error"` (`{ "status": "error", "job", "error" }`; generation is
-free, so a failed job costs nothing to retry).
+Poll `GET /api/3d/studio?job=<id>&title=<label>` until `status` is `"done"`
+(same shape as above, `arUrl` included) or `"error"` (`{ "status": "error",
+"job", "error" }`; generation is free, so a failed job costs nothing to
+retry). `title` is optional — the pending response's `poll` path already
+carries it, so following that path verbatim keeps the finished AR page
+labeled with the prompt.
**Errors**
diff --git a/prompts/store-submissions/_generated/openai-actions.yaml b/prompts/store-submissions/_generated/openai-actions.yaml
index 898c1571b..30c8d75cb 100644
--- a/prompts/store-submissions/_generated/openai-actions.yaml
+++ b/prompts/store-submissions/_generated/openai-actions.yaml
@@ -14,9 +14,12 @@ info:
prevention. Full policy: https://three.ws/legal/privacy.html
Contract: POST /api/3d/studio either finishes inline (status "done" with
- glbUrl + viewerUrl) or returns status "pending" with a "job" handle. Poll
- GET /api/3d/studio?job=... every few seconds until status is "done" or
- "error". Generation typically takes 20-60 seconds.
+ glbUrl + viewerUrl + arUrl) or returns status "pending" with a "job"
+ handle. Poll GET /api/3d/studio?job=... every few seconds until status is
+ "done" or "error". Generation typically takes 20-60 seconds. arUrl is the
+ augmented-reality launch link: opened on a phone it places the model in
+ the user's real room (Quick Look on iPhone, Scene Viewer on Android);
+ always offer it alongside the viewer link.
contact:
name: three.ws
url: https://three.ws
@@ -36,9 +39,10 @@ paths:
summary: Generate a 3D model (GLB) from a text prompt
description: >-
Start a free text-to-3D generation. Describe ONE subject concretely
- (shape, colors, style). Returns status "done" with glbUrl (download)
- and viewerUrl (browser preview), or "pending" with a "job" handle to
- poll via checkModelJob. Unsafe prompts return error "prompt_rejected".
+ (shape, colors, style). Returns status "done" with glbUrl (download),
+ viewerUrl (preview), and arUrl (see it in your room in AR), or
+ "pending" with a "job" handle for checkModelJob. Unsafe prompts return
+ error "prompt_rejected".
requestBody:
required: true
content:
@@ -74,13 +78,14 @@ paths:
status: done
glbUrl: https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/forge/anon/04818491-d43e-4576-b245-22743bf125a6.glb
viewerUrl: https://three.ws/viewer?src=https%3A%2F%2Fpub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev%2Fforge%2Fanon%2F04818491-d43e-4576-b245-22743bf125a6.glb
+ arUrl: https://three.ws/api/ar?src=https%3A%2F%2Fpub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev%2Fforge%2Fanon%2F04818491-d43e-4576-b245-22743bf125a6.glb&title=a%20low-poly%20orange%20fox
format: glb
pending:
summary: Queued - poll with the job handle
value:
status: pending
job: f1.eyJwIjoibnZpZGlhIn0.c2ln
- poll: /api/3d/studio?job=f1.eyJwIjoibnZpZGlhIn0.c2ln
+ poll: /api/3d/studio?job=f1.eyJwIjoibnZpZGlhIn0.c2ln&title=a%20low-poly%20orange%20fox
format: glb
"400":
description: >-
@@ -112,11 +117,12 @@ paths:
operationId: checkModelJob
x-openai-isConsequential: false
summary: Check a pending 3D generation job
- description: |
- Poll a generation started by generate3DModel. Pass the "job" value from
- the pending response. Keep polling every few seconds while status is
- "pending"; stop on "done" (present glbUrl + viewerUrl) or "error"
- (tell the user it failed and offer to try again - generation is free).
+ description: >-
+ Poll a generation started by generate3DModel. Use the "poll" path from
+ the pending response verbatim (it carries the job handle and title).
+ Keep polling every few seconds while "pending"; stop on "done"
+ (present glbUrl + viewerUrl + arUrl) or "error" (offer to retry -
+ generation is free).
parameters:
- name: job
in: query
@@ -127,6 +133,16 @@ paths:
maxLength: 1024
pattern: "^[A-Za-z0-9._-]+$"
description: The job handle returned by generate3DModel.
+ - name: title
+ in: query
+ required: false
+ schema:
+ type: string
+ maxLength: 120
+ description: >-
+ Short label for the finished model (usually the prompt) - it names
+ the AR and viewer pages. Already embedded in the "poll" path of a
+ pending response, so it never needs to be added by hand.
responses:
"200":
description: Current job state.
@@ -142,6 +158,7 @@ paths:
job: f1.eyJwIjoibnZpZGlhIn0.c2ln
glbUrl: https://pub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev/forge/anon/done.glb
viewerUrl: https://three.ws/viewer?src=https%3A%2F%2Fpub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev%2Fforge%2Fanon%2Fdone.glb
+ arUrl: https://three.ws/api/ar?src=https%3A%2F%2Fpub-2534e921bf9c4314addcd4d8a6e98b7b.r2.dev%2Fforge%2Fanon%2Fdone.glb
format: glb
failed:
summary: Upstream failure - retrying is free
@@ -179,6 +196,15 @@ components:
type: string
format: uri
description: Interactive three.ws browser viewer for the model (present when done).
+ arUrl:
+ type: string
+ format: uri
+ description: >-
+ Augmented-reality launch link (present when done). Opened on a
+ phone it places the model in the user's real room: Quick Look on
+ iPhone, Scene Viewer on Android; on desktop it falls back to the
+ interactive viewer. Always present it to the user alongside the
+ viewer link.
format:
type: string
const: glb
diff --git a/prompts/store-submissions/_generated/openai-gpt-config.md b/prompts/store-submissions/_generated/openai-gpt-config.md
index 3e88c36c0..9f1d405c4 100644
--- a/prompts/store-submissions/_generated/openai-gpt-config.md
+++ b/prompts/store-submissions/_generated/openai-gpt-config.md
@@ -27,8 +27,9 @@ three.ws 3D Studio
## 2. Description (short, shown in the store; builder cap is 300 characters)
```
-Turn any idea into a real, downloadable 3D model. Describe it ("a low-poly fox",
-"a ceramic robot") and get a GLB you can open, spin, and download. Free.
+Turn any idea into a real 3D model you can place in your room. Describe it
+("a low-poly fox", "a ceramic robot"), get a downloadable GLB, spin it in the
+browser, and open it in AR on your phone to see it on your own floor. Free.
```
## 3. Profile picture
@@ -68,21 +69,26 @@ WHAT YOU DO
HANDLING THE RESPONSE
- generate3DModel returns a "status".
- - status "done": the model is ready. Present TWO markdown links, clearly
- labeled:
- 1. Download (GLB): the "glbUrl" value.
+ - status "done": the model is ready. Present THREE markdown links, clearly
+ labeled and in this order:
+ 1. See it in your space (AR): the "arUrl" value.
2. Preview in your browser: the "viewerUrl" value.
- Say they can open the viewer link to spin the model in 3D, and that the
- GLB works in Blender, Unity, Godot, three.js, and most 3D tools.
- - status "pending": generation is still running. Take the "job" value and
- call checkModelJob with it, and keep polling while the status stays
- "pending". On the first pending response, tell the user it usually takes
+ 3. Download (GLB): the "glbUrl" value.
+ Tell them the AR link, opened on a phone, places the model in their real
+ room (iPhone and Android both work; on a computer it shows the 3D viewer
+ instead). Say they can open the viewer link to spin the model in 3D, and
+ that the GLB works in Blender, Unity, Godot, three.js, and most 3D tools.
+ - status "pending": generation is still running. Call checkModelJob with the
+ "job" value plus the "title" query parameter embedded in the returned
+ "poll" path (using that path verbatim is easiest - the title labels the AR
+ page), and keep polling while the status stays "pending". On the first pending response, tell the user it usually takes
20-60 seconds. If it is still pending after about 10 polls, stop polling,
say it is taking longer than usual, and offer to keep checking.
Never claim the model is finished until a response has status "done" with
a glbUrl.
-- Never invent, guess, or fabricate a glbUrl or viewerUrl. Only ever show URLs
- that an action actually returned. If you have no URL, you have no model.
+- Never invent, guess, or fabricate a glbUrl, viewerUrl, or arUrl. Only ever
+ show URLs that an action actually returned. If you have no URL, you have no
+ model.
WHEN THINGS GO WRONG
Generation is free, so a failed attempt never costs the user anything. Say so
@@ -237,9 +243,9 @@ likewise contains none of these terms. (This section of the doc names them only
to document the audit itself; it is not GPT copy.)
**b) No payment/checkout surface.** The action's only server route is
-`/api/3d/studio`, which returns `{ status, glbUrl, viewerUrl, format }` (or
-`{ status: 'pending', job, poll }`) and never a price, invoice, x402 challenge,
-or wallet field. Pinned by the response-contract tests in
+`/api/3d/studio`, which returns `{ status, glbUrl, viewerUrl, arUrl, format }`
+(or `{ status: 'pending', job, poll }`) and never a price, invoice, x402
+challenge, or wallet field. Pinned by the response-contract tests in
`tests/api/3d-studio.test.js`: `expectCleanWire` asserts no response body
matches `/x402|wallet|coin|upgrade|forgePro|price|usd|creation_id|token(?!s)/i`.
diff --git a/public/changelog.json b/public/changelog.json
index aa4a4dd47..4cec85731 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-14T23:13:58.101Z",
+ "generated_at": "2026-07-14T23:51:46.820Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -97,6 +97,17 @@
"feature"
]
},
+ {
+ "date": "2026-07-14",
+ "type": "update",
+ "title": "ChatGPT generations now place straight into your room",
+ "summary": "Every 3D model generated through the ChatGPT app and the three.ws 3D Studio GPT now comes back with a one-tap AR link, the same place-it-in-your-home flow the forge has. Open it on a phone and the model appears in your real space: iPhone uses Quick Look, Android uses Scene Viewer, and a computer falls back to the interactive viewer. The inline widget also grew a View in your space button, and refined versions each carry their own AR link.",
+ "link": "/ar",
+ "tags": [
+ "feature",
+ "improvement"
+ ]
+ },
{
"date": "2026-07-14",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index b18f6351d..0c49fb028 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -78,6 +78,14 @@
<category>feature</category>
<description>A new mobile-first app at /ar turns a one-line prompt into a real, downloadable 3D model on the free generation lane, then puts it in your space with one tap: WebXR or Scene Viewer on Android, Quick Look on iPhone. On a desktop it shows a QR code that hands the finished model straight to your phone's camera app, and every creation gets a shareable viewer link. No account, no payment, fair-use rate limits only.</description>
</item>
+ <item>
+ <title>ChatGPT generations now place straight into your room</title>
+ <link>https://three.ws/ar</link>
+ <guid isPermaLink="false">2026-07-14:ChatGPT generations now place straight into your room</guid>
+ <pubDate>Tue, 14 Jul 2026 12:00:00 GMT</pubDate>
+ <category>feature</category>
+ <description>Every 3D model generated through the ChatGPT app and the three.ws 3D Studio GPT now comes back with a one-tap AR link, the same place-it-in-your-home flow the forge has. Open it on a phone and the model appears in your real space: iPhone uses Quick Look, Android uses Scene Viewer, and a computer falls back to the interactive viewer. The inline widget also grew a View in your space button, and refined versions each carry their own AR link.</description>
+ </item>
<item>
<title>Cleaner pages: sitemap header fits, stray glow clipped, quieter console</title>
<link>https://three.ws/sitemap</link>
diff --git a/public/features.json b/public/features.json
index d9e42998a..074be100f 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-14T23:13:58.087Z",
+ "generated_at": "2026-07-14T23:51:46.807Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/tests/api/3d-generate.test.js b/tests/api/3d-generate.test.js
index 5198044fd..cd865ccee 100644
--- a/tests/api/3d-generate.test.js
+++ b/tests/api/3d-generate.test.js
@@ -195,18 +195,30 @@ describe('POST /api/3d/generate — response contract', () => {
expect(body.status).toBe('done');
expect(body.glbUrl).toBe(SUBMIT_DONE.glb_url);
expect(body.viewerUrl).toBe('https://three.ws/viewer?src=' + encodeURIComponent(SUBMIT_DONE.glb_url));
+ // The place-in-your-room AR link rides along, labeled with the prompt.
+ expect(body.arUrl).toBe(
+ 'https://three.ws/api/ar?src=' +
+ encodeURIComponent(SUBMIT_DONE.glb_url) +
+ '&title=' +
+ encodeURIComponent('a small ceramic robot figurine'),
+ );
// The lane was submitted with the pinned free NVIDIA draft params.
const [, opts] = globalThis.fetch.mock.calls[0];
expect(JSON.parse(opts.body)).toMatchObject({ prompt: 'a small ceramic robot figurine', backend: 'nvidia', path: 'image', tier: 'draft' });
});
- it('returns { status: pending, job, poll } when the lane queues the job', async () => {
+ it('returns { status: pending, job, poll } when the lane queues the job, carrying the AR title', async () => {
globalThis.fetch = vi.fn(async () => jsonResponse(SUBMIT_QUEUED));
const { res, body } = await dispatch(makeReq({ body: { prompt: 'a small ceramic robot figurine' } }), makeRes());
expect(res.statusCode).toBe(200);
expect(body.status).toBe('pending');
expect(body.job).toBe(SUBMIT_QUEUED.job_id);
- expect(body.poll).toBe('/api/3d/generate?job=' + encodeURIComponent(SUBMIT_QUEUED.job_id));
+ expect(body.poll).toBe(
+ '/api/3d/generate?job=' +
+ encodeURIComponent(SUBMIT_QUEUED.job_id) +
+ '&title=' +
+ encodeURIComponent('a small ceramic robot figurine'),
+ );
});
it('surfaces a 503 not_configured when the lane is unconfigured', async () => {
diff --git a/tests/api/3d-studio.test.js b/tests/api/3d-studio.test.js
index b51d483b4..7629ec626 100644
--- a/tests/api/3d-studio.test.js
+++ b/tests/api/3d-studio.test.js
@@ -118,38 +118,56 @@ function expectCleanWire(body) {
}
describe('shape helpers — Actions wire contract', () => {
- it('shapeSubmit maps inline-done to { done, glbUrl, viewerUrl } with nothing else attached', async () => {
+ it('shapeSubmit maps inline-done to { done, glbUrl, viewerUrl, arUrl } with nothing else attached', async () => {
const { shapeSubmit } = await import('../../api/3d/studio.js');
- const out = shapeSubmit(SUBMIT_DONE, 'https://three.ws');
+ const out = shapeSubmit(SUBMIT_DONE, 'https://three.ws', 'a small ceramic robot figurine');
expect(out).toEqual({
status: 'done',
glbUrl: SUBMIT_DONE.glb_url,
viewerUrl: 'https://three.ws/viewer?src=' + encodeURIComponent(SUBMIT_DONE.glb_url),
+ arUrl:
+ 'https://three.ws/api/ar?src=' +
+ encodeURIComponent(SUBMIT_DONE.glb_url) +
+ '&title=' +
+ encodeURIComponent('a small ceramic robot figurine'),
format: 'glb',
});
expectCleanWire(out);
});
- it('shapeSubmit maps queued to { pending, job, poll } pointing at the studio route', async () => {
+ it('shapeSubmit maps queued to { pending, job, poll } carrying the prompt as the AR title', async () => {
const { shapeSubmit } = await import('../../api/3d/studio.js');
- const out = shapeSubmit(SUBMIT_QUEUED, 'https://three.ws');
+ const out = shapeSubmit(SUBMIT_QUEUED, 'https://three.ws', 'a small ceramic robot figurine');
expect(out.status).toBe('pending');
expect(out.job).toBe(SUBMIT_QUEUED.job_id);
- expect(out.poll).toBe('/api/3d/studio?job=' + encodeURIComponent(SUBMIT_QUEUED.job_id));
+ expect(out.poll).toBe(
+ '/api/3d/studio?job=' +
+ encodeURIComponent(SUBMIT_QUEUED.job_id) +
+ '&title=' +
+ encodeURIComponent('a small ceramic robot figurine'),
+ );
expectCleanWire(out);
});
- it('shapePoll maps done/running/failed forge shapes cleanly', async () => {
+ it('shapePoll maps done/running/failed forge shapes cleanly, echoing the title into arUrl', async () => {
const { shapePoll } = await import('../../api/3d/studio.js');
- const done = shapePoll(POLL_DONE, 'https://three.ws', SUBMIT_QUEUED.job_id);
+ const done = shapePoll(POLL_DONE, 'https://three.ws', SUBMIT_QUEUED.job_id, 'a tiny fox');
expect(done.status).toBe('done');
expect(done.glbUrl).toBe(POLL_DONE.glb_url);
expect(done.viewerUrl).toContain('/viewer?src=');
+ expect(done.arUrl).toBe(
+ 'https://three.ws/api/ar?src=' + encodeURIComponent(POLL_DONE.glb_url) + '&title=' + encodeURIComponent('a tiny fox'),
+ );
expectCleanWire(done);
- const pending = shapePoll(POLL_RUNNING, 'https://three.ws', SUBMIT_QUEUED.job_id);
+ // No title (a caller polling with the bare job handle) → arUrl still present.
+ const doneBare = shapePoll(POLL_DONE, 'https://three.ws', SUBMIT_QUEUED.job_id);
+ expect(doneBare.arUrl).toBe('https://three.ws/api/ar?src=' + encodeURIComponent(POLL_DONE.glb_url));
+
+ const pending = shapePoll(POLL_RUNNING, 'https://three.ws', SUBMIT_QUEUED.job_id, 'a tiny fox');
expect(pending.status).toBe('pending');
expect(pending.poll).toContain('/api/3d/studio?job=');
+ expect(pending.poll).toContain('&title=' + encodeURIComponent('a tiny fox'));
expectCleanWire(pending);
const err = shapePoll(POLL_FAILED, 'https://three.ws', SUBMIT_QUEUED.job_id);
@@ -220,13 +238,21 @@ describe('POST /api/3d/studio — validation + rate limit', () => {
});
describe('POST /api/3d/studio — response contract', () => {
- it('returns { done, glbUrl, viewerUrl } inline with the pinned fast free-lane params', async () => {
+ it('returns { done, glbUrl, viewerUrl, arUrl } inline with the pinned fast free-lane params', async () => {
globalThis.fetch = vi.fn(async () => jsonResponse(SUBMIT_DONE));
const { res, body } = await dispatch(makeReq({ body: { prompt: 'a small ceramic robot figurine' } }), makeRes());
expect(res.statusCode).toBe(200);
expect(body.status).toBe('done');
expect(body.glbUrl).toBe(SUBMIT_DONE.glb_url);
expect(body.viewerUrl).toBe('https://three.ws/viewer?src=' + encodeURIComponent(SUBMIT_DONE.glb_url));
+ // The place-in-your-room link is first-class on every finished generation,
+ // labeled with the user's prompt.
+ expect(body.arUrl).toBe(
+ 'https://three.ws/api/ar?src=' +
+ encodeURIComponent(SUBMIT_DONE.glb_url) +
+ '&title=' +
+ encodeURIComponent('a small ceramic robot figurine'),
+ );
expectCleanWire(body);
const [, opts] = globalThis.fetch.mock.calls[0];
expect(JSON.parse(opts.body)).toMatchObject({ prompt: 'a small ceramic robot figurine', backend: 'nvidia', path: 'image', tier: 'standard' });
@@ -283,13 +309,18 @@ describe('POST /api/3d/studio — response contract', () => {
expect(JSON.parse(globalThis.fetch.mock.calls[1][1].body).tier).toBe('standard');
});
- it('returns { pending, job, poll } when the lane queues the job', async () => {
+ it('returns { pending, job, poll } when the lane queues the job, carrying the AR title', async () => {
globalThis.fetch = vi.fn(async () => jsonResponse(SUBMIT_QUEUED));
const { res, body } = await dispatch(makeReq({ body: { prompt: 'a small ceramic robot figurine' } }), makeRes());
expect(res.statusCode).toBe(200);
expect(body.status).toBe('pending');
expect(body.job).toBe(SUBMIT_QUEUED.job_id);
- expect(body.poll).toBe('/api/3d/studio?job=' + encodeURIComponent(SUBMIT_QUEUED.job_id));
+ expect(body.poll).toBe(
+ '/api/3d/studio?job=' +
+ encodeURIComponent(SUBMIT_QUEUED.job_id) +
+ '&title=' +
+ encodeURIComponent('a small ceramic robot figurine'),
+ );
expectCleanWire(body);
});
@@ -333,13 +364,26 @@ describe('GET /api/3d/studio?job= — poll lifecycle', () => {
expectCleanWire(body);
});
- it('returns done with glbUrl + viewerUrl when the job finishes', async () => {
+ it('returns done with glbUrl + viewerUrl + arUrl when the job finishes', async () => {
globalThis.fetch = vi.fn(async () => jsonResponse(POLL_DONE));
const { res, body } = await dispatch(makeReq({ method: 'GET', url: `/api/3d/studio?job=${SUBMIT_QUEUED.job_id}` }), makeRes());
expect(res.statusCode).toBe(200);
expect(body.status).toBe('done');
expect(body.glbUrl).toBe(POLL_DONE.glb_url);
expect(body.viewerUrl).toContain('/viewer?src=');
+ expect(body.arUrl).toContain('/api/ar?src=');
+ expectCleanWire(body);
+ });
+
+ it('echoes the poll title into the done arUrl so the AR page stays labeled', async () => {
+ globalThis.fetch = vi.fn(async () => jsonResponse(POLL_DONE));
+ const { res, body } = await dispatch(
+ makeReq({ method: 'GET', url: `/api/3d/studio?job=${SUBMIT_QUEUED.job_id}&title=${encodeURIComponent('a tiny fox')}` }),
+ makeRes(),
+ );
+ expect(res.statusCode).toBe(200);
+ expect(body.status).toBe('done');
+ expect(body.arUrl).toContain('&title=' + encodeURIComponent('a tiny fox'));
expectCleanWire(body);
});