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.

527 B
Raw Blame
// GET /api/billing/fee-info — public endpoint returning the current platform fee rate.
// Used by pricing UIs so agent owners see how much the platform takes.

import { cors, json, method, wrap } from '../_lib/http.js';
import { getFeeBps } from '../_lib/fee.js';

export default wrap(async (req, res) => {
	if (cors(req, res, { methods: 'GET,OPTIONS' })) return;
	if (!method(req, res, ['GET'])) return;

	const fee_bps = getFeeBps();
	return json(res, 200, {
		fee_bps,
		fee_percent: (fee_bps / 100).toFixed(1),
	});
});