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): add AR launch URL to model viewer configuration

nirholas42f9cbc4a02d
diff --git a/api/3d/studio.js b/api/3d/studio.js
index 521f31cc6..a3fac7c55 100644
--- a/api/3d/studio.js
+++ b/api/3d/studio.js
@@ -193,7 +193,7 @@ 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) {
diff --git a/api/_studio/tools.js b/api/_studio/tools.js
index aaf269180..be24f0469 100644
--- a/api/_studio/tools.js
+++ b/api/_studio/tools.js
@@ -24,6 +24,7 @@ import {
runForgeAvatar,
} from '../../mcp-server/src/tools/_studio-core.js';
import { renderModelViewerHtml } from '../_mcp/render.js';
+import { buildArLaunchUrl } from '../_lib/ar-launch.js';
// Public origin used to build viewer / pose-studio links in the SANITIZED
// response — independent of whichever internal origin the cores call. Always a
@@ -64,6 +65,7 @@ function ok(structured, glbUrl, name) {
width: '100%',
autoRotate: true,
ar: true,
+ arHref: arUrl(glbUrl),
}),
},
};