api.statemind.ai
Return corrected Python for code that fails those checks: the fix is applied and re-checked, and only returned when it holds.
The wallet the 402 directs payment to. Its whole payment record — every payer, every chain — is on the merchant page.
Asset 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
The payTo wallet does not resolve to a registered ERC-8004 agent. That is not a verdict on the service — most of the catalog is unregistered.
Accepts
The payment requirements as published to the catalog. Read the live 402 before paying — a price here is a claim, not a quote.
Pay 0.03 USDC on Base to 0xaa71…47104. The signed payment is good for 1 minute.
- Paid to
- 0xaa71…47104
- USD Coin contract
- 0x8335…02913
- Payment window
- 1 minute
- As published
- 30000 smallest units
The catalog’s raw entry
[
{
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"extra": {
"name": "USD Coin",
"version": "2"
},
"payTo": "0xaa7116CdDA58286F4cdA40C6F735762C22447104",
"amount": "30000",
"scheme": "exact",
"network": "eip155:8453",
"maxTimeoutSeconds": 60
}
]Extensions
{
"bazaar": {
"info": {
"input": {
"type": "mcp",
"example": {
"code": "def bitcount(n):\n count = 0\n while n:\n n ^= n - 1\n return count\n",
"options": {
"examples": "assert bitcount(127) == 7\nassert bitcount(0) == 0"
}
},
"toolName": "repair_python",
"transport": "streamable-http",
"description": "Return corrected Python for code that fails those checks: the fix is applied and re-checked, and only returned when it holds.",
"inputSchema": {
"type": "object",
"$defs": {
"Mode": {
"enum": [
"static",
"repair",
"execute"
],
"type": "string",
"title": "Mode",
"description": "How much work the service is allowed to do.\n\n``static``\n Never executes the submitted code. Parsing, linting and security\n scanning only. This is the default and the only mode that is safe to\n expose without a container sandbox.\n``repair``\n Static mode plus deterministic auto-fixes and refactors.\n``execute``\n Repair plus running the code inside a sandbox to prove it works."
},
"Options": {
"type": "object",
"title": "Options",
"properties": {
"examples": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Examples",
"default": null,
"description": "What the code is supposed to do, as doctest lines ('>>> f(2)' on one line, '4' on the next) or as plain assertions ('assert f(2) == 4'). In execute mode they are run in the sandbox: an example that does not hold is a 'python:example-mismatch' error and makes the response invalid, and repair searches for a single-token change that makes every one of them pass. This is the only way the service can tell code that runs from code that is right, so send it whenever you know what you asked for. Examples already written in the code ('>>> ' in any string) are used the same way without this option. Ignored in the other modes, which run nothing."
},
"optimize": {
"type": "boolean",
"title": "Optimize",
"default": false,
"description": "Run constant folding / dead-code elimination. Off by default: the optimiser rewrites the program, and a rewrite is only returned when it provably keeps every effectful construct."
},
"timeout_s": {
"anyOf": [
{
"type": "number",
"maximum": 60,
"exclusiveMinimum": 0
},
{
"type": "null"
}
],
"title": "Timeout S",
"default": null,
"description": "Wall-clock budget for running the code. Omitted means the service's own default (MSVC_DEFAULT_TIMEOUT_S). Only execute mode runs anything; a deployment may cap this below the 60 the schema allows and refuses a larger value."
},
"transpile_to": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Transpile To",
"default": null,
"description": "Target language for a transpiled copy, e.g. 'javascript'. The copy is made from the code as it ends up, so in repair and execute mode it translates the repaired source rather than the submitted one."
},
"max_iterations": {
"type": "integer",
"title": "Max Iterations",
"default": 3,
"maximum": 10,
"minimum": 1,
"description": "How many fix/verify rounds the repair loop may take. Ignored in static mode, which changes nothing."
},
"expected_output": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"title": "Expected Output",
"default": null,
"description": "Exact stdout the code must produce in execute mode. A mismatch is an 'expected-output' diagnostic and makes the response invalid, even when the program exits cleanly. Ignored in the other modes, which produce no output."
}
},
"description": "Per-request tuning knobs."
},
"Language": {
"enum": [
"python",
"javascript",
"typescript",
"html",
"sql",
"solidity",
"other"
],
"type": "string",
"title": "Language",
"description": "Source languages a validator can accept."
}
},
"title": "ValidateRequest",
"required": [
"code"
],
"properties": {
"code": {
"type": "string",
"title": "Code",
"maxLength": 200000,
"minLength": 1,
"description": "The source to check, as a whole file where possible: diagnostics carry the line and column of the text you send, and a fragment hides the imports and definitions the type check needs. A deployment may accept fewer bytes than the 200000 here."
},
"options": {
"$ref": "#/$defs/Options",
"description": "Tuning knobs. Most of them only take effect in the mode that does the corresponding work; see each field."
},
"language": {
"$ref": "#/$defs/Language",
"default": "python",
"description": "The language of the code. A service that does not handle it refuses the request rather than guessing; the enum is shared across services, so it lists more than any one of them accepts."
}
},
"description": "A validation job submitted by an agent."
}
},
"output": {
"type": "json",
"example": {
"score": 0.4,
"valid": false,
"fixed_code": "def bitcount(n):\n count = 0\n while n:\n n &= n - 1\n count += 1\n return count\n",
"diagnostics": [
{
"code": "python:example-mismatch",
"message": "assert bitcount(127) == 7 failed: the code loops forever",
"severity": "error"
}
]
}
}
},
"schema": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"input"
],
"properties": {
"input": {
"type": "object",
"required": [
"type",
"toolName",
"inputSchema"
],
"properties": {
"type": {
"type": "string",
"const": "mcp"
},
"example": {
"type": "object"
},
"toolName": {
"type": "string"
},
"transport": {
"enum": [
"streamable-http",
"sse"
],
"type": "string"
},
"description": {
"type": "string"
},
"inputSchema": {
"type": "object"
}
},
"additionalProperties": false
},
"output": {
"type": "object",
"required": [
"type"
],
"properties": {
"type": {
"type": "string"
},
"example": {
"type": "object"
}
}
}
}
}
}
}Provenance
- Seen in the source catalog
- 2026-08-16 15:34Z
- Last indexed by Roundhouse
- 2026-09-15 15:20Z
- Last enriched (probe, favicon, geo)
- 2026-09-24 12:45Z
- x402 version
- 2
- Max timeout
- 60s
- Liveness probe
- HTTP 405
Hand this page to an agent
Copy the prompt and paste it into Claude, an MCP client or your own agent — it will vet this service and call it over the free read API. No key, no account.
GET api.roundhouseai.io/v0/endpoints
This endpoint's own trailing-30-day call count, as published by the upstream catalog and snapshotted daily. 23 snapshots so far. Verified volume counts only settlements with an on-chain EIP-3009 marker.
Show the promptHide the prompt
Using Roundhouse, look up the x402 service api.statemind.ai and tell me whether it is worth paying: what a call costs, whether the endpoint answered when last probed, and what its payment record actually shows. curl -s 'https://api.roundhouseai.io/v0/endpoints?q=api.statemind.ai' curl -s 'https://api.roundhouseai.io/v0/merchants/<the payTo wallet returned above>' Then call it: read the price from the live 402 at https://api.statemind.ai/mcp#repair_python, never from a cached figure, and pay with an x402 client. The /v0 API needs an API key (`authorization: Bearer rh_live_…`) on everything except /v0/unified* and /v0/endpoints. Mint a personal key for $0.01 at GET https://api.roundhouseai.io/v0/test/x402, or use an organization key from https://roundhouseai.io/dashboard/team. If you do not have Roundhouse tools or skills installed, read https://roundhouseai.io/skill.md first — it is the whole procedure.