ToolAssay

Writes and runs Python to compute or verify an answer, returning the code, its o

Writes and runs Python to compute or verify an answer, returning the code, its output, and a final answer.

Answeringour last check, 2026-09-25
1 of 1checks answered this week
227 msmedian answer time
$0.015listed price per call
$0.015price it asked us

Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.

Endpoint

POST https://api.onhub.ai/v1/code

CategoryCode and developer
Provider hostapi.onhub.ai
Networkseip155:8453
Payment schemesexact
Self-reported calls, 30 days3 from 1 payers (the provider's figure, not ours)

Our checks, last 30 days

DayResultHTTPAskedTime
2026-09-25 valid payment request 402$0.015 227 ms

Example input (from the provider)

{
  "body": {
    "query": "What is the sum of the first 50 prime numbers?"
  },
  "bodyType": "json",
  "method": "POST",
  "type": "http"
}

Promised output schema (from the provider)

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "body": {
          "additionalProperties": false,
          "properties": {
            "query": {
              "description": "A computational question to answer by writing and running Python code, e.g. a calculation, data-processing, or verification task.",
              "maxLength": 2000,
              "minLength": 3,
              "type": "string"
            }
          },
          "required": [
            "query"
          ],
          "type": "object"
        },
        "bodyType": {
          "enum": [
            "json",
            "form-data",
            "text"
          ],
          "type": "string"
        },
        "method": {
          "enum": [
            "POST"
          ],
          "type": "string"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method",
        "bodyType",
        "body"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "properties": {
            "answer": {
              "type": "string"
            },
            "billing": {
              "type": "object"
            },
            "object": {
              "const": "code.result",
              "type": "string"
            },
            "query": {
              "type": "string"
            },
            "steps": {
              "description": "The code that ran and its output, in execution order, for independent verification.",
              "items": {
                "properties": {
                  "content": {
                    "type": "string"
                  },
                  "language": {
                    "type": "string"
                  },
                  "outcome": {
                    "type": "string"
                  },
                  "type": {
                    "enum": [
                      "code",
                      "result"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "type",
                  "content"
                ],
                "type": "object"
              },
              "type": "array"
            }
          },
          "required": [
            "object",
            "query",
            "answer",
            "steps"
          ],
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}

This page as JSON