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
// BYOK geometry-style provider registry — the single source of truth shared by
// the /api/forge endpoint and the 3D Studio MCP server (/api/mcp-3d).
//
// Every provider here exposes the same async surface: `imageTo3d` and/or
// `textToGeometry` returning either a poll handle ({ kind, taskId }) or a
// synchronous completion ({ taskId: null, resultGlbUrl }), plus `status` for the
// pollable ones. Keyed by the `byok` name a backend declares in forge-tiers, so
// both surfaces dispatch by registry lookup instead of a hardcoded ternary.
//
// Replicate BYOK is intentionally NOT here: it speaks the reconstruction
// `submit`/`status` interface (multi-view fusion, platform-shaped jobs), so it
// rides the image-intermediate reconstruction path with the caller's token.
import { createMeshyProvider } from './meshy.js';
import { createTripoProvider } from './tripo.js';
import { createRodinProvider } from './rodin.js';
import { createStabilityProvider } from './stability.js';
export const BYOK_PROVIDER_FACTORIES = Object.freeze({
meshy: createMeshyProvider,
tripo: createTripoProvider,
rodin: createRodinProvider,
stability: createStabilityProvider,
});
// True when `backendId` is a BYOK geometry-style backend dispatched through this
// registry (so callers can branch without reaching into BACKENDS internals).
export function isByokGeometryBackend(backend) {
return Boolean(backend?.byok && BYOK_PROVIDER_FACTORIES[backend.byok]);
}