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.

2.7 KB
Raw Blame
// Service-catalog descriptor — the single written-once listing for this
// service. api/wk.js derives its /.well-known/x402.json resource entry from
// this file via api/_lib/service-catalog/index.js (toBazaarDiscovery), and
// the OKX storefront projection reads the same record (toOkxCatalog).
// Contract: specs/service-catalog.md. Do not re-add a hand-written mirror
// for this route in api/wk.js — edit this descriptor instead.
//
// Re-listed per the 2026-07-08 storefront cleanup (prompt 18) — batch sibling
// of mint-to-mesh, same disposition.

export default {
	slug: 'mint-to-mesh-batch',
	title: 'Mint to Mesh (Batch)',
	category: '3d',
	useCase: 'Mint to Mesh (Batch) — resolve 1–10 Solana SPL mints to themed glTF (GLB) cubes in a single paid call instead of paying for N round-trips.',
	path: '/api/x402/mint-to-mesh-batch',
	method: 'POST',
	free: false,
	status: 'live',
	priceAtomics: '50000',
	acceptsBuilder: 'standard',
	serviceName: 'three.ws Mint Mesh Batch',
	tags: ['3d', 'gltf', 'solana', 'batch', 'render'],
	description: 'Mint to Mesh (Batch) — resolve 1–10 Solana SPL mints to themed glTF (GLB) cubes in a single paid call instead of paying for N round-trips. Each mint is processed in parallel; per-mint failures (bad mint, RPC unreachable, off-chain metadata 404) report ok:false individually rather than failing the whole batch. Output is base64 JSON-safe GLB bytes ready for Three.js / Babylon.js / model-viewer. Useful for rendering a portfolio carousel or leaderboard of token-themed objects in one call.',
	input: {
		mints: [
			'C3vQABCDEFGHJKLMNopqrstuvwxyZ12345abcdefghi',
			'F7kXZYXWVUTSRQPONMLKJIHGFEDCba9876543210xyz',
		],
	},
	inputSchema: {
		type: 'object',
		required: ['mints'],
		properties: {
			mints: {
				type: 'array',
				minItems: 1,
				maxItems: 10,
				items: { type: 'string', minLength: 32, maxLength: 44 },
			},
		},
	},
	// Mirrors the batch handler's envelope in api/x402/mint-to-mesh-batch.js —
	// per-mint ok:true/ok:false results, never a whole-batch failure. GLB base64
	// truncated to a magic-bytes stub.
	outputExample: {
		count: 2,
		results: [
			{
				ok: true,
				mint: 'FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump',
				theme: {
					name: 'three.ws',
					symbol: 'THREE',
					color: '#7c5cff',
					imageUrl: 'https://three.ws/cdn/tokens/three.png',
					hasImage: true,
				},
				glb: { mimeType: 'model/gltf-binary', bytes: 18432, base64: 'Z2xURgIAAAA…' },
			},
			{
				ok: false,
				mint: 'C3vQABCDEFGHJKLMNopqrstuvwxyZ12345abcdefghi',
				error: 'meta_fetch_failed',
				error_description: 'no Metaplex metadata account for this mint',
			},
		],
		indexed_at: '2026-07-09T00:00:00.000Z',
	},
	storefronts: ['x402scan'],
};