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
fix(openapi): stop the x402 lanes advertising mandatory auth and document the free pricing GET
nirholas77a1904b184d
diff --git a/api/openapi-json.js b/api/openapi-json.jsindex 40d447ca4..b8fd82175 100644--- a/api/openapi-json.js+++ b/api/openapi-json.js@@ -220,7 +220,14 @@ export default wrap(async (req, res) => {summary: 'MCP tool call',description:'JSON-RPC 2.0 request to the MCP server. Supports tools for 3D avatar management, model validation, inspection, and optimization.',- security: [{ bearerAuth: [] }, { apiKeyAuth: [] }],+ // Pay-first, credentials optional — the same shape the aggregator's+ // paid lanes use above. A bare probe answers 402 with a full x402+ // challenge, so a caller settles in USDC and needs no key, token,+ // or account; a bearer token or API key is accepted but never+ // required. Listing only the two credential schemes (no leading+ // `{}`) reads to OpenAPI tooling as "auth is mandatory, pick one",+ // which sends agents off to obtain a token they do not need.+ security: [{}, { bearerAuth: [] }, { apiKeyAuth: [] }],requestBody: {required: true,content: {@@ -673,6 +680,51 @@ export default wrap(async (req, res) => {},},'/api/x402/forge': {+ // Free discovery lane. The handler answers GET with the price+ // catalog and input schema and never generates or charges, so an+ // agent can read the tiers before committing USDC. Documenting only+ // `post` hid that from every spec reader and made the free lane look+ // like an undocumented side effect.+ get: {+ operationId: 'x402_forge_pricing',+ security: [],+ summary: 'Forge pricing and input schema (free, no payment)',+ description:+ 'Free price/usage discovery for the Forge generation lane. Returns the per-tier USDC pricing, the accepted request body schema, and the free poll endpoint. No payment, no credentials, and no generation — POST the same path to actually generate.',+ responses: {+ 200: {+ description: 'Price catalog and input schema',+ content: {+ 'application/json': {+ schema: {+ type: 'object',+ required: ['route', 'method', 'input_schema', 'pricing_usdc'],+ properties: {+ route: { type: 'string' },+ description: { type: 'string' },+ method: { type: 'string', description: 'The verb that performs generation: POST.' },+ input_schema: { type: 'object', description: 'JSON Schema for the POST request body.' },+ poll: { type: 'string', description: 'Free endpoint for polling a job to completion.' },+ pricing_usdc: {+ type: 'array',+ description: 'One entry per quality tier.',+ items: {+ type: 'object',+ required: ['tier', 'price_usdc'],+ properties: {+ tier: { type: 'string', enum: ['draft', 'standard', 'high'] },+ price_usdc: { type: 'string' },+ },+ },+ },+ },+ },+ },+ },+ },+ 400: { description: 'A ?job= query landed here; poll on GET /api/forge?job=<id> instead' },+ },+ },post: {operationId: 'x402_forge_generate',security: PAYMENT_ONLY_SECURITY,