{
  "x402Version": 2,
  "service": "X402 Neural Solver",
  "description": "AI-powered code and problem solving service with x402 payments.",
  "payment": "x402",
  "networks": [
    "eip155:8453",
    "eip155:42161"
  ],
  "pricing": "dynamic; the exact amount is returned in the 402 response for each endpoint",
  "offers": [
    {
      "id": "service",
      "endpoint": "/",
      "pricing": "see 402 response"
    }
  ],
  "payTo": "0xA5E6eB31868A85127B1ED82b8C760193356206ED",
  "version": 2,
  "name": "X402 Neural Solver",
  "resources": [
    {
      "resource": "https://x402-neural-solver.alfrexo95.workers.dev/v1/ai/chat",
      "type": "http",
      "method": "POST",
      "description": "AI chat with memory of your recent messages. Use for multi-turn agent reasoning.",
      "price_usd": "0.003",
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "type": "http",
              "method": "POST",
              "bodyType": "json",
              "body": {
                "prompt": "Plan the next step",
                "session_id": "agent-42"
              }
            },
            "output": {
              "type": "json",
              "example": {
                "rail": "eip155:8453",
                "result": {
                  "response": "..."
                }
              }
            }
          },
          "schema": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "type": "object",
            "properties": {
              "input": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "http"
                  },
                  "method": {
                    "type": "string",
                    "enum": [
                      "POST"
                    ]
                  },
                  "bodyType": {
                    "type": "string",
                    "enum": [
                      "json"
                    ]
                  },
                  "body": {
                    "type": "object",
                    "properties": {
                      "prompt": {
                        "type": "string",
                        "description": "User prompt"
                      },
                      "session_id": {
                        "type": "string",
                        "description": "Optional stable id to keep memory across calls"
                      }
                    },
                    "required": [
                      "prompt"
                    ]
                  }
                },
                "required": [
                  "type",
                  "method",
                  "bodyType",
                  "body"
                ],
                "additionalProperties": false
              },
              "output": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string"
                  },
                  "example": {
                    "type": "object"
                  }
                },
                "required": [
                  "type"
                ]
              }
            },
            "required": [
              "input"
            ]
          }
        }
      }
    },
    {
      "resource": "https://x402-neural-solver.alfrexo95.workers.dev/v1/ai/code",
      "type": "http",
      "method": "POST",
      "description": "Audit and fix code (Gemma 4 26B A4B, fallback Llama 3.3 70B).",
      "price_usd": "0.005",
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "type": "http",
              "method": "POST",
              "bodyType": "json",
              "body": {
                "code": "function f(){}"
              }
            },
            "output": {
              "type": "json",
              "example": {
                "result": {
                  "audit": "..."
                }
              }
            }
          },
          "schema": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "type": "object",
            "properties": {
              "input": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "http"
                  },
                  "method": {
                    "type": "string",
                    "enum": [
                      "POST"
                    ]
                  },
                  "bodyType": {
                    "type": "string",
                    "enum": [
                      "json"
                    ]
                  },
                  "body": {
                    "type": "object",
                    "properties": {
                      "code": {
                        "type": "string",
                        "description": "Code to review"
                      }
                    },
                    "required": [
                      "code"
                    ]
                  }
                },
                "required": [
                  "type",
                  "method",
                  "bodyType",
                  "body"
                ],
                "additionalProperties": false
              },
              "output": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string"
                  },
                  "example": {
                    "type": "object"
                  }
                },
                "required": [
                  "type"
                ]
              }
            },
            "required": [
              "input"
            ]
          }
        }
      }
    },
    {
      "resource": "https://x402-neural-solver.alfrexo95.workers.dev/v1/ai/summarize",
      "type": "http",
      "method": "POST",
      "description": "Summarize text into 3 key points.",
      "price_usd": "0.002",
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "type": "http",
              "method": "POST",
              "bodyType": "json",
              "body": {
                "text": "Long text..."
              }
            },
            "output": {
              "type": "json",
              "example": {
                "result": {
                  "summary": "..."
                }
              }
            }
          },
          "schema": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "type": "object",
            "properties": {
              "input": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "http"
                  },
                  "method": {
                    "type": "string",
                    "enum": [
                      "POST"
                    ]
                  },
                  "bodyType": {
                    "type": "string",
                    "enum": [
                      "json"
                    ]
                  },
                  "body": {
                    "type": "object",
                    "properties": {
                      "text": {
                        "type": "string",
                        "description": "Text"
                      }
                    },
                    "required": [
                      "text"
                    ]
                  }
                },
                "required": [
                  "type",
                  "method",
                  "bodyType",
                  "body"
                ],
                "additionalProperties": false
              },
              "output": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string"
                  },
                  "example": {
                    "type": "object"
                  }
                },
                "required": [
                  "type"
                ]
              }
            },
            "required": [
              "input"
            ]
          }
        }
      }
    },
    {
      "resource": "https://x402-neural-solver.alfrexo95.workers.dev/v1/ai/translate",
      "type": "http",
      "method": "POST",
      "description": "Translate text into any language.",
      "price_usd": "0.003",
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "type": "http",
              "method": "POST",
              "bodyType": "json",
              "body": {
                "text": "Hello",
                "target_lang": "spanish"
              }
            },
            "output": {
              "type": "json",
              "example": {
                "result": {
                  "translation": "Hola"
                }
              }
            }
          },
          "schema": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "type": "object",
            "properties": {
              "input": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "http"
                  },
                  "method": {
                    "type": "string",
                    "enum": [
                      "POST"
                    ]
                  },
                  "bodyType": {
                    "type": "string",
                    "enum": [
                      "json"
                    ]
                  },
                  "body": {
                    "type": "object",
                    "properties": {
                      "text": {
                        "type": "string",
                        "description": "Text"
                      },
                      "target_lang": {
                        "type": "string",
                        "description": "Target language"
                      }
                    },
                    "required": [
                      "text"
                    ]
                  }
                },
                "required": [
                  "type",
                  "method",
                  "bodyType",
                  "body"
                ],
                "additionalProperties": false
              },
              "output": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string"
                  },
                  "example": {
                    "type": "object"
                  }
                },
                "required": [
                  "type"
                ]
              }
            },
            "required": [
              "input"
            ]
          }
        }
      }
    },
    {
      "resource": "https://x402-neural-solver.alfrexo95.workers.dev/v1/ai/data-analysis",
      "type": "http",
      "method": "POST",
      "description": "Statistics over a JSON dataset plus 3 AI insights.",
      "price_usd": "0.004",
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "type": "http",
              "method": "POST",
              "bodyType": "json",
              "body": {
                "data": [
                  {
                    "x": 1
                  },
                  {
                    "x": 3
                  }
                ]
              }
            },
            "output": {
              "type": "json",
              "example": {
                "result": {
                  "dataset_size": 2,
                  "statistics": {},
                  "insight": "..."
                }
              }
            }
          },
          "schema": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "type": "object",
            "properties": {
              "input": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "const": "http"
                  },
                  "method": {
                    "type": "string",
                    "enum": [
                      "POST"
                    ]
                  },
                  "bodyType": {
                    "type": "string",
                    "enum": [
                      "json"
                    ]
                  },
                  "body": {
                    "type": "object",
                    "properties": {
                      "data": {
                        "type": "array",
                        "items": {
                          "type": "object"
                        }
                      }
                    },
                    "required": [
                      "data"
                    ]
                  }
                },
                "required": [
                  "type",
                  "method",
                  "bodyType",
                  "body"
                ],
                "additionalProperties": false
              },
              "output": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string"
                  },
                  "example": {
                    "type": "object"
                  }
                },
                "required": [
                  "type"
                ]
              }
            },
            "required": [
              "input"
            ]
          }
        }
      }
    }
  ],
  "discovery": {
    "openapi": "https://x402-neural-solver.alfrexo95.workers.dev/openapi.json",
    "llms_txt": "https://x402-neural-solver.alfrexo95.workers.dev/llms.txt",
    "agent_card": "https://x402-neural-solver.alfrexo95.workers.dev/.well-known/agent-card.json",
    "mcp": "https://x402-neural-solver.alfrexo95.workers.dev/mcp"
  }
}