Api Endpoint

Agent Run

Use when an agent must compute, parse a CSV or draw a chart with real code. Input: language (python|node), code (64 KB), stdin, files (5 /v1/files ids), background. Output: exitCode, stdout, stderr, /workspace/out files (5, 2 MB, base64). 30 s in the response ($0.005), or background=true: 10 min, id + secret now, result at GET /v1/agent/run/{id} ($0.008). HTTP(S) allowed. Python: pandas, numpy, matplotlib; Node: lodash. Example: POST {"code":"print(2+2)"}

Open interactive test console

Offering

Provider
1gateway.dev
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://1gateway.dev/v1/agent/run
MIME type
application/json
First seen
2026-11-21T18:57:33.748Z
Last seen
Tags
code, run, python, background, Agent

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.005 USDC
Atomic price: 5000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Payment option 2
0.005 USDC
Atomic price: 5000 · Network: eip155:143 · Asset: USDC · Scheme: exact
Payment option 3
0.005 USDC
Atomic price: 5000 · Network: eip155:137 · Asset: USDC · Scheme: exact
Payment option 4
0.005 USDC
Atomic price: 5000 · Network: eip155:42161 · Asset: USDC · Scheme: exact
Payment option 5
0.005 USDC
Atomic price: 5000 · Network: solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "5000",
    "payTo": "0x6246eee0355Dd7A93C888fE59e1151388A0cC5a1"
  },
  {
    "scheme": "exact",
    "network": "eip155:143",
    "asset": "0x754704Bc059F8C67012fEd69BC8A327a5aafb603",
    "amount": "5000",
    "payTo": "0x6246eee0355Dd7A93C888fE59e1151388A0cC5a1"
  },
  {
    "scheme": "exact",
    "network": "eip155:137",
    "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
    "amount": "5000",
    "payTo": "0x6246eee0355Dd7A93C888fE59e1151388A0cC5a1"
  },
  {
    "scheme": "exact",
    "network": "eip155:42161",
    "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
    "amount": "5000",
    "payTo": "0x6246eee0355Dd7A93C888fE59e1151388A0cC5a1"
  },
  {
    "scheme": "exact",
    "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
    "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    "amount": "5000",
    "payTo": "AwV6UZobYPyTdsuNa2NknZZrnmmUoH5ckEv3wNgL26WT"
  }
]

Observed health

Status
Healthy
Latest latency
1066 ms
Average latency
743 ms
HTTP status
402
Last checked
Reachability
100% over 3 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "language": {
          "type": "string",
          "description": "python (3.14, default; pandas, numpy, matplotlib, openpyxl, pillow, beautifulsoup4, requests), node…",
          "enum": [
            "python",
            "node",
            "typescript"
          ]
        },
        "code": {
          "type": "string",
          "description": "Program source, max 64 KB; runs as /workspace/main.py, main.js or main.ts; write result files to /w…",
          "maxLength": 65536
        },
        "stdin": {
          "type": "string",
          "description": "Text fed to the program's standard input, max 256 KB",
          "maxLength": 262144
        },
        "files": {
          "type": "string",
          "description": "Up to 5 ids of your own /v1/agent/files uploads (same paying wallet), copied to /workspace/in/<file…",
          "maxLength": 400
        },
        "background": {
          "type": "string",
          "description": "true: run up to 10 minutes in the background ($0.008); the answer is an id and a one-time secret, a…",
          "enum": [
            "true",
            "false"
          ]
        },
        "credit_budget": {
          "type": "string",
          "description": "With Authorization: Bearer <credit session>: USD cap (0.001-20, default 0.10) for 1gateway API call…",
          "maxLength": 12
        },
        "notify_email": {
          "type": "string",
          "description": "Background only (+$0.002): email when the run ends, to an address that already allowed mail from yo…",
          "maxLength": 254
        },
        "webhook": {
          "type": "string",
          "description": "Background only: signed POST (x-1gateway-signature, key = hex(SHA-256(secret))) when the run ends",
          "pattern": "^https://",
          "maxLength": 2048
        }
      },
      "required": [
        "code"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "example": {
      "type": "object",
      "properties": {
        "language": {
          "type": "string"
        },
        "exitCode": {
          "type": "integer"
        },
        "timedOut": {
          "type": "boolean"
        },
        "durationMs": {
          "type": "integer"
        },
        "stdout": {
          "type": "string"
        },
        "stderr": {
          "type": "string"
        },
        "stdoutTruncated": {
          "type": "boolean"
        },
        "stderrTruncated": {
          "type": "boolean"
        },
        "files": {
          "type": "array",
          "items": {}
        },
        "filesOmitted": {
          "type": "array",
          "items": {}
        }
      },
      "required": [
        "language",
        "exitCode",
        "timedOut",
        "durationMs",
        "stdout",
        "stderr",
        "stdoutTruncated",
        "stderrTruncated",
        "files",
        "filesOmitted"
      ],
      "additionalProperties": true
    }
  },
  "required": [
    "type"
  ]
}